From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
Damien Le Moal <damien.lemoal@opensource.wdc.com>,
Nehal-bakulchandra Shah <Nehal-bakulchandra.Shah@amd.com>
Subject: Re: [PATCH 1/2] ahci: Add Green Sardine vendor ID as board_ahci_mobile
Date: Mon, 14 Feb 2022 09:07:39 +0100 [thread overview]
Message-ID: <960946b8-8f73-9f81-735a-64e5cc555a9c@molgen.mpg.de> (raw)
In-Reply-To: <20211112201539.17377-1-mario.limonciello@amd.com>
Dear Mario,
(For the records, is part of Linux since 5.16-rc2 (commit 1527f69204fe).)
Am 12.11.21 um 21:15 schrieb Mario Limonciello:
> AMD requires that the SATA controller be configured for devsleep in order
> for S0i3 entry to work properly.
>
> commit b1a9585cc396 ("ata: ahci: Enable DEVSLP by default on x86 with
> SLP_S0") sets up a kernel policy to enable devsleep on Intel mobile
> platforms that are using s0ix. Add the PCI ID for the SATA controller in
> Green Sardine platforms to extend this policy by default for AMD based
> systems using s0i3 as well.
>
> Cc: Nehal-bakulchandra Shah <Nehal-bakulchandra.Shah@amd.com>
> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214091
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> drivers/ata/ahci.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index d60f34718b5d..1e1167e725a4 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -438,6 +438,7 @@ static const struct pci_device_id ahci_pci_tbl[] = {
> /* AMD */
> { PCI_VDEVICE(AMD, 0x7800), board_ahci }, /* AMD Hudson-2 */
> { PCI_VDEVICE(AMD, 0x7900), board_ahci }, /* AMD CZ */
> + { PCI_VDEVICE(AMD, 0x7901), board_ahci_mobile }, /* AMD Green Sardine */
Aren’t 0x7900 and 0x7901 the same device only in different modes? I
wonder, why different boards and different comments are used.
Additionally, the device 0x7901 is also present in desktop systems like
Dell OptiPlex 5055 and MSI B350 MORTAR. Is `board_ahci_mobile` the right
board then? Or should the flag `AHCI_HFLAG_IS_MOBILE` be renamed to
avoid confusion?
> /* AMD is using RAID class only for ahci controllers */
> { PCI_VENDOR_ID_AMD, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
> PCI_CLASS_STORAGE_RAID << 8, 0xffffff, board_ahci },
Kind regards,
Paul
next prev parent reply other threads:[~2022-02-14 8:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 20:15 [PATCH 1/2] ahci: Add Green Sardine vendor ID as board_ahci_mobile Mario Limonciello
2021-11-12 20:15 ` [PATCH 2/2] ata: Adjust behavior when StorageD3Enable _DSD is set Mario Limonciello
2022-02-14 8:07 ` Paul Menzel [this message]
2022-02-14 16:07 ` [PATCH 1/2] ahci: Add Green Sardine vendor ID as board_ahci_mobile Limonciello, Mario
2022-02-15 7:05 ` Paul Menzel
2022-02-15 11:43 ` Hans de Goede
2022-02-15 12:27 ` Paul Menzel
2022-02-15 12:52 ` Hans de Goede
2022-02-16 2:56 ` Limonciello, Mario
2022-02-15 12:55 ` Hans de Goede
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=960946b8-8f73-9f81-735a-64e5cc555a9c@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=Nehal-bakulchandra.Shah@amd.com \
--cc=damien.lemoal@opensource.wdc.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
/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).