Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Auld <matthew.auld@intel.com>
To: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>,
	intel-xe@lists.freedesktop.org
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
	"Matthew Brost" <matthew.brost@intel.com>,
	"Michal Mrozek" <michal.mrozek@intel.com>
Subject: Re: [PATCH 2/2] drm/xe/cri: Increase default CCS preempt timeout to 7.5s
Date: Tue, 24 Nov 2026 11:38:47 +0000	[thread overview]
Message-ID: <0bde8dd3-4e61-4ce3-b983-d7a12e28c19e@intel.com> (raw)
In-Reply-To: <20261123123436.2114961-4-himal.prasad.ghimiray@intel.com>

On 23/11/2026 12:34, Himal Prasad Ghimiray wrote:
> CRI uses thread-group preemption for compute, as mid-thread preemption
> cannot be used there. A context can then only be preempted at a
> work-group boundary, so the default 640ms preempt timeout is too short
> under concurrency and leads to engine resets. Default the CCS preempt
> timeout to 7.5s on CRI; it remains tunable via sysfs.
> 
> Cc: Michal Mrozek <michal.mrozek@intel.com>
> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>

Reviewed-by: Matthew Auld <matthew.auld@intel.com>

> ---
>   drivers/gpu/drm/xe/xe_hw_engine.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_hw_engine.c b/drivers/gpu/drm/xe/xe_hw_engine.c
> index 7f304b9fe0e1..959661ecb1a2 100644
> --- a/drivers/gpu/drm/xe/xe_hw_engine.c
> +++ b/drivers/gpu/drm/xe/xe_hw_engine.c
> @@ -581,6 +581,13 @@ static void hw_engine_init_early(struct xe_gt *gt, struct xe_hw_engine *hwe,
>   			}
>   		}
>   
> +		/* CRI compute uses thread-group preemption, which needs a longer timeout */
> +		if (gt_to_xe(gt)->info.platform == XE_CRESCENTISLAND &&
> +		    hwe->class == XE_ENGINE_CLASS_COMPUTE)
> +			hwe->eclass->sched_props.preempt_timeout_us =
> +				min_t(u32, 7500 * 1000,
> +				      hwe->eclass->sched_props.preempt_timeout_max);
> +
>   		/* Record default props */
>   		hwe->eclass->defaults = hwe->eclass->sched_props;
>   	}


  reply	other threads:[~2026-11-24 11:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 12:34 [PATCH 1/2] drm/xe/guc: Scale suspend wait timeout with preempt timeout Himal Prasad Ghimiray
2026-11-23 12:34 ` [PATCH 2/2] drm/xe/cri: Increase default CCS preempt timeout to 7.5s Himal Prasad Ghimiray
2026-11-24 11:38   ` Matthew Auld [this message]
2026-11-23 12:38 ` [PATCH 1/2] drm/xe/guc: Scale suspend wait timeout with preempt timeout sashiko-bot
2026-11-23 13:11 ` Matthew Auld
2026-11-23 14:46 ` ✗ CI.KUnit: failure for series starting with [1/2] " 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=0bde8dd3-4e61-4ce3-b983-d7a12e28c19e@intel.com \
    --to=matthew.auld@intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    --cc=michal.mrozek@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=thomas.hellstrom@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox