Skip to content

Commit 661d71e

Browse files
Lang Yualexdeucher
authored andcommitted
drm/amdgpu/umsch: don't execute umsch test when GPU is in reset/suspend
umsch test needs full GPU functionality(e.g., VM update, TLB flush, possibly buffer moving under memory pressure) which may be not ready under these states. Just skip it to avoid potential issues. Signed-off-by: Lang Yu <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Veerabadhran Gopalakrishnan <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent e26305f commit 661d71e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,9 @@ static int umsch_mm_late_init(void *handle)
774774
{
775775
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
776776

777+
if (amdgpu_in_reset(adev) || adev->in_s0ix || adev->in_suspend)
778+
return 0;
779+
777780
return umsch_mm_test(adev);
778781
}
779782

0 commit comments

Comments
 (0)