drm/amdgpu: fix suspend/resume hang regression
authorQiang Yu <qiang.yu@amd.com>
Tue, 1 Mar 2022 06:11:59 +0000 (14:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Mar 2022 23:40:06 +0000 (18:40 -0500)
commitb6901d93cc126bbfbdc6caf5f0c03b82945e43f2
treefc624d4efca7517ba1f7b59ab8195a2085aad6b6
parente6fac6a9c9eb42a9362f9f093dcb8862f2b38383
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: c1a66c3bc425 ("drm/amdgpu: check vm ready by amdgpu_vm->evicting flag")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Qiang Yu <qiang.yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c