Public

> -----Original Message-----
> From: [email protected] <[email protected]>
> Sent: Tuesday, November 10, 2026 3:35 AM
> To: Deucher, Alexander <[email protected]>; Koenig, Christian
> <[email protected]>
> Cc: [email protected]; [email protected]; [email protected]; dri-
> [email protected]; [email protected]; Wang Jiang
> <[email protected]>
> Subject: [PATCH] drm/amdgpu/gfx_v9_0: Add gfxoff quirk for Lenovo Picasso
> 318F
>
> From: Wang Jiang <[email protected]>
>
> 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.
>
> Signed-off-by: Wang Jiang <[email protected]>

Reviewed and applied.

Thanks,

> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> index c3322058720f..0cec645710b6 100644
> --- 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 amdgpu_gfxoff_quirk_list[] = {
>       { 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_gfxoff(struct
> pci_dev *pdev)
>                   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;
> --
> 2.25.1

Reply via email to