Skip to contentSkip to conversation

usb: xhci-pci: Add AMD 600 series to xhci-pci-prom21

PATCH In review Mirko Jechow 4 participants 4 messages Oct 4 – Oct 16

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 usb: xhci-pci: Add AMD 600 series to xhci-pci-prom21

From: Stephen Horvath <[email protected]>

It seems the xhci-pci-prom21 module only has IDs for the 800 series chipsets. However, the 600 series chipsets also have Promontory 21 chips, so we should add their IDs to the list as well.

I have tested this on my X670 board featuring DID 0x43f7.

1022:43f7 also appears on the PCI ID database
(https://pci-ids.ucw.cz/read/PC/1022/43f7).
Device IDs 0x43f9 (B665) & 0x43fa (A620) were suggested by Shyam.

Also list the new IDs in Documentation/hwmon/prom21-xhci.rst.

Cc Shyam Sundar S K <[email protected]>
Cc Jihong Min <[email protected]>
[[email protected]: add new IDs to prom21-xhci.rst]

---
Changes in v3:
- List the new IDs on the PCI IDs line of Documentation/hwmon/prom21-xhci.rst (requested by Jihong Min)
- Picked up from Stephen; v2 had no follow-up since 2026-08-23
- Link to v2: https://patch.msgid.link/[email protected]

---
 Documentation/hwmon/prom21-xhci.rst | 2 +-
 drivers/usb/host/xhci-pci-prom21.c  | 3 +++
 drivers/usb/host/xhci-pci.c         | 3 +++
 drivers/usb/host/xhci-pci.h         | 3 +++
 4 files changed, 10 insertions(+), 1 deletion(-)
Documentation/hwmon/prom21-xhci.rst +1 -1
index 7984fb187bd8a..6c0b6e7368921 100644
@@ -9,7 +9,7 @@ Supported chips:
 
     Prefix: 'prom21_xhci'
 
-    PCI IDs: 1022:43fc, 1022:43fd
+    PCI IDs: 1022:43f7, 1022:43f9, 1022:43fa, 1022:43fc, 1022:43fd
 
 Author:
 
drivers/usb/host/xhci-pci-prom21.c +3 -0
index 6486f4a093455..5f088a47d79f3 100644
@@ -111,6 +111,9 @@ static void prom21_xhci_remove(struct pci_dev *dev)
 }
 
 static const struct pci_device_id pci_ids[] = {
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F9) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FA) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FC) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FD) },
 	{ /* end: all zeroes */ }
drivers/usb/host/xhci-pci.c +3 -0
index a8889081ae824..b407676808fca 100644
@@ -701,6 +701,9 @@ static const struct pci_device_id pci_ids_renesas[] = {
 
 /* handled by xhci-pci-prom21 if enabled */
 static const struct pci_device_id pci_ids_prom21[] = {
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F9) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FA) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FC) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FD) },
 	{ /* end: all zeroes */ }
drivers/usb/host/xhci-pci.h +3 -0
index 11f435f94322a..533efc7db8012 100644
@@ -4,6 +4,9 @@
 #ifndef XHCI_PCI_H
 #define XHCI_PCI_H
 
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7	0x43f7
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43F9	0x43f9
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FA	0x43fa
 #define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FC	0x43fc
 #define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FD	0x43fd
 

base-commit: 639df5d23876a548b86fe6526bed8b97edf64d96

Signature · 1 line
2.43.0
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] usb: xhci-pci: missing PM quirk for new Prom21 chips and incomplete refactoring --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] usb: xhci-pci: missing PM quirk for new Prom21 chips and incomplete refactoring --

commit 88cfe4d5f35bfe8fa1398a1c64bdb16fc99db18c
Author: Stephen Horvath <[email protected]>

usb: xhci-pci: Add AMD 600 series to xhci-pci-prom21

This commit adds the device IDs for the AMD 600 series chipsets (which feature Promontory 21 chips) to the xhci-pci-prom21 driver and documentation. It ensures they are recognized alongside the 800 series chipsets.

drivers/usb/host/xhci-pci.h line 9

Quoted 11 lines
drivers/usb/host/xhci-pci.h +3 -0
index 11f435f94322a..533efc7db8012 100644
@@ -4,6 +4,9 @@
 #ifndef XHCI_PCI_H
 #define XHCI_PCI_H
 
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7	0x43f7
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43F9	0x43f9
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FA	0x43fa

[Severity: Medium]
In drivers/usb/host/xhci-pci.c:xhci_pci_quirks(), there is an existing quirk check that applies to one of the Promontory 21 chips:

    if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x43f7)
        xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW;

Should this hardcoded value be refactored to use the newly defined PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7 macro?

Additionally, since the new Promontory 21 chips (0x43f9, 0x43fa) are identical silicon to 0x43f7, do they also need to be added to this check?

Without this quirk, runtime PM will not be enabled by default for motherboards with B665 or A620 chipsets, causing a power regression when initializing the xHCI controller.

Quoted 3 lines
drivers/usb/host/xhci-pci.h +0 -0
 #define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FC	0x43fc
 #define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FD	0x43fd
 
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#2 lore raw
In reply to Mirko Jechow

Hi Mirko.

Quoted 21 lines · Mirko Jechow

From: Stephen Horvath <[email protected]>

It seems the xhci-pci-prom21 module only has IDs for the 800 series chipsets. However, the 600 series chipsets also have Promontory 21 chips, so we should add their IDs to the list as well.

I have tested this on my X670 board featuring DID 0x43f7.

1022:43f7 also appears on the PCI ID database
(https://pci-ids.ucw.cz/read/PC/1022/43f7).
Device IDs 0x43f9 (B665) & 0x43fa (A620) were suggested by Shyam.

Also list the new IDs in Documentation/hwmon/prom21-xhci.rst.

Cc Shyam Sundar S K <[email protected]>
Cc Jihong Min <[email protected]>
[[email protected]: add new IDs to prom21-xhci.rst]
Quoted 5 lines

---
Changes in v3:
- List the new IDs on the PCI IDs line of Documentation/hwmon/prom21-xhci.rst (requested by Jihong Min)
- Picked up from Stephen; v2 had no follow-up since 2026-08-23

Thanks for picking this up! Sorry I've been busy and forgot about this.

Quoted 13 lines

- Link to v2: https://patch.msgid.link/[email protected]

---
 Documentation/hwmon/prom21-xhci.rst | 2 +-
 drivers/usb/host/xhci-pci-prom21.c  | 3 +++
 drivers/usb/host/xhci-pci.c         | 3 +++
 drivers/usb/host/xhci-pci.h         | 3 +++
 4 files changed, 10 insertions(+), 1 deletion(-)
Documentation/hwmon/prom21-xhci.rst +0 -0
index 7984fb187bd8a..6c0b6e7368921 100644

Documentation/hwmon/prom21-xhci.rst Supported chips: · line 15

Quoted 8 lines
Documentation/hwmon/prom21-xhci.rst +1 -1
@@ -9,7 +9,7 @@ Supported chips:
 
     Prefix: 'prom21_xhci'
 
-    PCI IDs: 1022:43fc, 1022:43fd
+    PCI IDs: 1022:43f7, 1022:43f9, 1022:43fa, 1022:43fc, 1022:43fd
 
 Author:
 

Looks good to me!

Thanks,
Steve

maintainer Acked-by on v3 1/1
#3 lore raw
In reply to Mirko Jechow
Quoted 14 lines · Mirko Jechow

From: Stephen Horvath <[email protected]>

It seems the xhci-pci-prom21 module only has IDs for the 800 series chipsets. However, the 600 series chipsets also have Promontory 21 chips, so we should add their IDs to the list as well.

I have tested this on my X670 board featuring DID 0x43f7.

1022:43f7 also appears on the PCI ID database
(https://pci-ids.ucw.cz/read/PC/1022/43f7).
Device IDs 0x43f9 (B665) & 0x43fa (A620) were suggested by Shyam.

Also list the new IDs in Documentation/hwmon/prom21-xhci.rst.

Quoted 7 lines
Cc Shyam Sundar S K <[email protected]>
Cc Jihong Min <[email protected]>
[[email protected]: add new IDs to prom21-xhci.rst]
Quoted 70 lines

---
Changes in v3:
- List the new IDs on the PCI IDs line of Documentation/hwmon/prom21-xhci.rst (requested by Jihong Min)
- Picked up from Stephen; v2 had no follow-up since 2026-08-23
- Link to v2: https://patch.msgid.link/[email protected]

---
  Documentation/hwmon/prom21-xhci.rst | 2 +-
  drivers/usb/host/xhci-pci-prom21.c  | 3 +++
  drivers/usb/host/xhci-pci.c         | 3 +++
  drivers/usb/host/xhci-pci.h         | 3 +++
  4 files changed, 10 insertions(+), 1 deletion(-)
Documentation/hwmon/prom21-xhci.rst +1 -1
index 7984fb187bd8a..6c0b6e7368921 100644
@@ -9,7 +9,7 @@ Supported chips:
 
      Prefix: 'prom21_xhci'
 
-    PCI IDs: 1022:43fc, 1022:43fd
+    PCI IDs: 1022:43f7, 1022:43f9, 1022:43fa, 1022:43fc, 1022:43fd
 
  Author:
 
drivers/usb/host/xhci-pci-prom21.c +3 -0
index 6486f4a093455..5f088a47d79f3 100644
@@ -111,6 +111,9 @@ static void prom21_xhci_remove(struct pci_dev *dev)
  }
 
  static const struct pci_device_id pci_ids[] = {
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F9) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FA) },
  	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FC) },
  	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FD) },
  	{ /* end: all zeroes */ }
drivers/usb/host/xhci-pci.c +3 -0
index a8889081ae824..b407676808fca 100644
@@ -701,6 +701,9 @@ static const struct pci_device_id pci_ids_renesas[] = {
 
  /* handled by xhci-pci-prom21 if enabled */
  static const struct pci_device_id pci_ids_prom21[] = {
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43F9) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FA) },
  	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FC) },
  	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PROM21_XHCI_43FD) },
  	{ /* end: all zeroes */ }
drivers/usb/host/xhci-pci.h +3 -0
index 11f435f94322a..533efc7db8012 100644
@@ -4,6 +4,9 @@
  #ifndef XHCI_PCI_H
  #define XHCI_PCI_H
 
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43F7	0x43f7
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43F9	0x43f9
+#define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FA	0x43fa
  #define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FC	0x43fc
  #define PCI_DEVICE_ID_AMD_PROM21_XHCI_43FD	0x43fd
 

base-commit: 639df5d23876a548b86fe6526bed8b97edf64d96