[PATCH] drm/xe: Do not print timedout job message on killed exec queues
Matthew Auld
matthew.auld at intel.com
Tue Apr 29 09:58:13 UTC 2025
On 28/04/2025 18:55, Matthew Brost wrote:
> If a user ctrl-c an app while something is running on the GPU, jobs are
> expected to timeout. Do not spam dmesg with timedout job messages in
> this case.
>
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_submit.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
> index 813c3c0bb250..369be36f7dc5 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -1179,9 +1179,12 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)
> process_name = q->vm->xef->process_name;
> pid = q->vm->xef->pid;
> }
> - xe_gt_notice(guc_to_gt(guc), "Timedout job: seqno=%u, lrc_seqno=%u, guc_id=%d, flags=0x%lx in %s [%d]",
> - xe_sched_job_seqno(job), xe_sched_job_lrc_seqno(job),
> - q->guc->id, q->flags, process_name, pid);
> +
> + if (!exec_queue_killed(q))
> + xe_gt_notice(guc_to_gt(guc),
> + "Timedout job: seqno=%u, lrc_seqno=%u, guc_id=%d, flags=0x%lx in %s [%d]",
> + xe_sched_job_seqno(job), xe_sched_job_lrc_seqno(job),
> + q->guc->id, q->flags, process_name, pid);
>
> trace_xe_sched_job_timedout(job);
>
More information about the Intel-xe
mailing list