Subject: Re: apm (Re: Anyone running NetBSD on an IBM ThinkPad [A|T]21?)
To: Chuck Cranor <chuck@xxx.research.att.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 01/23/2001 21:36:03
On Mon, Jan 22, 2001 at 05:44:03PM -0500, Chuck Cranor wrote:
> 
> now that i have a working apm i enabled "atactl wd0 setidle 5" on
> my laptop (5 second idle powerdown) when running on battery.   as
> a result i started getting these when ever the disk powered up (no
> apm stuff going on):
> 
> pciide0:0:0: lost interrupt
>         type: ata tc_bcount: 0 tc_skip: 0
> pciide0:0:0: intr with DRQ (st=0x58)
> wd0a: device timeout writing fsbn 243424 of 243424-243427 (wd0 bn 10509904; cn 1
> 1121 tn 8 sn 55), retrying
> wd0: soft error (corrected)
> [...] 

Do you get one timeout when the disk powers up, and many ?

> if i "atactl wd0 setidle 0" the disk runs constantly and the 
> errors do not occur.
> 
> i was hoping Manuel might have some ideas about this?

This is because there's no wau for the driver to know whenever the drive is
off or not, it has to try a command and wait for it to fail to reset the drive,
which will make it power up.
I agree the code should'nt print messages in this case, but it's hard to
separate this from real error cases.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--