From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796389191; b=377Cj4aKfNFx5vZZCpf3n0faYshAwvIqxbejtQkzARVa3FjZcVtL4zuVDmNxMdj/49fu NQrHRe29r6zPrkHpv48ZZTNivC7zmgrA5xIqVGcA9AMy6OmNicET0wfVzjI+8nftFwyxb FsdFCGKHNIgRH7c+1455ml//9Ljtq3B69T6+5AKpXdkNjFG0yLC0Z2DDdSTUCAgVkw7cf DH14Sg9zuaIcTbOB1ofTxqgI09FXjk1vcOqABIibb0OOG1x5tTQIEi040SOI7I9oeefUc sQFqGOA7YB7BrlbNs98ODnGUYOZ4xeVj4jLC9CJRMTYLdQ7Js+Xc6yenTnjOTOJj+IA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389191; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=6DvRGmvbHhvIhIv6tv6n0J0jKB/jTmFVms9hkG+t+pc=; b=II3BtNrMnr2RZ+bxRQMS9dbpwLsgt0NWU7RFYtRrgTgLOVc/ckwVnCSuX4wvE9LgYLIy QJcB/29BGaUELg7tMk4eYB9KgSCoLkL7lFw+HFWNvyd99L4DQVTCCOf88Sx8c02CGpZyW O2r0lMjCqzWEe/xbNAabMnyOM7TGw3XLXzeS/HqS7J0KaA1Nqu3KgkIq7m9AVXaT5cK9U uXizWApDSHWTJKCHzQZr3kZYXxVwDAFTbSsZyCSkRD0oA7D8pUGk9vZP0C9F43ASg4z8x sjnm8Jr2tjx73dNmAaaYr5kWdzpOlrsHSjpSgojDwPqxnqEvW89muzAEaL+Kvm2YKZw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=S6YEouWI; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0457606A334; Fri, 4 Dec 2026 12:59:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=S6YEouWI Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4F2E1F0093B; Fri, 4 Dec 2026 12:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796389191; bh=6DvRGmvbHhvIhIv6tv6n0J0jKB/jTmFVms9hkG+t+pc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=S6YEouWIy+tj5kPDKF+FingdN52kHWZXf6tbz3Ja6HIA2c3TR2H1NBagkgFYk2Dxh gigbKWhjESyJ3Ft75IJ6brP4I20esiwj1jMmi+Gh/UiuA/CSeLmkzoPKjMxPIIb7J2 q398xzkP+HTRCuffMZwn4SibIw64+yg/v273o/6k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Deucher , Wang Jiang Subject: [PATCH 6.1 0899/1059] drm/amdgpu/gfx_v9_0: Add gfxoff quirk for Lenovo Picasso 318F Date: Fri, 4 Dec 2026 19:07:10 +0900 Message-ID: <20261204100707.301961333@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wang Jiang commit 24916f2c98f86c90db617d0e828d930d7a35577e upstream. GFXOFF causes gfx ring timeout and desktop freeze on Lenovo 90NYA05DCD (Ryzen 5 3400G, Picasso). Add a quirk entry with ANY_REV marker to disable gfxoff for subsystem 17aa:318f regardless of chip revision. Reviewed-by: Alex Deucher Signed-off-by: Wang Jiang Signed-off-by: Alex Deucher (cherry picked from commit 32a647c3218d8bb5bf03f68784fbc405c1e5fbd3) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -1164,6 +1164,9 @@ struct amdgpu_gfxoff_quirk { u8 revision; }; +/* Match any chip revision in amdgpu_gfxoff_quirk.revision */ +#define AMDGPU_GFXOFF_QUIRK_ANY_REV 0xff + static const struct amdgpu_gfxoff_quirk amdgpu_gfxoff_quirk_list[] = { /* https://bugzilla.kernel.org/show_bug.cgi?id=204689 */ { 0x1002, 0x15dd, 0x1002, 0x15dd, 0xc8 }, @@ -1173,6 +1176,7 @@ static const struct amdgpu_gfxoff_quirk { 0x1002, 0x15dd, 0x1002, 0x15dd, 0xc6 }, /* Apple MacBook Pro (15-inch, 2019) Radeon Pro Vega 20 4 GB */ { 0x1002, 0x69af, 0x106b, 0x019a, 0xc0 }, + { 0x1002, 0x15d8, 0x17aa, 0x318f, AMDGPU_GFXOFF_QUIRK_ANY_REV }, /* https://bbs.openkylin.top/t/topic/171497 */ { 0x1002, 0x15d8, 0x19e5, 0x3e14, 0xc2 }, /* HP 705G4 DM with R5 2400G */ @@ -1189,7 +1193,8 @@ static bool gfx_v9_0_should_disable_gfxo pdev->device == p->chip_device && pdev->subsystem_vendor == p->subsys_vendor && pdev->subsystem_device == p->subsys_device && - pdev->revision == p->revision) { + (p->revision == AMDGPU_GFXOFF_QUIRK_ANY_REV || + pdev->revision == p->revision)) { return true; } ++p;