[PATCH] drm/amdgpu: Force signal hw_fences that are embedded in non-sched jobs

Luben Tuikov luben.tuikov at amd.com
Tue Mar 7 23:21:34 UTC 2023


On 2023-03-07 15:36, Luben Tuikov wrote:
> +			job = container_of(old, struct amdgpu_job, hw_fence);
> +			if (!job->base.s_fence && !dma_fence_is_signaled(old))
> +				dma_fence_signal(old);

Thinking about this more, is !job->base.s_fence condition here
enough to mean "non-sched jobs like ib_test"?

I feel that it is a bit overloaded here--could we have this condition
satisfied,yet we can't willy-nilly signal the fence here?
-- 
Regards,
Luben



More information about the amd-gfx mailing list