Date: Sun, 19 Dec 1999 17:37:56 +0100 (CET) From: Soren Schmidt <sos@freebsd.dk> To: pulsifer@mediaone.net (Allen Pulsifer) Cc: freebsd-current@FreeBSD.ORG Subject: Re: ATA driver problem?? (lost disk contact) Message-ID: <199912191637.RAA24221@freebsd.dk> In-Reply-To: <NBBBJNDFEKPEHPFCLNLHKEAPEOAA.pulsifer@mediaone.net> from Allen Pulsifer at "Dec 18, 1999 07:11:34 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
It seems Allen Pulsifer wrote: > According to the DPTA-3xxxxx spec from IBM, if the drive has fully entered > Standby mode, it can take up to 31 seconds for it to spin back up. > (See sections 3.3.6.1 and 13.0). Other drive models may take even > longer, and even after the drive is back up, it may take a few seconds > to respond to the command. > > You might have to set the timeout value as high as 45-60 seconds in > order to get reliable operation. > > One possibility: the Check Power Mode command (sections 10.5.2 and 12.1) > allows you to determine if the drive is in Standby mode. You might > be able to timeout after 5-10 seconds, abort the read/write command, > do a Check Power Mode command, and if the drive is in the process > of spinning back up, then wait patiently for it to come to life > before retrying the original read/write command. > > It looks to me like you would have to do a soft reset (sections 11.0, > 9.6 and 10.1) in order to abort the read/write command. A soft > reset would also cause the drive to come back to life if it were > in Sleep mode (sections 3.3.6, 10.5.1 and 12.31). > > Note that section 13.0 (page 190) is explicit about this procedure: > "We recommend that the host system executes Soft reset and then > retry to issue the command if the host system would occur timeout > for the device." This is more or less what is done now, I just doesn't do the check power mode after the reset, there is not much point, I know the disk is coming up. -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912191637.RAA24221>