Commit 45bfd969 authored by Chunming Zhou's avatar Chunming Zhou Committed by Alex Deucher

drm/amd/scheduler: add WARN_ON for s_fence->parent

Signed-off-by: default avatarChunming Zhou <david1.zhou@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f4323bcc
...@@ -241,6 +241,7 @@ void amd_sched_entity_fini(struct amd_gpu_scheduler *sched, ...@@ -241,6 +241,7 @@ void amd_sched_entity_fini(struct amd_gpu_scheduler *sched,
amd_sched_fence_scheduled(s_fence); amd_sched_fence_scheduled(s_fence);
dma_fence_set_error(&s_fence->finished, -ESRCH); dma_fence_set_error(&s_fence->finished, -ESRCH);
amd_sched_fence_finished(s_fence); amd_sched_fence_finished(s_fence);
WARN_ON(s_fence->parent);
dma_fence_put(&s_fence->finished); dma_fence_put(&s_fence->finished);
sched->ops->free_job(job); sched->ops->free_job(job);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment