mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/imagination: Don't timeout job if its fence has been signaled
Verify the job’s fence in the timeout handler; if the firmware has since signaled completion, then report NO HANG. Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com> Reviewed-by: Matt Coster <matt.coster@imgtec.com> Link: https://patch.msgid.link/20260519-b4-context_reset-v2-2-931018a7131d@imgtec.com Signed-off-by: Matt Coster <matt.coster@imgtec.com>
This commit is contained in:
parent
de1e8a590f
commit
ee7cb74253
|
|
@ -851,7 +851,9 @@ static void pvr_queue_start(struct pvr_queue *queue)
|
|||
* the scheduler, and re-assign parent fences in the middle.
|
||||
*
|
||||
* Return:
|
||||
* * DRM_GPU_SCHED_STAT_RESET.
|
||||
* *%DRM_GPU_SCHED_STAT_NO_HANG if the job fence has already been
|
||||
* signaled, or
|
||||
* *%DRM_GPU_SCHED_STAT_RESET otherwise.
|
||||
*/
|
||||
static enum drm_gpu_sched_stat
|
||||
pvr_queue_timedout_job(struct drm_sched_job *s_job)
|
||||
|
|
@ -862,6 +864,9 @@ pvr_queue_timedout_job(struct drm_sched_job *s_job)
|
|||
struct pvr_job *job;
|
||||
u32 job_count = 0;
|
||||
|
||||
if (dma_fence_is_signaled(s_job->s_fence->parent))
|
||||
return DRM_GPU_SCHED_STAT_NO_HANG;
|
||||
|
||||
dev_err(sched->dev, "Job timeout\n");
|
||||
|
||||
/* Before we stop the scheduler, make sure the queue is out of any list, so
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user