Skip to content

Commit f1ef170

Browse files
yuqalexdeucher
authored andcommitted
drm/amdgpu: fix suspend/resume hang regression
Regression has been reported that suspend/resume may hang with the previous vm ready check commit. So bring back the evicted list check as a temp fix. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1922 Fixes: c1a66c3 ("drm/amdgpu: check vm ready by amdgpu_vm->evicting flag") Reviewed-by: Christian König <[email protected]> Signed-off-by: Qiang Yu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e7c470a commit f1ef170

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ bool amdgpu_vm_ready(struct amdgpu_vm *vm)
777777
amdgpu_vm_eviction_lock(vm);
778778
ret = !vm->evicting;
779779
amdgpu_vm_eviction_unlock(vm);
780-
return ret;
780+
781+
return ret && list_empty(&vm->evicted);
781782
}
782783

783784
/**

0 commit comments

Comments
 (0)