From: Tejun Heo <htejun@gmail.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Markus Trippelsdorf <markus@trippelsdorf.de>,
linux-ide@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>, Takashi Iwai <tiwai@suse.de>,
marc.c.dionne@gmail.com, dl9pf@gmx.de,
bug-track@fisher-privat.net, sitsofe@yahoo.com
Subject: Re: [PATCH] Re: [git patches] libata updates - (improve post-reset device ready test) regression
Date: Sat, 10 May 2008 15:34:11 +0900 [thread overview]
Message-ID: <482541E3.6020001@gmail.com> (raw)
In-Reply-To: <4823D4EC.7060407@garzik.org>
Jeff Garzik wrote:
> Tejun Heo wrote:
>> This means that we need to make custom readiness tests for controllers
>> using 0x77 or 0x7f. Eeeek... Both groups of controllers are behaving
>> in incorrect way. Controllers shouldn't use 0x77 or 0x7f for either
>> busy or ready states - it's invalid for both, yet, some use the 77/7f
>> for busy while others use them for ready state. Great. :-(
>
> I think that's assuming too much? PATA and SATA are quite different
> here... in PATA the status is mostly the value from the device directly
> off the wires. in SATA, it may be from the device or from the
> controller. And "smart" or firmware-based controllers may generate
> their own status, too, apart from the device's status.
>
> So that results in varied status returns, and not all the time is a
> definite "ready" or "not ready" obvious.
I think it's pretty safe to say that these weird ready values are from
TF emulation on controller side. The ready/not ready distinction is
probably too simplistic but those values aren't supposed to appear
during post-reset readiness test.
Sorry about the big regression. Heh... It's amazing how all the
controllers I tested didn't show the problem and I did test a good
number of combinations.
I still think it would be better to have a unified readiness test
function. The problem is subtle (device misdetection on hotplug of
certain drives) and went unnoticed quite some time for JMB ahcis && test
coverage over those things can't be good. I'll try to think about
something better.
Thanks.
--
tejun
next prev parent reply other threads:[~2008-05-10 6:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 15:48 [git patches] libata updates Jeff Garzik
2008-05-06 16:23 ` Linus Torvalds
2008-05-07 14:56 ` [git patches] libata updates - (improve post-reset device ready test) regression Markus Trippelsdorf
2008-05-07 16:35 ` Takashi Iwai
2008-05-08 3:13 ` Marc Dionne
2008-05-08 9:45 ` Jan-Simon Möller
2008-05-08 15:35 ` [PATCH] " Jeff Garzik
2008-05-08 16:05 ` Takashi Iwai
2008-05-08 16:18 ` Markus Trippelsdorf
2008-05-08 17:40 ` Alexey Fisher
2008-05-08 19:21 ` Hugh Dickins
2008-05-08 21:43 ` J.A. Magallón
2008-05-09 14:54 ` Mark Lord
2008-05-08 21:51 ` Marc Dionne
2008-05-09 2:57 ` Tejun Heo
2008-05-09 3:01 ` Tejun Heo
2008-05-09 4:27 ` Justin Mattock
2008-05-09 3:43 ` Justin Mattock
2008-05-09 4:37 ` Jeff Garzik
2008-05-10 6:34 ` Tejun Heo [this message]
2008-05-09 5:09 ` Alexey Fisher
2008-05-09 10:59 ` Marc Dionne
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=482541E3.6020001@gmail.com \
--to=htejun@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bug-track@fisher-privat.net \
--cc=dl9pf@gmx.de \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.c.dionne@gmail.com \
--cc=markus@trippelsdorf.de \
--cc=sitsofe@yahoo.com \
--cc=tiwai@suse.de \
--cc=torvalds@linux-foundation.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).