PCI: Add ACS quirk for Wangxun FF5xxx NICs
authorMengyuan Lou <mengyuanlou@net-swift.com>
Fri, 15 Nov 2024 02:46:04 +0000 (10:46 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 15 Nov 2024 23:30:15 +0000 (17:30 -0600)
commitaa46a3736afcb7b0793766d22479b8b99fc1b322
treedf72f8042df89168c54bb3e8e5965a7ce5a0f0a6
parent9852d85ec9d492ebef56dc5f229416c925758edc
PCI: Add ACS quirk for Wangxun FF5xxx NICs

Wangxun FF5xxx NICs are similar to SFxxx, RP1000 and RP2000 NICs.  They may
be multi-function devices, but they do not advertise an ACS capability.

But the hardware does isolate FF5xxx functions as though it had an ACS
capability and PCI_ACS_RR and PCI_ACS_CR were set in the ACS Control
register, i.e., all peer-to-peer traffic is directed upstream instead of
being routed internally.

Add ACS quirk for FF5xxx NICs in pci_quirk_wangxun_nic_acs() so the
functions can be in independent IOMMU groups.

Link: https://lore.kernel.org/r/E16053DB2B80E9A5+20241115024604.30493-1-mengyuanlou@net-swift.com
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c