]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:56 +0000 (13:34 +0100)
commit7a3a0b0c7f4720cbac79d991ebb3ab1cd2cd065a
tree8d00c6a733864a2b717ca05a2e1af67dff60f377
parent7d7046a6caf2dd99c73de72267c3a7caa319882d
drm/amdgpu: skip to program GFXDEC registers for suspend abort

[ Upstream commit 93bafa32a6918154aa0caf9f66679a32c2431357 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c