All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 1/3] libata: change drive ready wait after hard reset to 5s
@ 2009-03-04 19:59 akpm
  2009-03-11  7:39 ` Tejun Heo
  0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2009-03-04 19:59 UTC (permalink / raw)
  To: jeff; +Cc: linux-ide, akpm, stuart_hayes

From: Stuart Hayes <stuart_hayes@dell.com>

This fixes problems during resume with drives that take longer than 1s to
be ready.  The ATA-6 spec appears to allow 5 seconds for a drive to be
ready.

On one affected system, this patch changes "PM: resume devices took..."
message from 17 seconds to 4 seconds, and gets rid of a lot of ugly
timeout/error messages.

Without this patch, the libata code moves on after 1s, tries to send a
soft reset (which the drive doesn't see because it isn't ready) which also
times out, then an IDENTIFY command is sent to the drive which times out,
and finally the error handler will try to send another hard reset which
will finally get things working.

Signed-off-by: Stuart Hayes <stuart_hayes@dell.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/libata.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/libata.h~libata-change-drive-ready-wait-after-hard-reset-to-5s include/linux/libata.h
--- a/include/linux/libata.h~libata-change-drive-ready-wait-after-hard-reset-to-5s
+++ a/include/linux/libata.h
@@ -275,7 +275,7 @@ enum {
 	 * advised to wait only for the following duration before
 	 * doing SRST.
 	 */
-	ATA_TMOUT_PMP_SRST_WAIT	= 1000,
+	ATA_TMOUT_PMP_SRST_WAIT	= 5000,
 
 	/* ATA bus states */
 	BUS_UNKNOWN		= 0,
_

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-12  2:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-04 19:59 [patch 1/3] libata: change drive ready wait after hard reset to 5s akpm
2009-03-11  7:39 ` Tejun Heo
2009-03-11 16:16   ` Stuart_Hayes
2009-03-12  2:19     ` Tejun Heo
2009-03-11 16:45   ` Stuart_Hayes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.