All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tauro, Riana" <riana.tauro@intel.com>
To: Soham Purkait <soham.purkait@intel.com>,
	<intel-xe@lists.freedesktop.org>,  <anshuman.gupta@intel.com>,
	<aravind.iddamsetty@linux.intel.com>, <badal.nilawar@intel.com>,
	<raag.jadav@intel.com>, <rodrigo.vivi@intel.com>,
	Koujalagi Mallesh <mallesh.koujalagi@intel.com>
Subject: Re: [PATCH] drm/xe/ras: Handle SPI out of flash error
Date: Mon, 23 Nov 2026 12:58:49 +0530	[thread overview]
Message-ID: <c336f40a-457e-4a62-986c-376c153b535e@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.

Subject: do you mean flash out of space?

Maybe just mention offline list is full?

>
> 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");
> +			xe_wedge_declare(xe, 0);

Why 0? Use the defined macros

> +		}
>   		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) {

Post processing are we sure total pages will have a value?

> +		xe_log_err(xe, SYSCTRL, -ENOSPC,
> +			   "Offline list full (%u/%u), manual intervention required\n",
> +			   response.common.total_pages, state->max_pages);

Consistency in log please..
@badal/mallesh for sigid usage

Thanks
Riana


> +		xe_wedge_declare(xe, 0);
> +	}
>   }
>   
>   static void ras_usp_aer_init(struct xe_device *xe)

  parent reply	other threads:[~2026-11-23  7:29 UTC|newest]

Thread overview: 7+ 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 ` Tauro, Riana [this message]
2026-11-25  5:09   ` [PATCH] " Raag Jadav
2026-11-23  7:30 ` sashiko-bot
2026-11-25  5:19 ` Nilawar, Badal
2026-11-25 18:10   ` Purkait, Soham

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=c336f40a-457e-4a62-986c-376c153b535e@intel.com \
    --to=riana.tauro@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=raag.jadav@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 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.