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 17:26:22 +0000 (12:26 -0500)
commit0326de4c444a4e2653e6526756bb8ad229ddb929
tree08dc7d50b14d0fb4cdcb059c46b628d295b4b13f
parent0a5fd7811a17af708cefdaab93af86838353002d
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