drm/amdgpu: skip to program GFXDEC registers for suspend abort
authorPrike Liang <Prike.Liang@amd.com>
Tue, 16 Jan 2024 11:10:45 +0000 (19:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Feb 2024 23:19:04 +0000 (18:19 -0500)
commit93bafa32a6918154aa0caf9f66679a32c2431357
treebe8afd60b8579699fc1dd1afb90eb4a7f727406f
parent2103370afba74dda39ff5d2d69163c86644ce528
drm/amdgpu: skip to program GFXDEC registers for suspend abort

In the suspend abort cases, the gfx power rail doesn't turn off so
some GFXDEC registers/CSB can't reset to default value and at this
moment reinitialize GFXDEC/CSB will result in an unexpected error.
So let skip those program sequence for the suspend abort case.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c