Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1232464pxa; Thu, 20 Aug 2020 06:18:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRA4HN2rWZUOQ1NEStMySpCGqf86gaGl/xCrncJnRCu49/z9DrdwcbSOYOyYd0wcghljeo X-Received: by 2002:a17:906:a1cf:: with SMTP id bx15mr3024244ejb.231.1597929528387; Thu, 20 Aug 2020 06:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597929528; cv=none; d=google.com; s=arc-20160816; b=HqnZDClf1bevbdFG1UPSyo1K/8sqs1X7gBtQqXUVBcrXZcoMAqG84HQxtvpgThF4Dz Jbe44v53hpN6F2UKubPvc/i8dWPqjID95MGRzIREhQkz8LBa8Aw0hwGZFMTjj9xg4ClW 7VRzLula7SESm4wQl+11LLVVa48pV8ZeMwUVNZrpWLk0bPt7rESuP1HJpC3YIroTsPQf ALrs24tHZVI+UXqWxPIrHLal+rKFpFEGBx4pQQDhHuJUAw3TOYFf5Z7cOMvMATpsGGMN eqFbGxodVIftOz50chhxT0TtLvz8ggWui4W+XdT35bZ54H7FzkthdQth07pJoGj7yb/L vTtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ybNKTOyAkc//rIUZtlGVRtlnj9Ta1tySTxszP4sZ5AY=; b=huPRZT9yGSGzmaxAMuVaNGioBv4S7pQVYrHLHqCWW3+Ax/bn4Hcrj3Vvbazroh8dye CmkXyNy9A3/q6yd7GWajenA4r+93w7410r6U6Hsu/eAL0viamTH6l0g3Wg1+DiqkNnDp EyLmCdZuQ9OQjgA+Dsjn/gKmk/CaCf+raKnaVZr+r7feQIXSlFy7iJA0fZWQbpwayLBC IieEwXyH13trCNTw6KieKy0/h8ThvZTqxVAZDcefhbkW4XRuAJTADQ2tumSxYcx407zC aKN+DvKoMQEJqfF8tJRQw3TqVKIWgTTEfJKDDqh+1mFQGZ1BbX62eUKFG4HKT+8V6z8S U2dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="GZxA/gla"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si1420541edn.91.2020.08.20.06.18.23; Thu, 20 Aug 2020 06:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="GZxA/gla"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728728AbgHTNPl (ORCPT + 99 others); Thu, 20 Aug 2020 09:15:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:49812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727913AbgHTJfw (ORCPT ); Thu, 20 Aug 2020 05:35:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5593420724; Thu, 20 Aug 2020 09:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597916151; bh=Hs1Xz//+v/ly/pTeXAoOFdj5f0tq4o3DFLI+JX6P4pc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GZxA/glaK9AB56upqTStcDAsXbdXoMs6LSoTe7MnlkyiItq6jwYG1ypam2VdCtqvn FRFSgQrHNuQKq7ZI1llc3O5P7eQJBBcYruEk/zqREOD3w53AurDuij2Cqt7CFMbDSZ KiD16kA+4wdPjvcq8tsVlb2p38/ywTGj7OwRx6Kc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai-Heng Feng , Bjorn Helgaas , Alex Deucher Subject: [PATCH 5.7 006/204] PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken Date: Thu, 20 Aug 2020 11:18:23 +0200 Message-Id: <20200820091606.518241784@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091606.194320503@linuxfoundation.org> References: <20200820091606.194320503@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai-Heng Feng commit 45beb31d3afb651bb5c41897e46bd4fa9980c51c 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 5e89cd303e3a ("PCI: Mark AMD Navi14 GPU rev 0xc5 ATS as broken") addresses, and indeed the same ATS quirk can workaround the issue. See-also: 5e89cd303e3a ("PCI: Mark AMD Navi14 GPU rev 0xc5 ATS as broken") See-also: d28ca864c493 ("PCI: Mark AMD Stoney Radeon R7 GPU ATS as broken") See-also: 9b44b0b09dec ("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 Signed-off-by: Bjorn Helgaas Acked-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -5207,7 +5207,8 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SE */ static void quirk_amd_harvest_no_ats(struct pci_dev *pdev) { - if (pdev->device == 0x7340 && pdev->revision != 0xc5) + if ((pdev->device == 0x7312 && pdev->revision != 0x00) || + (pdev->device == 0x7340 && pdev->revision != 0xc5)) return; pci_info(pdev, "disabling ATS\n"); @@ -5218,6 +5219,8 @@ static void quirk_amd_harvest_no_ats(str DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x98e4, quirk_amd_harvest_no_ats); /* AMD Iceland dGPU */ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x6900, quirk_amd_harvest_no_ats); +/* AMD Navi10 dGPU */ +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); #endif /* CONFIG_PCI_ATS */