Skip to contentSkip to conversation

PCI: Extend ACS quirk for Wangxun FF6XXX NICs

PATCH 楼梦圆 1 participant 1 message Nov 3 PCI

lore
Share & tools
lore

楼梦圆

author
#0 lore raw

Hi,

https://lore.kernel.org/linux-pci/[email protected]/
Gentle ping on this patch — it's been about six weeks without review.

Thank,
Mengyuan

------------------ Original ------------------

From:  "楼梦圆"<[email protected]>;
Date:  Sun, Sep 20, 2026 03:28 PM
To:  "linux-pci"<[email protected]>;

Cc: "jiawenwu"<[email protected]>; "duanqiangwen"<[email protected]>; "'张玲玲'"<[email protected]>; "bhelgaas"<[email protected]>; "楼梦圆"<[email protected]>;
Subject: [PATCH pci] PCI: Extend ACS quirk for Wangxun FF6XXX NICs

The new Wangxun NICs do not advertise an ACS capability, but the hardware isolates functions on multi-function devices by directing peer-to-peer traffic upstream, providing behavior equivalent to PCI_ACS_RR and PCI_ACS_CR.

Add the FF6xxx device IDs to pci_quirk_wangxun_nic_acs() so the functions can be placed in independent IOMMU groups.

---
 drivers/pci/quirks.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/pci/quirks.c +4 -0
index de9bbccda21f..a6ec300202d6 100644
@@ -5062,12 +5062,16 @@ static int pci_quirk_loongson_acs(struct pci_dev *dev, u16 acs_flags)
  * SFxxx 1G NICs(em).
  * RP1000/RP2000 10G NICs(sp).
  * FF5xxx 40G/25G/10G NICs(aml).
+ * FF6xxx 100G/25G/10G NICs(am).
  */
 static int  pci_quirk_wangxun_nic_acs(struct pci_dev *dev, u16 acs_flags)
 {
  switch (dev->device) {
  case 0x0100 ... 0x010F: /* EM */
  case 0x1001: case 0x2001: /* SP */
+ case 0x4010: case 0x4012: case 0x4014: /* AM 10G */
+ case 0x4025: case 0x4125: case 0x4325: case 0x4425: /* AM 25G */
+ case 0x4101: case 0x4103: case 0x4105: case 0x4107: /* AM 100G */
  case 0x5010: case 0x5025: case 0x5040: /* AML */
  case 0x5110: case 0x5125: case 0x5140: /* AML */
  return pci_acs_ctrl_enabled(acs_flags,
Signature · 1 line
2.30.1