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=1796383797; b=JIgpGOCMEYAB43Z8RKoO4MTRT2dMS2b2+nHxt2/v0yrmj2gGmmKrSQSkv8yIk61AcFHd tBBf6lQ5lItvFCDnekLiDax3FjfaH2bW1XrZiBLx5QLNVAF4Zh/va1NlH0RwhcRv3gyb8 vpp2JNe6EYhgYq6fBbVan0kw1S9pC92Dd2EIqHYJFs7JBeKLGbut3xm/Ys7q8TRIEZQ4l 7490v87K9V0yucUcUTplCY0Y8ia7/DZllv8Q5mjfqXOwaDeD6/H0rc66F6vtIh+Nfgpjf 5jF0I8V/aLShQQcDPIhVoYFSW/AKLfuSHHjX1mMD/xRBkFSzQHkFywY5WMKDNq90X1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383797; 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=9e/tsM66FbITDoRPfWah+RdZ0KkObyIALWFrxtSGK2s=; b=QHIflz1RqpWwFOzoqL27K81R56eQfiksXniSF0i5j9IqyYuqFdrvFtYrZNjn1B2sRQV0 BrxsbML/uT+++X/1B+62F04mfUZklMa6MLU0ZLYJGmD4Zt/bpPv9knAmIe6cuyqyjvL7o QnaOQqtxqK2NiPFj6cPH0lNrdgNmo9jb4FgExzGqrTpBLMFIi2dD3pr+/QFQcU/MVmcXR FaMf4dmi2xrqbMYoYFsdsElkA0548kDetKktM0yLNlC73gW2YCdKPMMTYXrJDSFsJBOKD ftuEs5VXJjZCnooG++YvLrj1q/vfoUhCTKj0KbxHGSdVmgKcLY9gc7KJiqIx8UIZrTg== 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=Hp9dbi0u; 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 131A3606A336; Fri, 4 Dec 2026 11:29:57 +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=Hp9dbi0u Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83BB71F000C2; Fri, 4 Dec 2026 11:29:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383796; bh=9e/tsM66FbITDoRPfWah+RdZ0KkObyIALWFrxtSGK2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Hp9dbi0uSuMFmESRHPevoh/cwx0ITZdgaF4iSJXVsJf0W5TP4drlSTKBTqvstV/Cq wnPRL+EkAR5hCozvOuD+J9gehUqn0iuQPg0bIs2/cG+vT5UvgDbowOapX1Ixm7YvgW C43zkOPHLfd2W++xVGDZv6OR5KvGzxxRirz3rrcc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Deucher , Wang Jiang Subject: [PATCH 6.12 329/555] drm/amdgpu/gfx_v9_0: Add gfxoff quirk for Lenovo Picasso 318F Date: Fri, 4 Dec 2026 19:06:12 +0900 Message-ID: <20261204100622.411254917@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-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 @@ -1337,6 +1337,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 }, @@ -1346,6 +1349,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 */ @@ -1362,7 +1366,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;