Skip to content

Commit c958524

Browse files
committed
Merge tag 'amd-drm-fixes-5.17-2022-03-02' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-5.17-2022-03-02: amdgpu: - Suspend regression fix Signed-off-by: Dave Airlie <[email protected]> From: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 0d9f0ee + f1ef170 commit c958524

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)