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=1796380652; b=wUDglOHkSZ3bZTTUaj/6fr173vlAtfWuzCsnj4bjPuNbbAG3Z9yYVLqgmutcH/I5WJai H2VBCQGO5cZi+tSTHjJl/GqCeDet/elA9F8kYALbP3I0+SRFO1JxKcb75u/Hz6VNDersQ MdcEguvzHklYgA1maqV94kQ6SsTKSWZK0gSRBcniQjT/Rc2+Mh+TfCiCCBdQW+hN1yHZu 4pyMLFI1jkti402VhJM4MhlpLbDCmpoGkXEoegFCVaCORPwNMMDI4FL44Wg/Sam0Unmqr YJqWDVhma+2Po8yHxnPSaGuWJKEVu4YnS4can1ANgYAanV6ug8ca/AeD0NQYCCVSgKw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380652; 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=p5momRkYhisBFJA/piJbR0LGiPqc6QGDRfWfZrTw3Ck=; b=wqOgOZ0Gfx8Ib4RMe65h8iq/jhrl0qzz0YiQ3+YZWfKjDrzSXxHxOwOXU/mOJk7o+J4O mE0IAW+W8lHJIRWWQWhPCNaEWT6IhSLOKuw8a4nL+SfxZRMMzg4Rp4ANs/SdwSej+98Jb 4pgpBQ+3M0JLdjMTBu4hY2+SUh5pB24ut+DQNj6O9CoPNBBKq5QSqDrLnyAGmdwezCwPG COTgW8TYtsMLWLtvN9SqHmvcuKLajbPeur3MvDgfyQxf+TMbEBKWqLGdrOs9155rULuG1 OkH5sgAMOnE8IdwWeuZ7Rtn23VHz+mxY4zEmafMMIYFeu0DvB96neyBugqarvUvU/bA== 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=0Xletrou; 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 9EFE3606A680; Fri, 4 Dec 2026 10:37:32 +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=0Xletrou Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF28A1F000CE; Fri, 4 Dec 2026 10:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380652; bh=p5momRkYhisBFJA/piJbR0LGiPqc6QGDRfWfZrTw3Ck=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0XletrouPcmePlZdcJfh7IZwrLu7HdoRpqV7ngknKI40fSmzLZ8hcL+ak92qYsqvm BvE5Jebv/+onkcHKmbYzgXSxJiqpe8HCMzwuGcztO8CLWL+Y6hvr3XXRAGikSBTdyx CGSxQLSj3VDiH/WQQ0DW7ZgCqTDZEK2tdoiro5yQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Deucher , Wang Jiang Subject: [PATCH 7.3 368/742] drm/amdgpu/gfx_v9_0: Add gfxoff quirk for Lenovo Picasso 318F Date: Fri, 4 Dec 2026 19:03:52 +0900 Message-ID: <20261204100644.861650890@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@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 7.3-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 @@ -1365,6 +1365,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 }, @@ -1374,6 +1377,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 */ @@ -1390,7 +1394,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;