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 17:26:22 +0000 (12:26 -0500)
commit3f719cf22f5636e372bdcd8e6916e1e10d2006c5
treefe46b1200942cc84eb8fd502a4831bab9f008ae2
parent0326de4c444a4e2653e6526756bb8ad229ddb929
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