Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2001 19:49:35 -0700
From:      Richard Johnson <raj@cisco.com>
To:        Nick Sayer <nsayer@quack.kfu.com>
Cc:        SXren Schmidt <sos@freebsd.dk>, Robert Sexton <robert@kudra.com>, freebsd-mobile@FreeBSD.ORG
Subject:   Re: ATA idle spindown patch.
Message-ID:  <15203.31167.563563.519827@kitab.cisco.com>
In-Reply-To: <3B635732.6030409@quack.kfu.com>
References:  <200107280841.f6S8fvR80063@freebsd.dk> <3B6354F9.2070801@quack.kfu.com> <3B635732.6030409@quack.kfu.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Nick Sayer writes:
 > Nick Sayer wrote:
 > 
 > 
 > > 
 > > I tried to put it in ad_reinit(), but that seems to be causing panics at 
 > > resume. The theory was that ad_reinit() seems to be called at resume time.
 > 
 > 
 > I spoke too soon. I just had to use ATA_WAIT_READY instead of ATA_WAIT_INTR.
 > 
 > So I have the same patch as the one that was posted, but I duplicated 
 > the 'if ( ata_suspend > 0 )' block at the end if ad_reinit() with 
 > ATA_WAIT_READY instead of ATA_WAIT_INTR. With that, spindown survives 
 > suspend/resume (well, on resume the drive spins up, obviously, but then 
 > after the wait time it spins back down).

Cool!  I also tried adding it to ad_reinit() but with the same
result.  I never got so far as to try ATA_WAIT_READY.  I'll have to
try that.  Thanks!

/raj

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15203.31167.563563.519827>