PCI: Add ACS quirks for Broadcom BCM57412/57416 NICs
Subsystems (3)
PATCH 1/1 PCI: Add ACS quirks for Broadcom BCM57412/57416 NICs
From: Shantiprasad Shettar <[email protected]>
The older Broadcom BCM57412/57416 NICs may be multi-function devices. While they don't advertise ACS capabilities, peer-to-peer transactions are not possible between the individual functions. So it is ok to treat them as fully isolated.
Add ACS quirks for these 2 devices so the functions can be in independent IOMMU groups and attached individually to userspace applications using VFIO.
--- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/pci/quirks.c +2 -0
@@ -5182,7 +5182,9 @@ static const struct pci_dev_acs_enabled { { PCI_VENDOR_ID_AMPERE, 0xE00B, pci_quirk_xgene_acs }, { PCI_VENDOR_ID_AMPERE, 0xE00C, pci_quirk_xgene_acs },/* Broadcom multi-function device */ + { PCI_VENDOR_ID_BROADCOM, 0x16D6, pci_quirk_mf_endpoint_acs }, { PCI_VENDOR_ID_BROADCOM, 0x16D7, pci_quirk_mf_endpoint_acs }, + { PCI_VENDOR_ID_BROADCOM, 0x16D8, pci_quirk_mf_endpoint_acs }, { PCI_VENDOR_ID_BROADCOM, 0x1750, pci_quirk_mf_endpoint_acs }, { PCI_VENDOR_ID_BROADCOM, 0x1751, pci_quirk_mf_endpoint_acs }, { PCI_VENDOR_ID_BROADCOM, 0x1752, pci_quirk_mf_endpoint_acs },
Signature · 1 line
2.51.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
From: Shantiprasad Shettar <[email protected]>
The older Broadcom BCM57412/57416 NICs may be multi-function devices. While they don't advertise ACS capabilities, peer-to-peer transactions are not possible between the individual functions. So it is ok to treat them as fully isolated.
Quoted 6 lines
Add ACS quirks for these 2 devices so the functions can be in independent IOMMU groups and attached individually to userspace applications using VFIO.
Signed-off-by Shantiprasad Shettar <[email protected]>Signed-off-by Michael Chan <[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