Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Raag Jadav <raag.jadav@intel.com>
To: "Laguna, Lukasz" <lukasz.laguna@intel.com>
Cc: intel-xe@lists.freedesktop.org, matthew.brost@intel.com,
	michal.wajdeczko@intel.com, daniele.ceraolospurio@intel.com,
	sk.anirban@intel.com
Subject: Re: [PATCH v1] drm/xe/guc: Allow GuC CT for wedged device
Date: Tue, 25 Aug 2026 12:04:00 +0200	[thread overview]
Message-ID: <ao1okNN6fR9mQ0cM@black.igk.intel.com> (raw)
In-Reply-To: <4ad586b1-14c5-4cd4-98aa-056cb47265a8@intel.com>

On Tue, Aug 25, 2026 at 11:39:44AM +0200, Laguna, Lukasz wrote:
> On 8/21/2026 14:21, Raag Jadav wrote:
> > Commit 50fa9acac26f ("drm/xe/guc: distinguish wedged from recoverable
> > cancellation") introduced distinguishable error codes for g2h failure
> > cases, but also blocked GuC CT for wedged device. This is problematic
> > in cases where we want to prevent user from accessing the device but
> > also keep GuC CT functioning on temporarily wedged device. First user
> > of such requirement is PCIe FLR handling where we require uC firmware
> > loading while the device is temporarily wedged.
> > 
> > Fixes: 50fa9acac26f ("drm/xe/guc: distinguish wedged from recoverable cancellation")
> > Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> > ---
> >   drivers/gpu/drm/xe/xe_guc_ct.c | 8 --------
> >   1 file changed, 8 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
> > index 5c4733da385c..97e38147effd 100644
> > --- a/drivers/gpu/drm/xe/xe_guc_ct.c
> > +++ b/drivers/gpu/drm/xe/xe_guc_ct.c
> > @@ -1062,11 +1062,6 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
> >   	xe_gt_assert(gt, g2h_len || !num_g2h);
> >   	lockdep_assert_held(&ct->lock);
> > -	if (xe_device_wedged(ct_to_xe(ct))) {
> > -		ret = -ENOTRECOVERABLE;
> > -		goto out;
> > -	}
> > -
> >   	if (unlikely(ct->ctbs.h2g.info.broken)) {
> >   		ret = -EPIPE;
> >   		goto out;
> > @@ -1813,9 +1808,6 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)
> >   	xe_gt_assert(gt, xe_guc_ct_initialized(ct));
> >   	lockdep_assert_held(&ct->fast_lock);
> > -	if (xe_device_wedged(xe))
> > -		return -ENOTRECOVERABLE;
> > -
> >   	if (ct->state == XE_GUC_CT_STATE_DISABLED)
> >   		return -ENODEV;
> 
> There's also third instance in guc_ct_send_recv().
> 
> Shouldn't we distinguish between temporary and permanent wedge here rather
> than removing the checks entirely?

I thought of adding a xe_device_wedged_perm() but this would create
confusion with existing xe_device_wedged() regardling it's usage.
So perhaps we need a better name? Or a better idea? Open to suggestions.

> And it looks like it should be a part of the FLR series. This patch doesn't
> make sense without this series, and FLR series doesn't work without it.
> I'm also not sure if it deserves the fixes tag, it wasn't broken at the
> time.

Agree, will add it as part of FLR series once we have some conclusion.

Raag

  reply	other threads:[~2026-08-25 10:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-21 12:21 [PATCH v1] drm/xe/guc: Allow GuC CT for wedged device Raag Jadav
2026-08-21 12:28 ` ✓ CI.KUnit: success for " Patchwork
2026-08-21 12:42 ` [PATCH v1] " sashiko-bot
2026-08-21 13:31 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-08-21 17:27 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-08-25  9:39 ` [PATCH v1] " Laguna, Lukasz
2026-08-25 10:04   ` Raag Jadav [this message]
2026-08-25 10:53     ` Laguna, Lukasz
2026-08-25 12:49       ` Raag Jadav
2026-08-25 13:40         ` Laguna, Lukasz

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=ao1okNN6fR9mQ0cM@black.igk.intel.com \
    --to=raag.jadav@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lukasz.laguna@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=sk.anirban@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