Thread (2 messages) 2 messages, 2 authors, 2021-05-27

Re: [PATCH v4] usb: pci-quirks: disable D3cold on xhci suspend for s2idle on AMD Renoire

From: Jiri Slaby <jirislaby@kernel.org>
Date: 2021-05-27 05:48:27

On 05. 05. 21, 8:16, Mario Limonciello wrote:
quoted hunk ↗ jump to hunk
The XHCI controller is required to enter D3hot rather than D3cold for AMD
s2idle on this hardware generation.

Otherwise, the 'Controller Not Ready' (CNR) bit is not being cleared by host
in resume and eventually this results in xhci resume failures during the
s2idle wakeup.

Suggested-by: Prike Liang <redacted>
Link: https://lore.kernel.org/linux-usb/1612527609-7053-1-git-send-email-Prike.Liang@amd.com/ (local)
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
  drivers/usb/host/xhci-pci.c | 7 ++++++-
  drivers/usb/host/xhci.h     | 1 +
  2 files changed, 7 insertions(+), 1 deletion(-)

v1 -> v2: drop the XHCI_COMP_MODE_QUIRK quirk and create a new one for handling
XHCI D3cold.

v2 -> v3: correct the quirk name typo XHCI_AMD_S2IDL_SUPPORT_QUIRK -> XHCI_AMD_S2IDLE_SUPPORT_QUIRK

v3 -> v4: Fix commit message to clarify and reference HW
           Rename quirk to describe problem, not hardware
           Add definition for the hardware to source
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 5bbccc9a0179..7930edf8ebd1 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -58,6 +58,7 @@
  #define PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI		0x9a13
  #define PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI		0x1138
  
+#define PCI_DEVICE_ID_AMD_RENOIRE_XHCI			0x1639
Isn't it RENOIR as the painter?

regards,
-- 
js
suse labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help