PCI: Add ACS quirk for Wangxun NICs
authorMengyuan Lou <mengyuanlou@net-swift.com>
Tue, 7 Feb 2023 10:24:19 +0000 (18:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:57:38 +0000 (13:57 +0100)
commitffcd94262e0e00d4bf53db9721e05743a5be83ca
tree2dce022436d4bdf5f4fc1ef1e0eaf73c2fd29b9c
parent19c4d6c7b0497750cfbfd9f83dc54ea82821ec87
PCI: Add ACS quirk for Wangxun NICs

[ Upstream commit a2b9b123ccac913e9f9b80337d687a2fe786a634 ]

Wangxun has verified there is no peer-to-peer between functions for the
below selection of SFxxx, RP1000 and RP2000 NICS.  They may be
multi-function devices, but the hardware does not advertise ACS capability.

Add an ACS quirk for these devices so the functions can be in independent
IOMMU groups.

Link: https://lore.kernel.org/r/20230207102419.44326-1-mengyuanlou@net-swift.com
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/quirks.c
include/linux/pci_ids.h