From: Tejun Heo <tj@kernel.org>
To: Grant Grundler <grundler@google.com>
Cc: Chandra Shekhar Sah <edu4madh@gmail.com>,
linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: port multiplier problem
Date: Fri, 05 Feb 2010 11:44:50 +0900 [thread overview]
Message-ID: <4B6B8622.9090109@kernel.org> (raw)
In-Reply-To: <da824cf31002040959y63f3484cv6d551acd49b80fa7@mail.gmail.com>
Hello,
On 02/05/2010 02:59 AM, Grant Grundler wrote:
>> That said, I'm not quite sure this is relevant to the reported
>> problem but it's worth a shot.
>
> I didn't have a better idea.
Heh... yeah, me neither. If that doesn't work, I'll dig out 3726s I
have and see whether the new kernels are having problems with them but
I can't think of anything which could have effects like this.
> I'm seeing this in sata_pmp_quirks() since ATA_LFLAG_NO_SRST was introduced:
> 337 static void sata_pmp_quirks(struct ata_port *ap)
> 338 {
> 339 u32 *gscr = ap->link.device->gscr;
> 340 u16 vendor = sata_pmp_gscr_vendor(gscr);
> 341 u16 devid = sata_pmp_gscr_devid(gscr);
> 342 struct ata_link *link;
> 343
> 344 if (vendor == 0x1095 && devid == 0x3726) {
> 345 /* sil3726 quirks */
> 346 ata_for_each_link(link, ap, EDGE) {
> 347 /* Class code report is unreliable and SRST
> 348 * times out under certain configurations.
> 349 */
> 350 if (link->pmp < 5)
> 351 link->flags |= ATA_LFLAG_NO_SRST |
> 352 ATA_LFLAG_ASSUME_ATA;
> 353
> 354 /* port 5 is for SEMB device and it doesn't like SRST */
> 355 if (link->pmp == 5)
> 356 link->flags |= ATA_LFLAG_NO_SRST |
> 357 ATA_LFLAG_ASSUME_SEMB;
> 358 }
>
>
> But the ATA_LFLAG_NO_SRST used in line 351 is not present in the
> 2.6.26 tree I know works with PMPs. The original commit comment isn't
> specific about exactly which HW had problems:
> http://www.mail-archive.com/git-commits-head@vger.kernel.org/msg24335.html
>
> "Some links on some PMPs locks up on SRST and/or report incorrect
> device signature. Implement ATA_LFLAG_NO_SRST, ASSUME_ATA and
> ASSUME_SEMB to handle these quirky links. NO_SRST makes EH avoid
> SRST. ASSUME_ATA and SEMB forces class code to ATA and SEMB_UNSUP
> respectively. Note that SEMB isn't currently supported yet so the
> _UNSUP variant is used."
>
> Can you publish which PMP implementations sometimes lock up on SRST?
I don't remember the details but it was a 3726 or 4726 with slightly
different firmware revision.
> I doubt this is related to the problem Chandra is seeing but again,
> don't have better ideas.
>
> BTW, this same kernel works fine without disabling port 5 (SEMB
> port). I didn't know this until I just looked. I know previous
> source trees Google used ignored SEMB port on 3726 and I mistakenly
> assumed this one did too. :(
But the other report where the PMP device failed hardreset too was a
3/4726. I don't know what the variables are (firmware revision
definitely is one but there seem to be others) but these pseudo
devices are extremely fragile. Certain configurations just don't work
or work with strange quirks. I think it would be best to just stay
away from those.
Thanks.
--
tejun
next prev parent reply other threads:[~2010-02-05 2:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4B5885F7.2020007@gmail.com>
[not found] ` <4B679EA9.6030203@kernel.org>
[not found] ` <4B6833DD.1020001@gmail.com>
2010-02-02 14:24 ` port multiplier problem Tejun Heo
2010-02-02 14:59 ` Chandra Shekhar Sah
2010-02-02 16:44 ` Grant Grundler
[not found] ` <4B686B2B.2080406@gmail.com>
2010-02-02 19:04 ` Grant Grundler
[not found] ` <4B687B7C.2070406@gmail.com>
2010-02-04 2:37 ` Grant Grundler
2010-02-04 3:24 ` Tejun Heo
2010-02-04 17:59 ` Grant Grundler
2010-02-05 2:44 ` Tejun Heo [this message]
2010-02-11 20:22 ` Chandra Shekhar Sah
2010-02-04 16:39 ` Chandra Shekhar Sah
2010-02-04 3:21 ` Tejun Heo
2010-01-21 16:57 Chandra Nepali
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=4B6B8622.9090109@kernel.org \
--to=tj@kernel.org \
--cc=edu4madh@gmail.com \
--cc=grundler@google.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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).