Re: Fwd: Removing Giant from a driver

2006-10-20 Thread John-Mark Gurney
[EMAIL PROTECTED] wrote this message on Sat, Oct 21, 2006 at 00:50 +0200: > >> what should it look like? > > > >You should be creating a mutex (using mtx_init) at attach time, and > >pass that mutex instead of Giant... > > and don't touch busdma_lock_mutex? ( i am passing NULL, NULL at the moment

Re: Fwd: Removing Giant from a driver

2006-10-20 Thread usleepless
Dear John-Mark, > what should it look like? You should be creating a mutex (using mtx_init) at attach time, and pass that mutex instead of Giant... and don't touch busdma_lock_mutex? ( i am passing NULL, NULL at the moment ) > and how will i prevent the interrupt routine from interfering wi

Re: Fwd: Removing Giant from a driver

2006-10-20 Thread John-Mark Gurney
[EMAIL PROTECTED] wrote this message on Sun, Oct 15, 2006 at 11:04 +0200: > i have been tweaking the pvr250 driver to support pvr150s/500s. now i > want to remove Giant from the code. > > problem is, i am not sure what to do. i have created a mutex which > replaces the spltty and splx calls. but t

Re: Threading system calls (int 80h)

2006-10-20 Thread John-Mark Gurney
David Xu wrote this message on Tue, Oct 17, 2006 at 17:17 +0800: > work in the past. Also rfork() does not allow you to specify user stack, you > have to add some tricky code to make it safe before new > thread really can do real work, [...] That's why you use rfork_thread(3)... -- John-Mark G

Re: src.conf(5) seems to affect ports build

2006-10-20 Thread Ruslan Ermilov
On Fri, Oct 20, 2006 at 05:08:48PM +0200, Jeremie Le Hen wrote: > Hi, > > src.conf(5) manual page states: > > % The src.conf file contains settings that will apply to every build > % involving the FreeBSD source tree; see build(7). > % ... > % The only purpose of src.conf is to control the compil

src.conf(5) seems to affect ports build

2006-10-20 Thread Jeremie Le Hen
Hi, src.conf(5) manual page states: % The src.conf file contains settings that will apply to every build % involving the FreeBSD source tree; see build(7). % ... % The only purpose of src.conf is to control the compilation of the FreeBSD % sources, which are usually found in /usr/src. However, s

Re: 6.1-STABLE hangs, ddb shows 'acpi_timer_read'?

2006-10-20 Thread Robert Watson
On Fri, 20 Oct 2006, Karl Pielorz wrote: On Fri, Oct 20, 2006 at 11:56:33AM +0100, Karl Pielorz wrote: I have a crash dump from it - which I've saved (I'm moderately familiar with working with dumps, but this one is split into two?) If anyone has any pointers, or can do some hand holding to

Re: 6.1-STABLE hangs, ddb shows 'acpi_timer_read'?

2006-10-20 Thread Ivan Voras
Karl Pielorz wrote: Thanks for the link! Anyone know much is all that lot (such as INVARIANTS/WITNESS) etc. likely to slow the machine down? - A few percent? More? Huge. See http://wikitest.freebsd.org/WitnessPerformance I'm just a little hesitant to put it all in, and end up with a machin

Re: 6.1-STABLE hangs, ddb shows 'acpi_timer_read'?

2006-10-20 Thread Karl Pielorz
--On 20 October 2006 14:01 +0300 Kostik Belousov <[EMAIL PROTECTED]> wrote: On Fri, Oct 20, 2006 at 11:56:33AM +0100, Karl Pielorz wrote: I have a crash dump from it - which I've saved (I'm moderately familiar with working with dumps, but this one is split into two?) If anyone has any poi

Re: 6.1-STABLE hangs, ddb shows 'acpi_timer_read'?

2006-10-20 Thread Dominic Marks
On Fri, 20 Oct 2006 11:56:33 +0100 Karl Pielorz <[EMAIL PROTECTED]> wrote: > > Hi All, > > We've got an HP DL380 server, stacked out with drives running Sendmail. The > machine is quite busy (LA rarely below 4 - and it's three 'spindle' sets of > RAID drives are always busy). It's probably con

Re: 6.1-STABLE hangs, ddb shows 'acpi_timer_read'?

2006-10-20 Thread Kostik Belousov
On Fri, Oct 20, 2006 at 11:56:33AM +0100, Karl Pielorz wrote: > > I have a crash dump from it - which I've saved (I'm moderately familiar > with working with dumps, but this one is split into two?) > > If anyone has any pointers, or can do some hand holding to get more info > from the dump, or

6.1-STABLE hangs, ddb shows 'acpi_timer_read'?

2006-10-20 Thread Karl Pielorz
Hi All, We've got an HP DL380 server, stacked out with drives running Sendmail. The machine is quite busy (LA rarely below 4 - and it's three 'spindle' sets of RAID drives are always busy). It's probably constantly running 200-300 copies of sendmail, plus an assortment of other processes (mos