drm/amdgpu: always reset the asic in suspend (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Nov 2021 16:25:30 +0000 (11:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Dec 2021 13:54:45 +0000 (08:54 -0500)
commit6dc8265f9803ccb7e5da804e01601f0c14f270e0
tree4e3c4a37184703d8dab5f6c040001a425955b2b4
parent4a700546ec9b8fafedf569f363f905b9ec7f5ee8
drm/amdgpu: always reset the asic in suspend (v2)

If the platform suspend happens to fail and the power rail
is not turned off, the GPU will be in an unknown state on
resume, so reset the asic so that it will be in a known
good state on resume even if the platform suspend failed.

v2: handle s0ix

Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c