From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Soham Purkait <soham.purkait@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <riana.tauro@intel.com>,
<anshuman.gupta@intel.com>, <aravind.iddamsetty@linux.intel.com>,
<badal.nilawar@intel.com>, <raag.jadav@intel.com>
Subject: Re: [PATCH v3 2/2] drm/xe/ras: Wedge device if page offline list is full at probe
Date: Thu, 3 Dec 2026 10:09:57 -0500 [thread overview]
Message-ID: <axGGRY3qxNzwtLmz@intel.com> (raw)
In-Reply-To: <20261203131610.1375755-6-soham.purkait@intel.com>
On Thu, Dec 03, 2026 at 06:46:13PM +0530, Soham Purkait wrote:
> During probe, the driver reads the permanently offlined pages from the
> firmware's offline list. If the list has reached its maximum number of
> entries, the firmware cannot offline any more pages, so further memory
> errors cannot be contained by page offlining.
>
> Wedge the device with an unknown recovery method and fail probe in
> this case, as manual intervention is required.
>
> Signed-off-by: Soham Purkait <soham.purkait@intel.com>
> ---
> v1:
> - Add consistent dmesg. (Riana)
> ---
> drivers/gpu/drm/xe/xe_ras.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index a934ba7f66d8..8b1c2777adb5 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -467,6 +467,11 @@ static void process_offline_pages(struct xe_device *xe, u32 cmd, void *req, size
> return;
> }
> } while (common->additional_data);
> +
> + if (!xe_wedged(xe) && list_req && state->max_pages && total_pages >= state->max_pages) {
> + xe_err(xe, "[RAS]: page offline list is full\n");
> + xe_wedge_declare(xe, 0);
> + }
> }
>
> /*
> @@ -1538,5 +1543,8 @@ int xe_ras_init(struct xe_device *xe)
> if (ret)
> return ret;
>
> + if (xe_wedged(xe))
> + return -ECANCELED;
Wedging and then failing the probe don't go together. A wedged device
is supposed to stay bound, so userspace gets the uevent. Here we unbind
right away, and the uevent is sent before the device is even
registered.
But do we need to wedge at probe at all? The device works fine; a full
list only means that a future error can't be offlined. I'd just report
it at probe, and let 1/2 wedge when an error actually comes and we
can't offline the page.
Also, nothing to do here if page offlining is disabled via configfs.
> +
> return xe_cper_sysfs_init(xe);
> }
> --
> 2.43.0
>
next prev parent reply other threads:[~2026-12-03 15:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 13:16 [PATCH v3 0/2] Wedge device if page offline list is full Soham Purkait
2026-12-03 13:16 ` [PATCH v3 1/2] drm/xe/ras: Wedge device if page offline list is full during offlining Soham Purkait
2026-12-03 13:42 ` sashiko-bot
2026-12-03 15:09 ` Rodrigo Vivi
2026-12-03 13:16 ` [PATCH v3 2/2] drm/xe/ras: Wedge device if page offline list is full at probe Soham Purkait
2026-12-03 13:38 ` sashiko-bot
2026-12-03 15:09 ` Rodrigo Vivi [this message]
2026-12-03 13:25 ` ✓ CI.KUnit: success for Wedge device if page offline list is full (rev3) Patchwork
2026-12-03 13:59 ` ✓ Xe.CI.BAT: " 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=axGGRY3qxNzwtLmz@intel.com \
--to=rodrigo.vivi@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=raag.jadav@intel.com \
--cc=riana.tauro@intel.com \
--cc=soham.purkait@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