Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH pci] PCI: Extend ACS quirk for Wangxun FF6XXX NICs
@ 2026-09-20  7:28 Mengyuan Lou
  2026-09-20  7:32 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Mengyuan Lou @ 2026-09-20  7:28 UTC (permalink / raw)
  To: linux-pci; +Cc: jiawenwu, duanqiangwen, linglingzhang, bhelgaas, Mengyuan Lou

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.

Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>
---
 drivers/pci/quirks.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index de9bbccda21f..a6ec300202d6 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -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,
-- 
2.30.1



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

* Re: [PATCH pci] PCI: Extend ACS quirk for Wangxun FF6XXX NICs
  2026-09-20  7:28 [PATCH pci] PCI: Extend ACS quirk for Wangxun FF6XXX NICs Mengyuan Lou
@ 2026-09-20  7:32 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-09-20  7:32 UTC (permalink / raw)
  To: Mengyuan Lou; +Cc: linux-pci

> 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.
> 
> Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260920072801.61016-1-mengyuanlou@net-swift.com?part=1


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

end of thread, other threads:[~2026-09-20  7:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-20  7:28 [PATCH pci] PCI: Extend ACS quirk for Wangxun FF6XXX NICs Mengyuan Lou
2026-09-20  7:32 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox