Skip to content

Commit 71c6716

Browse files
Kai-Heng Fenggregkh
authored andcommitted
PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken
commit 45beb31 upstream. We are seeing AMD Radeon Pro W5700 doesn't work when IOMMU is enabled: iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=63:00.0 address=0x42b5b01a0] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=63:00.0 address=0x42b5b01c0] The error also makes graphics driver fail to probe the device. It appears to be the same issue as commit 5e89cd3 ("PCI: Mark AMD Navi14 GPU rev 0xc5 ATS as broken") addresses, and indeed the same ATS quirk can workaround the issue. See-also: 5e89cd3 ("PCI: Mark AMD Navi14 GPU rev 0xc5 ATS as broken") See-also: d28ca86 ("PCI: Mark AMD Stoney Radeon R7 GPU ATS as broken") See-also: 9b44b0b ("PCI: Mark AMD Stoney GPU ATS as broken") Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=208725 Link: https://lore.kernel.org/r/20200728104554.28927-1-kai.heng.feng@canonical.com Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c59ea9b commit 71c6716

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/pci/quirks.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5068,7 +5068,8 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0422, quirk_no_ext_tags);
50685068
*/
50695069
static void quirk_amd_harvest_no_ats(struct pci_dev *pdev)
50705070
{
5071-
if (pdev->device == 0x7340 && pdev->revision != 0xc5)
5071+
if ((pdev->device == 0x7312 && pdev->revision != 0x00) ||
5072+
(pdev->device == 0x7340 && pdev->revision != 0xc5))
50725073
return;
50735074

50745075
pci_info(pdev, "disabling ATS\n");
@@ -5079,6 +5080,8 @@ static void quirk_amd_harvest_no_ats(struct pci_dev *pdev)
50795080
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x98e4, quirk_amd_harvest_no_ats);
50805081
/* AMD Iceland dGPU */
50815082
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x6900, quirk_amd_harvest_no_ats);
5083+
/* AMD Navi10 dGPU */
5084+
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7312, quirk_amd_harvest_no_ats);
50825085
/* AMD Navi14 dGPU */
50835086
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7340, quirk_amd_harvest_no_ats);
50845087
#endif /* CONFIG_PCI_ATS */

0 commit comments

Comments
 (0)