[PATCH 2/2] drm/amd/scheduler: add WARN_ON for s_fence->parent

Christian König ckoenig.leichtzumerken at gmail.com
Wed Nov 8 09:44:50 UTC 2017


Am 08.11.2017 um 07:46 schrieb Chunming Zhou:
> Change-Id: I1f6c81002fb2ba21c17cdc14fdde86579b28374e
> Signed-off-by: Chunming Zhou <david1.zhou at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
> index bb8a28b8b993..2db66cb96e92 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);
>   		}




More information about the amd-gfx mailing list