Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3944485pxj; Mon, 21 Jun 2021 09:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydLyeeXhMV4nVTImHFmFXnpb0giFW9o0/cy/bd+Op3vPXY6vorC3kAAqDhKWN68K6Pp0hr X-Received: by 2002:a05:6402:1111:: with SMTP id u17mr23050161edv.87.1624294542986; Mon, 21 Jun 2021 09:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624294542; cv=none; d=google.com; s=arc-20160816; b=oB29t3gUj66dMlX77Fxp2N0Kuc6cEfCXlRT4CDwUeAUl3ZclJBbF9qW7bhAdye46/x Ni8eUjJONGbkUvPJVWMFoT1eIL16k5A6UNfgJ2j/0HzSHAH3abm4RIkFAXp4eobjqfvo e9YugI7fWQxYzSx10UIb4IqHI/SYXO7lU/ID25RM6LUnPnrQDIH7DOy+v0pyrCh8nuT5 F40QNSEScJyVVSaFwNi1kQ+mYDUcz3f4gux8uoC+cVU1eZf1SBw8DsxQxS73OIS9XrlV mfGhZHTOAV2Z8EawU6YoAl0KzDg/O7txouXnGOBKKbzpd8u3y3xaEpwakcHRK5wqq7Wv JTgg== 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=rlbu0n17Uo2vQ4ScoGdDLLrbDj1MbUsm1OmkI7uF4t4=; b=0Zbxw0q64q1SoIXiQ4U3QlRpjUS+zfaG+1B0BwcvzsSuDzO0m2ENl6CES3teTr4wvC xwPjny1gH/Zo9SOePU2KlfyVRKtPTeUIaLZBaoj3GeurbEIqClCdjjbB5FSywYOVKkFi HPSkiw/ZjUyNMXjcDBSWbzTvzNXuBPJMb9Y01vqmRpYjvJcbHrS5UWVo8dPjatazJjtU awNUqb3uPyaiKErdBCYmZTe+C9pZ60Jw3ZK5TbWtlNQn+MLWnkWy9k2bPvzDQdPTISwn 8mhblRESDkcCve6521/UWD144Llf7alsaR8hYPy9a7Ju57iRiEXO11bUM9Y5zgorjYUK j6dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H6n8vYxH; 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 bf28si16946597edb.224.2021.06.21.09.55.20; Mon, 21 Jun 2021 09:55:42 -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=H6n8vYxH; 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 S233418AbhFUQy1 (ORCPT + 99 others); Mon, 21 Jun 2021 12:54:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:41424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233598AbhFUQt7 (ORCPT ); Mon, 21 Jun 2021 12:49:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DF9F2613EE; Mon, 21 Jun 2021 16:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293297; bh=De1de2B3RLNPWpxenOfIaw+pqfLOFaRv7d6OKCyX/ZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H6n8vYxHB2aIpUDXZFXssdjZAiyd6npsoI8IlgmHw02rTugW4wDvMdLFOmE6j8UXt QkJgPlVilOrQi2armFoRYo6dhO5tjDe8aGOv0ccsFhGllq3a4AMH2i6//VgMAGBpof s+K2fFAWVhpWVQPRCTxPtGeNqqZaLr9UHtX9aoew= 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?= Subject: [PATCH 5.12 128/178] PCI: Mark AMD Navi14 GPU ATS as broken Date: Mon, 21 Jun 2021 18:15:42 +0200 Message-Id: <20210621154927.133990459@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@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 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 @@ -5187,7 +5187,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; if (pdev->device == 0x15d8) { @@ -5214,6 +5215,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); /* AMD Raven platform iGPU */ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x15d8, quirk_amd_harvest_no_ats); #endif /* CONFIG_PCI_ATS */