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=1796386593; b=26hFXbeHOC5FHWVdrVEQmeSHcjbLIBCc/syXZMlmDUQz/JCub7WF2v5Pn+QthWTqp6n9 EDZGCOk3uOR1ZLNSpcaz39mGLcsBqkiGc+Lg+ig2k9KrTNG2LL/Oz7ORytLGSMxxUOuCb H2itvHov5lbqAHvf8s1363yN+0BOxSsGCafxd7lX+Q68PkhpI5+T+AcJq19BSyRMkatU6 htVEBZ06ogleOBteC2To3R5GBz7wMGd99I/ZJqWUWFdLWThZ1huFbbbCFjGQY2+unuQ0F AVjsAqJY+JwKl4vGYUJaek2wwO0Qs4y6DYVgqM8gSniujmSVNWIOh7G4aCFkaT/Wx2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386593; 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=/p1WZCs/KnQcA1uHw1auEcniyHMvMFlKwL/0AAvOkyE=; b=G2eWvq01lPtxq1nZ8Nkc8lxwyNN3iZGCWy10LODDUEr2uHq36boD5NrtlVYAd2Qq8XE2 AypoPXvjTE5RU+XtpQtTfBqZPyOdsb9T243kPp/yGhLrPWdZZ3+O56BcABv9OgZFLlWqJ +P8JhbwqPuVfWXjZBt/jRMNbBGSmuPs4hBEb3gXfvT+dAo15mvbGXuvtielroALL7SYWK 253z/cFvnKUaYYIva/7zvWKz6iMyL/I8NwQkjnrmQYSeWun0cVmM9I8oNikuxGnUynVod +C8YK+Z1n8PRLXzsiKtV1yzGhWO/y7qo8I8+9XbCCyzAtxvcCsyfQfBgrYiruocNA7w== 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="kZ/c86Nc"; 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 7A784606A32C; Fri, 4 Dec 2026 12:16:33 +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=kZ/c86Nc Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADD241F00897; Fri, 4 Dec 2026 12:16:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796386593; bh=/p1WZCs/KnQcA1uHw1auEcniyHMvMFlKwL/0AAvOkyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kZ/c86NcM6PC33CoM7Eckl2xCicf2Z4vMyYKRUUkXZLRpy7hWOQKHduaEsHhPjSy4 HZBQoPFztCGagTvyGj62Z46w2kUPw6saam4+DemSN89OgbNGnSR5bxU5DHMzL93gUp iPJS3FasX8/KStGjpG2wnDv9QwZpc5oTiVONHhwk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Deucher , Wang Jiang Subject: [PATCH 6.6 0989/1167] drm/amdgpu/gfx_v9_0: Add gfxoff quirk for Lenovo Picasso 318F Date: Fri, 4 Dec 2026 19:06:56 +0900 Message-ID: <20261204100727.962494034@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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.6-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 @@ -1163,6 +1163,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 }, @@ -1172,6 +1175,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 */ @@ -1188,7 +1192,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;