Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3710596pxv; Mon, 26 Jul 2021 09:59:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7XzNXSCi3UGkC+xHopPl0cmyGmcTAMX1SKjA22reQDlu12afnsS7rTUOpuNM9lt5mTW4D X-Received: by 2002:aa7:dcc5:: with SMTP id w5mr23000985edu.355.1627318763091; Mon, 26 Jul 2021 09:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627318763; cv=none; d=google.com; s=arc-20160816; b=IyhgKYQRPh/D4zkj3Y5xoKhnDBdFSE7EG7ED/CZR/gvfMfENG9pHgzY42jhS5ekZtu M5cRERRR9BE97RrQDBPHNZvNRT+p31xReMlhCOJdl142tvGnRhFiCEXkL+Vacixz2WqT xCISeRQYQYYybWg25cpEQhKQLyI9tp0XBQVfJQfg7k23VL0J2uVaYxNLzaYgmKLOfztA FqA60Lr1YxzYiVBfzR6aILGE1Cp2vH0UDIWnKN3LxRmvzkLYzShHoHZLyypypTGJ83XW x1Yey2HQL3L/hWU75E43mAqm38csbmKjpkCOj8UOM6z1p9/O4i3EeG4Scs3IzW62XFJX R9zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aS3/b8lxSqd8T5iIQUu2qLvIikn+hJTyuiMiMWRjOfk=; b=kzAZ0kZ/hFw31CLZvYe1sb3P9+TQn5nef2LVybDU2eH+1pbDLyMJNRRlJKoSARGY8z 5nx8+sMqUYLC8KJIoKXsNvlyMRsjmHdwEZeqmCFfb3rRSKdfCRO2pKL1Xy7D9K9yvBH/ q4QIxZU/SYiwt5nbb7sl1X43Kzyq6wFhQQW8ihMqpB/nKWxD+8++WS4V8bi53ayCbx+R HcvrHApBLXeBYxSttaKZQdZxSSmTWtZF2kGWPhvspSSduGMes65S/5gGajDr/WRP3PKB c7Lj92cr5KZwX9lNN2/9SVx5AlygfqVt2/339xCF+okkYqdlVwTIiL3qkWTlREg9eSQZ lNxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="a/irK5mv"; 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=pass (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 n14si400775ejc.276.2021.07.26.09.58.59; Mon, 26 Jul 2021 09:59:23 -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=@linuxfoundation.org header.s=korg header.b="a/irK5mv"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237165AbhGZPeb (ORCPT + 99 others); Mon, 26 Jul 2021 11:34:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:60988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236439AbhGZPTl (ORCPT ); Mon, 26 Jul 2021 11:19:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9028960F90; Mon, 26 Jul 2021 16:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315210; bh=0AodhGA3pDG0mmbPGiE8X7bOVuQZspOx8dagAcZCLV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a/irK5mvEPQQJIL1dTdvfAG4hfDQIpRIXf4jKW6NTxWbrmZ7ltKKsWE4gkwpCa/La tkfFAfdeFnjydY9K8pfYh9NQEOO64NPfTC9PsfsXrKWZT2EYcJ9bgKuPXs21PeuxMu vgOJQppEWlxjsabQEBLgEmjum72jrMdmw9yZvAYY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Deucher , Evan Quan , Bjorn Helgaas , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Sudip Mukherjee Subject: [PATCH 5.4 106/108] PCI: Mark AMD Navi14 GPU ATS as broken Date: Mon, 26 Jul 2021 17:39:47 +0200 Message-Id: <20210726153835.072526512@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Evan Quan commit e8946a53e2a698c148b3b3ed732f43c7747fbeb6 upstream Observed unexpected GPU hang during runpm stress test on 0x7341 rev 0x00. Further debugging shows broken ATS is related. Disable ATS on this part. Similar issues on other devices: a2da5d8cc0b0 ("PCI: Mark AMD Raven iGPU ATS as broken in some platforms") 45beb31d3afb ("PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken") 5e89cd303e3a ("PCI: Mark AMD Navi14 GPU rev 0xc5 ATS as broken") Suggested-by: Alex Deucher Link: https://lore.kernel.org/r/20210602021255.939090-1-evan.quan@amd.com Signed-off-by: Evan Quan Signed-off-by: Bjorn Helgaas Reviewed-by: Krzysztof WilczyƄski Cc: stable@vger.kernel.org [sudip: adjust context] Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -5312,7 +5312,8 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SE static void quirk_amd_harvest_no_ats(struct pci_dev *pdev) { if ((pdev->device == 0x7312 && pdev->revision != 0x00) || - (pdev->device == 0x7340 && pdev->revision != 0xc5)) + (pdev->device == 0x7340 && pdev->revision != 0xc5) || + (pdev->device == 0x7341 && pdev->revision != 0x00)) return; pci_info(pdev, "disabling ATS\n"); @@ -5327,6 +5328,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AT 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); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7341, quirk_amd_harvest_no_ats); #endif /* CONFIG_PCI_ATS */ /* Freescale PCIe doesn't support MSI in RC mode */