Subject: Re: wd0 latency
To: Daniel Carosone <dan@geek.com.au>
From: Arnaud Lacombe <lists-netbsd@sigfpe.info>
List: current-users
Date: 08/12/2006 00:30:23
On Sat, Aug 12, 2006 at 06:57:46AM +1000, Daniel Carosone wrote:
> On Fri, Aug 11, 2006 at 04:28:23PM +0200, Arnaud Lacombe wrote:
> 
> > I've got a problem with my laptop at boot time with the detection of
> > wd0: there is a really huge latency before and after the probe of
> > the hard disk (about 10s after the probe, 2s or 3s before).
> 
> I see the same, though not the __wdcwait: timeout messages, I guess
> they come from DEBUG or DIAGNOSTIC which aren't in this kernel.  If
> I'd seen those I would have been much more motivated to find the
> problem.. :)
in fact, they are visible when you increase the value of `atadebug_mask'
if ATADEBUG is defined (which is the case on default kernel), or do I as
did, ie. to have a little less output, I removed the conditional printf
in `sys/dev/ic/wdc.c' on line 1126. I also needed to increase the size
of msgbuf to something like 512k to have the full dmesg ('#define
MSGBUFSIZE 128*NBPG' in arch/i386/include/param.h instead of '4*NBPG').

regards,

Arnaud