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=1796382209; b=GNP/F93DMz7SWSGK6OKrLzPIPOBf1b46qJSLwO4D09kuHRvm63Lj+OR4Ox+1J10TwGpq MMzs34KnvgPbx9LOSFEyP1P7J+zYLInrkz+FoPm1JcvWpAsTCru/xfifoLFVRYBMj40zs Jzzi5eWlRMzWmUxIdUOvouo6WJ5H+mWUtlMYsa4Ae/F+kCwtUy1ihPpSqsU4Ry6pwPfew W9yTJpVf64pUmI4X8uUfIcp5z4m+8Dk+t5iDt3o76OekKOhiOMgXFF4D6kzpA1ch/n5u8 rjWfTx3l21m+OqWqKM6X84mbk68/xP3hj3olYJqffWR9ewyJ2ygW/KbPovAv3gwABtw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382209; 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=kVQoWosy8hzXa/I+QPHovo5XuSL/PiVpcBa2U2EE934=; b=oHHs72faiZSGrhgQx5ty2PFzF9rVvL3/JRZ/jMPOcGS5jYIIoIvudYKDKiqGyjLDACpA S1102yQgqD7JuUsTonhiOyDdr2psI9/Aa76sW/tyqvM/hjY/7l1Dz6Q1+Lh8ZntZyC1sK TKDROXz23lgLxBZZ2OV463eItTmhfEjyJVylwaqCofFRbu9hDcecBvlClbnmmVSpCQsWa CkAPv1SuLIQrotV1j3ljro+A3WCEHZIkQbJkeBbXkotPAnRIHJAd1xz9oZlCDgRVYJ9/K Zrv5iX8q2A8XaZqCJ5uvJtPnOdrmRDfUQnfO5CZPvz3mR36iaZykB6vqo2f73oFOv1A== 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=tHQxN6R8; 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 36AB6606A322; Fri, 4 Dec 2026 11:03:29 +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=tHQxN6R8 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4ED7A1F000C2; Fri, 4 Dec 2026 11:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796382209; bh=kVQoWosy8hzXa/I+QPHovo5XuSL/PiVpcBa2U2EE934=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tHQxN6R8qSy7gRHSZsWUWHctqEY+q7kPFrVcqgSdYSFEb7rOffurVaPMdVguAgfe6 eWSZSyROP/7ukfGq+d7HiotfmKhCHHo9w+0IHfRWCjcheSJEL4icGh7nCL80/hcHgJ OaFX1UsxohcRACzZrJWJyTG22VKF7ZH4vAcF6Evw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Deucher , Wang Jiang Subject: [PATCH 6.18 354/703] drm/amdgpu/gfx_v9_0: Add gfxoff quirk for Lenovo Picasso 318F Date: Fri, 4 Dec 2026 19:04:13 +0900 Message-ID: <20261204100637.214564353@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-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 @@ -1364,6 +1364,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 }, @@ -1373,6 +1376,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 */ @@ -1389,7 +1393,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;