Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Tauro, Riana" <riana.tauro@intel.com>
To: Ravi Kishore Koppuravuri <ravi.kishore.koppuravuri@intel.com>,
	<intel-xe@lists.freedesktop.org>
Cc: <raag.jadav@intel.com>, <anshuman.gupta@intel.com>,
	<mallesh.koujalagi@intel.com>
Subject: Re: [PATCH v3] drm/xe/xe_ras: Downgrade software-caused core compute errors to info
Date: Tue, 1 Dec 2026 19:23:25 +0530	[thread overview]
Message-ID: <b865aa55-a07e-46b6-adfe-d18dd0be6090@intel.com> (raw)
In-Reply-To: <20261201054038.2269189-1-ravi.kishore.koppuravuri@intel.com>


On 01-12-2026 11:10, Ravi Kishore Koppuravuri wrote:
> Unhandled application page faults are reported by the hardware as local
> core compute uncorrectable errors. Users reading the resulting SIGID 203
> log treat it as a hardware failure, although it is a software error.
>
> For CORE_COMPUTE errors with fault code address range or page fault,
> which are usually caused by software, log them with CPER_SEV_INFORMATIONAL.
>
> Signed-off-by: Ravi Kishore Koppuravuri <ravi.kishore.koppuravuri@intel.com>

Please retain the version history for patches

> ---
>   drivers/gpu/drm/xe/xe_hw_error.c  |  2 +-
>   drivers/gpu/drm/xe/xe_ras.c       | 13 ++++++++++---
>   drivers/gpu/drm/xe/xe_ras_types.h |  4 ++++
>   3 files changed, 15 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_hw_error.c b/drivers/gpu/drm/xe/xe_hw_error.c
> index 86b29f282837..713a7c7435e3 100644
> --- a/drivers/gpu/drm/xe/xe_hw_error.c
> +++ b/drivers/gpu/drm/xe/xe_hw_error.c
> @@ -460,7 +460,7 @@ static void hw_error_source_handler(struct xe_tile *tile, const enum hardware_er
>   	 * system controller.
>   	 */
>   	if (xe->info.has_sysctrl) {
> -		drm_err_ratelimited(&xe->drm, HW_ERR "Non-fatal %s reported\n", severity_str);
> +		drm_dbg(&xe->drm, HW_ERR "Non-fatal %s reported\n", severity_str);
>   		schedule_work(&tile->hw_error_work);
>   		return;
>   	}
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index d14ee40d0440..2fc9ab2d308d 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -560,12 +560,19 @@ static u8 handle_core_compute_errors(struct xe_device *xe, struct xe_ras_error_a
>   {
>   	struct xe_ras_compute_error *error_info = (void *)arr->details;
>   	u8 cper_sev = ras_sev_to_cper_sev(arr->counter.common.severity);
> -	u8 uncorr_type;
> +	u8 uncorr_type, fault_code;
>   
>   	uncorr_type = FIELD_GET(CORE_COMPUTE_UNCORR_TYPE, error_info->log_header);
> +	fault_code = FIELD_GET(XE_RAS_CORE_COMPUTE_FAULT_CODE, arr->counter.product.cause.cause);
>   
> -	xe_log_comp(xe, cper_sev, CORE_COMPUTE, &arr->counter, sizeof(arr->counter),
> -		    "Uncorrectable error detected, type %u\n", uncorr_type);
> +	if (fault_code == XE_RAS_CORE_COMPUTE_ADDRESS_RANGE ||
> +	    fault_code == XE_RAS_CORE_COMPUTE_PAGE_FAULT)

Sorry  missed that there is no local check here.
This should be added only for local errors. This patch would hit even 
the global errors.

Add a inline function for is_local_sw_error

Thanks
Riana

> +		xe_log_comp_info(xe, CORE_COMPUTE, &arr->counter, sizeof(arr->counter),
> +				 "Uncorrectable software error detected, fault code %u\n",
> +				 fault_code);
> +	else
> +		xe_log_comp(xe, cper_sev, CORE_COMPUTE, &arr->counter, sizeof(arr->counter),
> +			    "Uncorrectable error detected, type %u\n", uncorr_type);
>   
>   	/* Request a reset if error is global */
>   	if (uncorr_type == GLOBAL_UNCORR_ERROR)
> diff --git a/drivers/gpu/drm/xe/xe_ras_types.h b/drivers/gpu/drm/xe/xe_ras_types.h
> index 80f5d46d2dc2..a693b56334ea 100644
> --- a/drivers/gpu/drm/xe/xe_ras_types.h
> +++ b/drivers/gpu/drm/xe/xe_ras_types.h
> @@ -20,6 +20,10 @@
>   #define XE_RAS_MEMORY_DB_ECC			BIT(1)
>   #define XE_RAS_MEMORY_POISON			BIT(2)
>   #define XE_RAS_MEMORY_DATA_PARITY		BIT(5)
> +/* Core compute fault codes */
> +#define XE_RAS_CORE_COMPUTE_FAULT_CODE		GENMASK(11, 9)
> +#define  XE_RAS_CORE_COMPUTE_ADDRESS_RANGE	2
> +#define  XE_RAS_CORE_COMPUTE_PAGE_FAULT		3
>   
>   #define XE_RAS_INFO_QUEUE_MAX_CHUNK_SIZE	200
>   #define XE_RAS_INFO_QUEUE_MAX_TOTAL_SIZE	5120

  reply	other threads:[~2026-12-01 13:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  9:13 [PATCH] drm/xe/xe_ras: Hint at application page fault for local compute errors Ravi Kishore Koppuravuri
2026-11-23  9:47 ` Tauro, Riana
2026-11-23 13:57 ` ✗ CI.checkpatch: warning for " Patchwork
2026-11-23 13:59 ` ✗ CI.KUnit: failure " Patchwork
2026-11-30  8:45 ` [PATCH v2] drm/xe/xe_ras: Downgrade software-caused core compute errors to info Ravi Kishore Koppuravuri
2026-11-30 13:28   ` Tauro, Riana
2026-12-01  5:40   ` [PATCH v3] " Ravi Kishore Koppuravuri
2026-12-01 13:53     ` Tauro, Riana [this message]
2026-12-02  9:29     ` [PATCH v4] " Ravi Kishore Koppuravuri
2026-12-02 10:18       ` Tauro, Riana
2026-11-30  8:56 ` ✓ CI.KUnit: success for drm/xe/xe_ras: Hint at application page fault for local compute errors (rev2) Patchwork
2026-11-30  9:35 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-30 11:52 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-12-01  5:54 ` ✓ CI.KUnit: success for drm/xe/xe_ras: Hint at application page fault for local compute errors (rev3) Patchwork
2026-12-01  6:32 ` ✓ Xe.CI.BAT: " Patchwork
2026-12-01 19:11 ` ✓ Xe.CI.FULL: " Patchwork
2026-12-02  9:40 ` ✓ CI.KUnit: success for drm/xe/xe_ras: Hint at application page fault for local compute errors (rev4) Patchwork
2026-12-02 10:15 ` ✓ 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=b865aa55-a07e-46b6-adfe-d18dd0be6090@intel.com \
    --to=riana.tauro@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=ravi.kishore.koppuravuri@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