From: Mark Lord <liml@rtr.ca>
To: Tejun Heo <htejun@gmail.com>
Cc: Justin Mattock <justinmattock@gmail.com>, linux-ide@vger.kernel.org
Subject: Re: sda
Date: Tue, 15 Apr 2008 09:54:16 -0400 [thread overview]
Message-ID: <4804B388.5090509@rtr.ca> (raw)
In-Reply-To: <48041E2A.9000602@gmail.com>
Tejun Heo wrote:
> Justin Mattock wrote:
>>> Can you please post the result of "lspci -nn". The error per-se is
>>> okay.
>>> The drive failed to respond to IDENTIFY at the first try but on
>>> retrial it
>>> responded okay.
>>
>> Hello; Thank you for the response.
>> I guess you can say I have a tendancy to freak out or panic with
>> little things like that,
>> below is lspci -nn.
>
> Hmm... ICH7. I recently had a different bug report on < ICH7 (don't
> remember whether it was 4, 5 or 6). In that case, the drive went
> completely offline after resume. It never came back after retries. It
> seemed like the device needed hardreset after waking up from sleep which
> we currently only support for >= ICH8).
>
> Mark, you played with the hardreset bits in PCS (right?) register. What
> do you think about adding it? Last time I played with it, the presence
> detection seemed unreliable so hotplug might not work too well but as
> long as the hardreset itself works we can augment it with follow up srst
> for cases like this.
..
What I did back in 2007 was, implement hot plug/unplug for ICH5,
done by polling the PCS bits.
It works, and is reportedly quite reliable, even though there is still a
tiny theoretical loophole where the chipset could lock up.
The glitch on ICH5, at least, is that the PCS bits work fine for detecting
drive insertions, but not drive removals. To detect a drive removal,
one has to first toggle the enable line (1..0..1) in PCS, and then wait
for the PHY to try and sync up afterwards (microseconds).
The code didn't go upstream because it conflicted somewhat with the pending
hotplug polling framework you had in development at the time. :)
What's the scoop with that now, anyways? The sata_mv driver will eventually
want hotplug polling to deal with port multiplier ports -- it cannot use AN.
Cheers
next prev parent reply other threads:[~2008-04-15 13:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-02 19:44 sda Justin Mattock
2008-04-13 2:26 ` sda Tejun Heo
2008-04-13 4:17 ` sda Justin Mattock
2008-04-15 3:16 ` sda Tejun Heo
2008-04-15 5:27 ` sda Justin Mattock
2008-04-15 5:58 ` sda Tejun Heo
2008-04-15 6:26 ` sda Justin Mattock
2008-04-15 13:54 ` Mark Lord [this message]
2008-04-15 23:36 ` sda Tejun Heo
2008-04-16 0:21 ` sda Mark Lord
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=4804B388.5090509@rtr.ca \
--to=liml@rtr.ca \
--cc=htejun@gmail.com \
--cc=justinmattock@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).