PCI: Mark AMD Raven iGPU ATS as broken in some platforms
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Dec 2020 16:08:47 +0000 (10:08 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Dec 2020 17:41:20 +0000 (11:41 -0600)
Edgar reported [1] AMD Raven iGPU errors on several of his systems.  There
is no root cause.  Turn off ATS on these systems to avoid the issue.

[1] https://lore.kernel.org/linux-iommu/MWHPR10MB1310CDB6829DDCF5EA84A14689150@MWHPR10MB1310.namprd10.prod.outlook.com/

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/MWHPR10MB131082779A86BE4CCCF190B789CB0@MWHPR10MB1310.namprd10.prod.outlook.com
Reported-by: Edgar Merger <Edgar.Merger@emerson.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c

index f70692a..02d0c1f 100644 (file)
@@ -5164,6 +5164,18 @@ static void quirk_amd_harvest_no_ats(struct pci_dev *pdev)
            (pdev->device == 0x7340 && pdev->revision != 0xc5))
                return;
 
+       if (pdev->device == 0x15d8) {
+               if (pdev->revision == 0xcf &&
+                   pdev->subsystem_vendor == 0xea50 &&
+                   (pdev->subsystem_device == 0xce19 ||
+                    pdev->subsystem_device == 0xcc10 ||
+                    pdev->subsystem_device == 0xcc08))
+                       goto no_ats;
+               else
+                       return;
+       }
+
+no_ats:
        pci_info(pdev, "disabling ATS\n");
        pdev->ats_cap = 0;
 }
@@ -5176,6 +5188,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x6900, quirk_amd_harvest_no_ats);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7312, quirk_amd_harvest_no_ats);
 /* AMD Navi14 dGPU */
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7340, quirk_amd_harvest_no_ats);
+/* AMD Raven platform iGPU */
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x15d8, quirk_amd_harvest_no_ats);
 #endif /* CONFIG_PCI_ATS */
 
 /* Freescale PCIe doesn't support MSI in RC mode */