summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTejas Upadhyay <tejas.upadhyay@intel.com>2024-04-30 18:42:29 +0530
committerMatthew Brost <matthew.brost@intel.com>2024-05-07 11:43:08 -0700
commitc18a5e3e61650110b5d8523292abaf6ae19ebdd2 (patch)
tree9ec7e9e2c5f7d389cc54c9a283ecd123a50f205f
parenta4cb575d910a5c65c5f8b764e2b5f56b66019522 (diff)
drm/xe: skip error capture when exec queue is killed
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
-rw-r--r--drivers/gpu/drm/xe/xe_guc_submit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index d274a139010b..2c0aa3443cd9 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -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);