drm/amdgpu: reset gpu for s3 suspend abort case
authorPrike Liang <Prike.Liang@amd.com>
Wed, 17 Jan 2024 05:39:37 +0000 (13:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Feb 2024 23:19:08 +0000 (18:19 -0500)
commit6ef82ac664bb9568ca3956e0d9c9c478e25077ff
tree5681f52f8871124fff0384e7e6a748d83677d068
parent93bafa32a6918154aa0caf9f66679a32c2431357
drm/amdgpu: reset gpu for s3 suspend abort case

In the s3 suspend abort case some type of gfx9 power
rail not turn off from FCH side and this will put the
GPU in an unknown power status, so let's reset the gpu
to a known good power state before reinitialize gpu
device.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c