diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2017-11-07 10:27:43 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:47:18 -0500 |
commit | 45bfd9690a6af05453f7b00ca82ba458d9573c9b (patch) | |
tree | 9666c2662b2a16f5be6ba8479226dc09473770cf /drivers/gpu/drm/amd/scheduler | |
parent | f4323bccd17bca85f9ed10c85ed85bdd6c0b431a (diff) | |
download | blackbird-obmc-linux-45bfd9690a6af05453f7b00ca82ba458d9573c9b.tar.gz blackbird-obmc-linux-45bfd9690a6af05453f7b00ca82ba458d9573c9b.zip |
drm/amd/scheduler: add WARN_ON for s_fence->parent
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler')
-rw-r--r-- | drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c index 9e3748a5b398..dcb987e6d94a 100644 --- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c +++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c @@ -241,6 +241,7 @@ void amd_sched_entity_fini(struct amd_gpu_scheduler *sched, amd_sched_fence_scheduled(s_fence); dma_fence_set_error(&s_fence->finished, -ESRCH); amd_sched_fence_finished(s_fence); + WARN_ON(s_fence->parent); dma_fence_put(&s_fence->finished); sched->ops->free_job(job); } |