PCI: Extend ACS quirk for Wangxun FF6XXX NICs
PATCH 1/1 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
@@ -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
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines
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_RRandPCI_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 <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1