Commit aa5fc436 authored by Liu01 Tong's avatar Liu01 Tong Committed by Alex Deucher
Browse files

drm/amdgpu: fix task hang from failed job submission during process kill



During process kill, drm_sched_entity_flush() will kill the vm
entities. The following job submissions of this process will fail, and
the resources of these jobs have not been released, nor have the fences
been signalled, causing tasks to hang and timeout.

Fix by check entity status in amdgpu_vm_ready() and avoid submit jobs to
stopped entity.

v2: add amdgpu_vm_ready() check before amdgpu_vm_clear_freed() in
function amdgpu_cs_vm_handling().

Fixes: 1f02f204 ("drm/amdgpu: Avoid extra evict-restore process.")
Signed-off-by: default avatarLiu01 Tong <Tong.Liu01@amd.com>
Signed-off-by: default avatarLin.Cao <lincao12@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit f101c13a)
parent 040bc6d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment