From 2dd648b6154294c844168550fb5d8f8cdc0d76dc Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: May 10 2023 08:00:41 +0000 Subject: PCI: Add ACS quirks for Cavium multi-function devices (git-fixes). --- diff --git a/patches.suse/PCI-Add-ACS-quirks-for-Cavium-multi-function-devices.patch b/patches.suse/PCI-Add-ACS-quirks-for-Cavium-multi-function-devices.patch new file mode 100644 index 0000000..3bbb34b --- /dev/null +++ b/patches.suse/PCI-Add-ACS-quirks-for-Cavium-multi-function-devices.patch @@ -0,0 +1,37 @@ +From: George Cherian +Date: Tue, 10 Aug 2021 17:54:25 +0530 +Subject: PCI: Add ACS quirks for Cavium multi-function devices +Git-commit: 32837d8a8f63eb95dcb9cd005524a27f06478832 +Patch-mainline: 5.15-rc1 +References: git-fixes + +Some Cavium endpoints are implemented as multi-function devices without ACS +capability, but they actually don't support peer-to-peer transactions. + +Add ACS quirks to declare DMA isolation for the following devices: + + - BGX device found on Octeon-TX (8xxx) + - CGX device found on Octeon-TX2 (9xxx) + - RPM device found on Octeon-TX3 (10xxx) + +Link: https://lore.kernel.org/r/20210810122425.1115156-1-george.cherian@marvell.com +Signed-off-by: George Cherian +Signed-off-by: Bjorn Helgaas +Signed-off-by: Jiri Slaby +--- + drivers/pci/quirks.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/drivers/pci/quirks.c ++++ b/drivers/pci/quirks.c +@@ -4910,6 +4910,10 @@ static const struct pci_dev_acs_enabled + { 0x10df, 0x720, pci_quirk_mf_endpoint_acs }, /* Emulex Skyhawk-R */ + /* Cavium ThunderX */ + { PCI_VENDOR_ID_CAVIUM, PCI_ANY_ID, pci_quirk_cavium_acs }, ++ /* Cavium multi-function devices */ ++ { PCI_VENDOR_ID_CAVIUM, 0xA026, pci_quirk_mf_endpoint_acs }, ++ { PCI_VENDOR_ID_CAVIUM, 0xA059, pci_quirk_mf_endpoint_acs }, ++ { PCI_VENDOR_ID_CAVIUM, 0xA060, pci_quirk_mf_endpoint_acs }, + /* APM X-Gene */ + { PCI_VENDOR_ID_AMCC, 0xE004, pci_quirk_xgene_acs }, + /* Ampere Computing */ diff --git a/series.conf b/series.conf index ee6de91..89fd358 100644 --- a/series.conf +++ b/series.conf @@ -61600,6 +61600,7 @@ patches.suse/PCI-Call-Max-Payload-Size-related-fixup-quirks-early.patch patches.suse/PCI-Restrict-ASMedia-ASM1062-SATA-Max-Payload-Size-S.patch patches.suse/PCI-Return-0-data-on-pciconfig_read-CAP_SYS_ADMIN-fa.patch + patches.suse/PCI-Add-ACS-quirks-for-Cavium-multi-function-devices.patch patches.suse/msft-hv-2426-PCI-hv-Support-for-create-interrupt-v3.patch patches.suse/profiling-fix-shift-out-of-bounds-bugs.patch patches.suse/prctl-allow-to-setup-brk-for-et_dyn-executables.patch