From: Tejun Heo <tj@kernel.org>
To: Stuart_Hayes@Dell.com
Cc: akpm@linux-foundation.org, jeff@garzik.org, linux-ide@vger.kernel.org
Subject: Re: [patch 1/3] libata: change drive ready wait after hard reset to 5s
Date: Thu, 12 Mar 2009 11:19:37 +0900 [thread overview]
Message-ID: <49B87139.3080700@kernel.org> (raw)
In-Reply-To: <DFEF91B22ED07447AB6AA4B237F913F902185BD2@ausx3mpc125.aus.amer.dell.com>
Hello,
Stuart_Hayes@Dell.com wrote:
> Tejun Heo wrote:
>> Hello,
>>
>> akpm@linux-foundation.org wrote:
>>> 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.
>> Can you please attach log for this? Which controller was it?
>>
>
> Here's the relevant bits of the log... I don't have a copy of a whole
> log, but I should be able to get one if there's something missing that
> you need from this. I had a more detailed description of what was
> happening in a question I posted to linux-scsi back in January
> (http://kerneltrap.org/index.php?q=mailarchive/linux-scsi/2009/1/20/4777
> 124).
After looking at the code, I think your patch is doing the right
thing. I was worried about controllers which don't have any mechanism
to pass in the first D2H Reg FIS to the driver (sil24, for example)
but in those cases the wait logic there isn't used at all. The only
problem would be with some port multipliers which don't send first D2H
Reg FIS after hardreset on controllers which can act on them (ahci).
This will incur 5sec detection delay on those devices but well I think
we can trade them off for more common cases.
late-but-Acked-by: Tejun Heo <tj@kernel.org>
--
tejun
next prev parent reply other threads:[~2009-03-12 2:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2009-03-11 16:45 ` Stuart_Hayes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49B87139.3080700@kernel.org \
--to=tj@kernel.org \
--cc=Stuart_Hayes@Dell.com \
--cc=akpm@linux-foundation.org \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.