From: "Nilawar, Badal" <badal.nilawar@intel.com>
To: Soham Purkait <soham.purkait@intel.com>,
<intel-xe@lists.freedesktop.org>, <riana.tauro@intel.com>,
<anshuman.gupta@intel.com>, <aravind.iddamsetty@linux.intel.com>,
<raag.jadav@intel.com>, <rodrigo.vivi@intel.com>
Subject: Re: [PATCH] drm/xe/ras: Handle SPI out of flash error
Date: Wed, 25 Nov 2026 10:49:26 +0530 [thread overview]
Message-ID: <1a0d36ce-a7aa-460d-ac8a-5a792c280193@intel.com> (raw)
In-Reply-To: <20261123070221.1611306-2-soham.purkait@intel.com>
On 23-11-2026 12:32, Soham Purkait wrote:
> Wedge the device with an unknown recovery method if Page-Offline returns
> OUT_OF_RESOURCES, or if the offline list is full at probe.
>
> Signed-off-by: Soham Purkait <soham.purkait@intel.com>
> ---
> drivers/gpu/drm/xe/xe_ras.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 0fb891d00b36..76441858391d 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -80,6 +80,7 @@ enum xe_ras_response_status {
> XE_RAS_STATUS_TIMEOUT,
> XE_RAS_STATUS_HARDWARE_FAILURE,
> XE_RAS_STATUS_INSUFFICIENT_RESOURCES,
> + XE_RAS_STATUS_OUT_OF_RESOURCES = 0x9,
> XE_RAS_STATUS_MAX
> };
>
> @@ -226,6 +227,7 @@ static int ras_status_to_errno(u32 status)
> case XE_RAS_STATUS_HARDWARE_FAILURE:
> return -EIO;
> case XE_RAS_STATUS_INSUFFICIENT_RESOURCES:
> + case XE_RAS_STATUS_OUT_OF_RESOURCES:
> return -ENOSPC;
> default:
> return -EPROTO;
> @@ -299,6 +301,11 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
> if (ret) {
> xe_log_err(xe, SYSCTRL, ret, "page offline command failed with status %u\n",
> response.status);
> + if (response.status == XE_RAS_STATUS_OUT_OF_RESOURCES) {
> + xe_log_err(xe, SYSCTRL, ret,
> + "No space left in SPI flash for bad pages, manual intervention required\n");
Why sig id SYSCTRL? Sysctrl has completed the mailbox command.
> + xe_wedge_declare(xe, 0);
> + }
> return ret;
> }
>
> @@ -504,8 +511,17 @@ static void get_offline_list(struct xe_device *xe)
> struct xe_ras_offline_list_response response = {0};
> struct xe_ras_offline_list_request request = {0};
>
> + struct xe_ras_state *state = &xe->ras.state;
> +
> process_offline_pages(xe, XE_SYSCTRL_CMD_GET_OFFLINE_LIST, &request, sizeof(request),
> &response, sizeof(response), &response.common, false);
> +
> + if (state->max_pages && response.common.total_pages >= state->max_pages) {
> + xe_log_err(xe, SYSCTRL, -ENOSPC,
> + "Offline list full (%u/%u), manual intervention required\n",
> + response.common.total_pages, state->max_pages);
Same as above?
> + xe_wedge_declare(xe, 0);
This is in probe path, shouldn't we propagate error and fail probe
rather than wedge?
Thanks,
Badal
> + }
> }
>
> static void ras_usp_aer_init(struct xe_device *xe)
prev parent reply other threads:[~2026-11-25 5:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 7:02 [PATCH] drm/xe/ras: Handle SPI out of flash error Soham Purkait
2026-11-23 7:17 ` ✗ CI.KUnit: failure for " Patchwork
2026-11-23 7:28 ` [PATCH] " Tauro, Riana
2026-11-25 5:09 ` Raag Jadav
2026-11-23 7:30 ` sashiko-bot
2026-11-25 5:19 ` Nilawar, Badal [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=1a0d36ce-a7aa-460d-ac8a-5a792c280193@intel.com \
--to=badal.nilawar@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=aravind.iddamsetty@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=raag.jadav@intel.com \
--cc=riana.tauro@intel.com \
--cc=rodrigo.vivi@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