From: Tejun Heo <htejun@gmail.com>
To: Mark Lord <liml@rtr.ca>
Cc: Justin Mattock <justinmattock@gmail.com>, linux-ide@vger.kernel.org
Subject: Re: sda
Date: Wed, 16 Apr 2008 08:36:20 +0900 [thread overview]
Message-ID: <48053BF4.8060809@gmail.com> (raw)
In-Reply-To: <4804B388.5090509@rtr.ca>
Hello,
Mark Lord wrote:
> 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).
Having hardreset around is helpful whether hotplugging works or not.
Can you please tell me more about the theoretical loophole?
> 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.
Heh... That was blocked on sysfs nodes and as time goes by it went down
through the rabbit hole. MV can't do AN? Have you taken a look at how
ahci implements AN? It doesn't really support AN. It just looks at
what FIS it received and tries to emulate the notification, which BTW
isn't 100% accurate as the receive area can be overwritten
asynchronously but it works good enough. Maybe MV can do similar?
--
tejun
next prev parent reply other threads:[~2008-04-15 23:36 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 ` sda Mark Lord
2008-04-15 23:36 ` Tejun Heo [this message]
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=48053BF4.8060809@gmail.com \
--to=htejun@gmail.com \
--cc=justinmattock@gmail.com \
--cc=liml@rtr.ca \
--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.