All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raag Jadav <raag.jadav@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: intel-xe@lists.freedesktop.org, anshuman.gupta@intel.com,
	rodrigo.vivi@intel.com, badal.nilawar@intel.com,
	aravind.iddamsetty@linux.intel.com,
	ravi.kishore.koppuravuri@intel.com, mallesh.koujalagi@intel.com,
	tejas.upadhyay@intel.com
Subject: Re: [PATCH v4 3/3] drm/xe/ras: Skip offline queue processing after device unplug
Date: Thu, 26 Nov 2026 10:25:34 +0100	[thread overview]
Message-ID: <awf7DtksUhNVbRDa@black.igk.intel.com> (raw)
In-Reply-To: <20261126083516.1932195-8-riana.tauro@intel.com>

On Thu, Nov 26, 2026 at 02:05:20PM +0530, Riana Tauro wrote:
> The system controller worker can drain the offline queue at runtime.
> During teardown, devres runs ras_fini() before sysctrl_fini(), so the
> worker can still run after the offlined pages XArray is destroyed:
> 
>   CPU0 (teardown)                 CPU1 (sysctrl worker)
>   ras_fini()
>     xa_destroy()
>                                   xe_ras_get_offline_queue()
>                                     ...
>                                       xa_store()
>   sysctrl_fini()
>     disable_work_sync()
> 
> Wrap xe_ras_get_offline_queue() in drm_dev_enter()/drm_dev_exit().
> drm_dev_unplug() runs before devres teardown and waits for in-flight
> sections, so no queue processing runs after ras_fini().

Considering the current state of affairs, this is going to become more
and more difficult to manage. Rather, introduce a ordered workqueue as
part if xe_ras state and schedule both sysctrl and hw_error work on it.

Raag

  parent reply	other threads:[~2026-11-26  9:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  8:35 [PATCH v4 0/3] Handle sysctrl event for page offline full Riana Tauro
2026-11-26  8:35 ` [PATCH v4 1/3] drm/xe/ras: Wedge the device on page offline failure in all callers Riana Tauro
2026-11-26  9:02   ` sashiko-bot
2026-11-26  8:35 ` [PATCH v4 2/3] drm/xe/sysctrl: Drain page offline queue on queue-full event Riana Tauro
2026-11-26  8:52   ` sashiko-bot
2026-11-26  8:35 ` [PATCH v4 3/3] drm/xe/ras: Skip offline queue processing after device unplug Riana Tauro
2026-11-26  8:46   ` sashiko-bot
2026-11-26  8:49     ` Tauro, Riana
2026-11-26  9:25   ` Raag Jadav [this message]
2026-11-26  9:40     ` Tauro, Riana
2026-11-26  8:43 ` ✗ CI.checkpatch: warning for Handle sysctrl event for page offline full Patchwork
2026-11-26  8:45 ` ✓ CI.KUnit: success " Patchwork
2026-11-26  9:27 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-26 14:29 ` ✓ Xe.CI.FULL: " 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=awf7DtksUhNVbRDa@black.igk.intel.com \
    --to=raag.jadav@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@linux.intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=ravi.kishore.koppuravuri@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=tejas.upadhyay@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.