Skip to content

Commit daf8de0

Browse files
committed
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>
1 parent 8c45096 commit daf8de0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,10 @@ static int amdgpu_pmops_suspend(struct device *dev)
21542154
adev->in_s3 = true;
21552155
r = amdgpu_device_suspend(drm_dev, true);
21562156
adev->in_s3 = false;
2157-
2157+
if (r)
2158+
return r;
2159+
if (!adev->in_s0ix)
2160+
r = amdgpu_asic_reset(adev);
21582161
return r;
21592162
}
21602163

0 commit comments

Comments
 (0)