Skip to content

Commit c94df62

Browse files
committed
Merge branch 'pci/virtualization'
- Add ACS quirk for more Zhaoxin Root Ports (LeoLiuoc) * pci/virtualization: PCI: Add ACS quirk for more Zhaoxin Root Ports
2 parents d6f5bcc + e367e3c commit c94df62

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/pci/quirks.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4709,17 +4709,21 @@ static int pci_quirk_xgene_acs(struct pci_dev *dev, u16 acs_flags)
47094709
* But the implementation could block peer-to-peer transactions between them
47104710
* and provide ACS-like functionality.
47114711
*/
4712-
static int pci_quirk_zhaoxin_pcie_ports_acs(struct pci_dev *dev, u16 acs_flags)
4712+
static int pci_quirk_zhaoxin_pcie_ports_acs(struct pci_dev *dev, u16 acs_flags)
47134713
{
47144714
if (!pci_is_pcie(dev) ||
47154715
((pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT) &&
47164716
(pci_pcie_type(dev) != PCI_EXP_TYPE_DOWNSTREAM)))
47174717
return -ENOTTY;
47184718

4719+
/*
4720+
* Future Zhaoxin Root Ports and Switch Downstream Ports will
4721+
* implement ACS capability in accordance with the PCIe Spec.
4722+
*/
47194723
switch (dev->device) {
47204724
case 0x0710 ... 0x071e:
47214725
case 0x0721:
4722-
case 0x0723 ... 0x0732:
4726+
case 0x0723 ... 0x0752:
47234727
return pci_acs_ctrl_enabled(acs_flags,
47244728
PCI_ACS_SV | PCI_ACS_RR | PCI_ACS_CR | PCI_ACS_UF);
47254729
}

0 commit comments

Comments
 (0)