]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
PCI: Add ACS quirk for Zhaoxin multi-function devices
authorRaymond Pang <RaymondPang-oc@zhaoxin.com>
Fri, 27 Mar 2020 09:11:47 +0000 (17:11 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 25 May 2020 08:42:05 +0000 (10:42 +0200)
BugLink: https://bugs.launchpad.net/bugs/1876765
commit 0325837c51cb7c9a5bd3e354ac0c0cda0667d50e upstream.

Some Zhaoxin endpoints are implemented as multi-function devices without an
ACS capability, but they actually don't support peer-to-peer transactions.
Add ACS quirks to declare DMA isolation.

Link: https://lore.kernel.org/r/20200327091148.5190-3-RaymondPang-oc@zhaoxin.com
Signed-off-by: Raymond Pang <RaymondPang-oc@zhaoxin.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/pci/quirks.c

index 8991b59c5c5b441f2635e922d27e895851fc9b51..0d8add47d02c28eecbf9fa63e3d8bb3a9f09015a 100644 (file)
@@ -4776,6 +4776,10 @@ static const struct pci_dev_acs_enabled {
        { PCI_VENDOR_ID_BROADCOM, 0xD714, pci_quirk_brcm_acs },
        /* Amazon Annapurna Labs */
        { PCI_VENDOR_ID_AMAZON_ANNAPURNA_LABS, 0x0031, pci_quirk_al_acs },
+       /* Zhaoxin multi-function devices */
+       { PCI_VENDOR_ID_ZHAOXIN, 0x3038, pci_quirk_mf_endpoint_acs },
+       { PCI_VENDOR_ID_ZHAOXIN, 0x3104, pci_quirk_mf_endpoint_acs },
+       { PCI_VENDOR_ID_ZHAOXIN, 0x9083, pci_quirk_mf_endpoint_acs },
        { 0 }
 };