Skip to content

Commit 3182f36

Browse files
committed
drm/xe: Do not print timedout job message on killed exec queues
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 <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9c088a5 commit 3182f36

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

drivers/gpu/drm/xe/xe_guc_submit.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,9 +1179,12 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)
11791179
process_name = q->vm->xef->process_name;
11801180
pid = q->vm->xef->pid;
11811181
}
1182-
xe_gt_notice(guc_to_gt(guc), "Timedout job: seqno=%u, lrc_seqno=%u, guc_id=%d, flags=0x%lx in %s [%d]",
1183-
xe_sched_job_seqno(job), xe_sched_job_lrc_seqno(job),
1184-
q->guc->id, q->flags, process_name, pid);
1182+
1183+
if (!exec_queue_killed(q))
1184+
xe_gt_notice(guc_to_gt(guc),
1185+
"Timedout job: seqno=%u, lrc_seqno=%u, guc_id=%d, flags=0x%lx in %s [%d]",
1186+
xe_sched_job_seqno(job), xe_sched_job_lrc_seqno(job),
1187+
q->guc->id, q->flags, process_name, pid);
11851188

11861189
trace_xe_sched_job_timedout(job);
11871190

0 commit comments

Comments
 (0)