Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/guc: Restore TDR timeout when resubmitting jobs after GT reset
@ 2026-12-01 18:04 Himal Prasad Ghimiray
  2026-12-01 18:09 ` ✓ CI.KUnit: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Himal Prasad Ghimiray @ 2026-12-01 18:04 UTC (permalink / raw)
  To: intel-xe; +Cc: Himal Prasad Ghimiray, Matthew Brost

xe_sched_tdr_queue_imm() permanently zeroes the scheduler timeout.
Kernel queues survive a GT reset and have their jobs replayed, but the
timeout is never restored, so the TDR fires on the replayed job
immediately and burns its retry budget, eventually wedging the device.

Restore the timeout via xe_sched_reinit() before resubmitting jobs.

Cc: Matthew Brost <matthew.brost@intel.com>
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
---
 drivers/gpu/drm/xe/xe_guc_submit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index 3b8c0e84d632..0a209fd8a906 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -3157,6 +3157,8 @@ static void guc_exec_queue_start(struct xe_exec_queue *q)
 						     xe_lrc_ring_head(q->lrc[i]));
 			}
 		}
+		/* Undo a prior xe_sched_tdr_queue_imm() zeroing the timeout */
+		xe_sched_reinit(sched);
 		xe_sched_resubmit_jobs(sched);
 	}
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-01 18:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 18:04 [PATCH] drm/xe/guc: Restore TDR timeout when resubmitting jobs after GT reset Himal Prasad Ghimiray
2026-12-01 18:09 ` ✓ CI.KUnit: success for " Patchwork
2026-12-01 18:16 ` [PATCH] " Matthew Brost
2026-12-01 18:24 ` Raag Jadav
2026-12-01 18:31 ` sashiko-bot
2026-12-01 18:42 ` ✓ Xe.CI.BAT: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox