From patchwork Mon Apr 8 10:37:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolai Kostrigin X-Patchwork-Id: 10889269 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A38A4922 for ; Mon, 8 Apr 2019 10:44:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AFC628644 for ; Mon, 8 Apr 2019 10:44:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F19428650; Mon, 8 Apr 2019 10:44:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A00E28644 for ; Mon, 8 Apr 2019 10:44:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726554AbfDHKn7 (ORCPT ); Mon, 8 Apr 2019 06:43:59 -0400 Received: from 176.12.98.74.MAXnet.ru ([176.12.98.74]:40096 "EHLO shell.ipa.basealt.ru" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1725984AbfDHKn7 (ORCPT ); Mon, 8 Apr 2019 06:43:59 -0400 X-Greylist: delayed 359 seconds by postgrey-1.27 at vger.kernel.org; Mon, 08 Apr 2019 06:43:58 EDT Received: by shell.ipa.basealt.ru (Postfix, from userid 709000081) id 19C9327C6C; Mon, 8 Apr 2019 13:38:01 +0300 (MSK) From: Nikolai Kostrigin To: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jroedel@suse.de, Nikolai Kostrigin Subject: [PATCH RESEND 1/1] PCI: Add ATS-disable quirk for AMD Radeon R7 GPUs Date: Mon, 8 Apr 2019 13:37:25 +0300 Message-Id: <20190408103725.30426-2-nickel@altlinux.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190408103725.30426-1-nickel@altlinux.org> References: <20190408103725.30426-1-nickel@altlinux.org> MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ATS is broken on this hardware (at least for Stoney Ridge based laptop) and causes IOMMU stalls and system failure. Disable ATS on these devices to make them usable again with IOMMU enabled Thanks to Joerg Roedel for help. https://bugzilla.kernel.org/show_bug.cgi?id=194521 Signed-off-by: Nikolai Kostrigin Acked-by: Joerg Roedel --- drivers/pci/quirks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 4700d24e5d55..abb2532e16bf 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4876,6 +4876,7 @@ static void quirk_no_ats(struct pci_dev *pdev) /* AMD Stoney platform GPU */ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x98e4, quirk_no_ats); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x6900, quirk_no_ats); #endif /* CONFIG_PCI_ATS */ /* Freescale PCIe doesn't support MSI in RC mode */