linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ahci: Add Green Sardine vendor ID as board_ahci_mobile
@ 2021-11-12 20:15 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 ` [PATCH 1/2] ahci: Add Green Sardine vendor ID as board_ahci_mobile Paul Menzel
  0 siblings, 2 replies; 12+ messages in thread
From: Mario Limonciello @ 2021-11-12 20:15 UTC (permalink / raw)
  To: Damien Le Moal
  Cc: open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers),
	open list, Mario Limonciello, Nehal-bakulchandra Shah

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 */
 	/* 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 },
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-02-16  2:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-11-16  1:40   ` Damien Le Moal
2021-11-16  1:45     ` Limonciello, Mario
2022-02-14  8:07 ` [PATCH 1/2] ahci: Add Green Sardine vendor ID as board_ahci_mobile Paul Menzel
2022-02-14 16:07   ` 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

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).