From: Anssi Hannula <anssi.hannula@iki.fi>
To: Tejun Heo <tj@kernel.org>
Cc: Jeff Garzik <jeff@garzik.org>,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
Mark Lord <kernel@teksavvy.com>
Subject: Re: [PATCH #upstream] ahci: add HFLAG_YES_FBS and apply it to 88SE9128
Date: Tue, 07 Dec 2010 21:45:38 +0200 [thread overview]
Message-ID: <4CFE8EE2.1060908@iki.fi> (raw)
In-Reply-To: <4CF55A4B.1020402@iki.fi>
On 30.11.2010 22:10, Anssi Hannula wrote:
> On 30.11.2010 15:31, Tejun Heo wrote:
>> Hello,
Hi!
>> On 11/30/2010 03:04 AM, Anssi Hannula wrote:
>>> On 24.07.2010 17:53, Tejun Heo wrote:
>>>> 88SE9128 can do FBS and sets it in HOST_CAP but forgets to set FBSCP
>>>> in PORT_CMD. Implement AHCI_HFLAG_YES_FBS and apply it to 88SE9128.
>>>>
>>>> Signed-off-by: Tejun Heo <tj@kernel.org>
>>> [...]
>>>> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
>>>> index f252253..41fa0a3 100644
>>> [...]
>>>> @@ -362,6 +371,8 @@ static const struct pci_device_id ahci_pci_tbl[] = {
>>>> /* Marvell */
>>>> { PCI_VDEVICE(MARVELL, 0x6145), board_ahci_mv }, /* 6145 */
>>>> { PCI_VDEVICE(MARVELL, 0x6121), board_ahci_mv }, /* 6121 */
>>>> + { PCI_DEVICE(0x1b4b, 0x9123),
>>>> + .driver_data = board_ahci_yes_fbs }, /* 88se9128 */
>>>
>>> The device contains an IDE interface as well, and the above
>>> pci_device_id matches them both:
>>> 08:00.0 SATA controller [0106]: Device [1b4b:9123] (rev 10)
>>> 08:00.1 IDE interface [0101]: Device [1b4b:9123] (rev 10)
>>
>> *GASP* Come on Marvell.... :-(
>>
>>> This results in some (apparently harmless) mess [1].
>>>
>>> Attached is a patch to make the id entry class-specific. The patch is
>>> untested (the issue happens in a production machine).
>>
>> Thanks a lot for the patch. It looks correct but it would be great if
>> it can be veified.
>
> I think I can do that later, but probably not this week or so.
I've now verified that the patch works on a system with 1b4b:9123
controller.
>> Also, there's a pending patch to add another PCI
>> ID for similar marvell controller. I wonder whether similar
>> workaround should be applied. Hmmm... ISTR the other one reporting
>> IDE class even though it works in IDE mode.
>
> IDE class in IDE mode? Isn't that kind of expected? :)
>
> Also, just to avoid any misunderstanding: I see both the SATA and IDE
> interfaces at the same time.
>
>> Can someone with marvell
>> documentation access check what's going on?
>>
>> Thanks.
>>
>
--
Anssi Hannula
next prev parent reply other threads:[~2010-12-07 19:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-24 14:53 [PATCH #upstream] ahci: add HFLAG_YES_FBS and apply it to 88SE9128 Tejun Heo
2010-08-17 21:54 ` Jeff Garzik
2010-11-30 2:04 ` Anssi Hannula
2010-11-30 13:31 ` Tejun Heo
2010-11-30 20:10 ` Anssi Hannula
2010-12-07 19:45 ` Anssi Hannula [this message]
2010-12-08 11:10 ` Tejun Heo
2010-12-08 18:09 ` Jeff Garzik
2010-12-08 18:13 ` Tejun Heo
2011-01-07 19:22 ` Anssi Hannula
2011-01-19 1:07 ` Jeff Garzik
2010-12-20 3:24 ` Anssi Hannula
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=4CFE8EE2.1060908@iki.fi \
--to=anssi.hannula@iki.fi \
--cc=jeff@garzik.org \
--cc=kernel@teksavvy.com \
--cc=linux-ide@vger.kernel.org \
--cc=tj@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.