Skip to content

Commit

Permalink
drm/xe: skip error capture when exec queue is killed
Browse files Browse the repository at this point in the history
When user closes exec queue soon after job submission,
we are generating error coredump. Instead check if
exec queue is killed during job timeout then skip
error coredump capture.

V2:
  - Just skip error capture - MattB

Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240430131229.2228809-1-tejas.upadhyay@intel.com
  • Loading branch information
Tejas Upadhyay authored and Matthew Brost committed May 7, 2024
1 parent a4cb575 commit c18a5e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/gpu/drm/xe/xe_guc_submit.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,10 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)
xe_gt_WARN(q->gt, q->flags & EXEC_QUEUE_FLAG_VM && !exec_queue_killed(q),
"VM job timed out on non-killed execqueue\n");

simple_error_capture(q);
xe_devcoredump(job);
if (!exec_queue_killed(q)) {
simple_error_capture(q);
xe_devcoredump(job);
}

trace_xe_sched_job_timedout(job);

Expand Down

0 comments on commit c18a5e3

Please sign in to comment.