All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raag Jadav <raag.jadav@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: intel-xe@lists.freedesktop.org, riana.tauro@intel.com,
	lukasz.laguna@intel.com, matthew.d.roper@intel.com,
	matthew.brost@intel.com, rodrigo.vivi@intel.com
Subject: Re: [PATCH v1] drm/xe: Introduce xe_wedge
Date: Fri, 28 Aug 2026 06:21:43 +0200	[thread overview]
Message-ID: <apEM168MvU8R9R36@black.igk.intel.com> (raw)
In-Reply-To: <e7b7a00e-37b2-4be7-a275-f339c84d82ab@intel.com>

On Thu, Aug 27, 2026 at 07:38:14PM +0200, Michal Wajdeczko wrote:
> On 8/25/2026 1:42 PM, Raag Jadav wrote:
> > Consolidates all wedging implementation into a dedicated xe_wedge
> > component. While at it, add a worker to schedule the wedge handling to

...

> > +void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method)
> 
> as we are adding/renaming functions, should we combine two old:
> 
> 	xe_device_declare_wedged(xe)
> and	xe_device_set_wedged_method(xe, method)
> 
> functions into single new:
> 
> 	xe_wedge_declare(xe, method)
> 
> as we either already know the recovery method or can use
> default one

This was already on my backlog after FLR, including other improvements
to xe_gt_declare_wedged().

...

> > +static void wedged_work(struct work_struct *work)
> > +{
> > +	struct xe_device *xe = container_of(work, struct xe_device, wedged.work);
> > +	struct xe_gt *gt;
> > +	u8 id;
> > +
> > +	for_each_gt(gt, xe, id)
> > +		xe_gt_declare_wedged(gt);
> 
> is it ok to do that in the async worker?

There are mutexes deep inside it. I have a cleanup in mind but it
requires landing FLR series.

...

> > +int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode)
> 
> maybe this can be static - all we need is to move here also
> debugfs stuff that adds "wedged_mode" attribute

Shouldn't it be the other way around? Keep it consolidated into debugfs?

Raag

      reply	other threads:[~2026-08-28  4:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-25 11:42 [PATCH v1] drm/xe: Introduce xe_wedge Raag Jadav
2026-08-26 21:10 ` Rodrigo Vivi
2026-08-27  6:20   ` Raag Jadav
2026-08-28 15:30     ` Rodrigo Vivi
2026-08-27  6:33 ` Laguna, Lukasz
2026-08-28 15:29   ` Rodrigo Vivi
2026-08-27 17:38 ` Michal Wajdeczko
2026-08-28  4:21   ` Raag Jadav [this message]

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=apEM168MvU8R9R36@black.igk.intel.com \
    --to=raag.jadav@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lukasz.laguna@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=matthew.d.roper@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=rodrigo.vivi@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.