From: Raag Jadav <raag.jadav@intel.com>
To: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: intel-xe@lists.freedesktop.org, Matthew Brost <matthew.brost@intel.com>
Subject: Re: [PATCH] drm/xe/guc: Restore TDR timeout when resubmitting jobs after GT reset
Date: Tue, 1 Dec 2026 19:24:50 +0100 [thread overview]
Message-ID: <aw8Q8qM-98CbMhKz@black.igk.intel.com> (raw)
In-Reply-To: <20261201180419.3211018-2-himal.prasad.ghimiray@intel.com>
On Tue, Dec 01, 2026 at 11:34:20PM +0530, Himal Prasad Ghimiray wrote:
> 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")
The fix might be correct but xe_sched_reinit() has been introduced quite
recently and I'm not sure if this would build on stable kernels.
Raag
> 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
>
next prev parent reply other threads:[~2026-12-01 18:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2026-12-01 18:31 ` sashiko-bot
2026-12-01 18:42 ` ✓ Xe.CI.BAT: success for " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw8Q8qM-98CbMhKz@black.igk.intel.com \
--to=raag.jadav@intel.com \
--cc=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.