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 1/2] drm/xe/ras: Wedge device if page offline list is full during offlining
Date: Thu, 3 Dec 2026 10:09:23 -0500 [thread overview]
Message-ID: <axGGI2DiQUCY6n3i@intel.com> (raw)
In-Reply-To: <20261203131610.1375755-5-soham.purkait@intel.com>
On Thu, Dec 03, 2026 at 06:46:12PM +0530, Soham Purkait wrote:
> When a page offline request is sent to the firmware, it response with
> OUT_OF_RESOURCES if its offline list in flash is full and cannot hold
> any more pages.
>
> Wedge the device with an unknown recovery method in this case, as
> manual intervention is required.
>
> Signed-off-by: Soham Purkait <soham.purkait@intel.com>
> ---
> v1:
> - Add consistent dmesg. (Riana)
> v2:
> - Rebased.
> - Use INSUFFICIENT_RESOURCES(0x05) as responce.
> ---
> drivers/gpu/drm/xe/xe_ras.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index f8113530068d..a934ba7f66d8 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -291,6 +291,10 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
> if (ret) {
> xe_err(xe, "sysctrl: page offline command failed with status %#x\n",
> response.status);
> + if (response.status == XE_RAS_STATUS_INSUFFICIENT_RESOURCES) {
> + xe_err(xe, "[RAS]: page offline list is full\n");
> + xe_wedge_declare(xe, 0);
> + }
We now decide twice: this wedges with unknown, and then
handle_device_memory_errors() sees the error and wedges with BUS_RESET
and returns RESET. Please just return -ENOSPC here and let
handle_device_memory_errors() handle it in one place.
This also runs at probe through get_offline_queue(), before the device
is registered.
Also, the commit message says OUT_OF_RESOURCES, but the code checks
INSUFFICIENT_RESOURCES.
> return ret;
> }
>
> --
> 2.43.0
>
next prev parent reply other threads:[~2026-12-03 15:09 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 [this message]
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
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=axGGI2DiQUCY6n3i@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