diff options
author | Dave Airlie <airlied@redhat.com> | 2022-03-04 06:02:13 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2022-03-04 06:02:13 +0300 |
commit | c9585249c245e23580a2c3edbc8f14d9d7173f12 (patch) | |
tree | 60b66441dbe886f708670befecf15726dd2ce13b /drivers | |
parent | 0d9f0ee17b3f57012e6b8530d6b9e80f138a8e28 (diff) | |
parent | f1ef17011c765495c876fa75435e59eecfdc1ee4 (diff) | |
download | linux-c9585249c245e23580a2c3edbc8f14d9d7173f12.tar.xz |
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 <airlied@redhat.com>
From: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303045035.5650-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index d62190b3dd9b..418341a67517 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -777,7 +777,8 @@ bool amdgpu_vm_ready(struct amdgpu_vm *vm) amdgpu_vm_eviction_lock(vm); ret = !vm->evicting; amdgpu_vm_eviction_unlock(vm); - return ret; + + return ret && list_empty(&vm->evicted); } /** |