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 v4] drm/xe/xe_ras: Downgrade software-caused core compute errors to info
Date: Wed, 2 Dec 2026 15:48:03 +0530 [thread overview]
Message-ID: <1a331b80-dc59-4e1b-b2e0-eb7ca0c8df27@intel.com> (raw)
In-Reply-To: <20261202092904.2423527-1-ravi.kishore.koppuravuri@intel.com>
On 02-12-2026 14:59, 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>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
> ---
> v4:
> - Apply the downgrade only to local errors, using a new inline helper
> is_local_sw_error()
> - Use drm_dbg_ratelimited() instead of drm_dbg() for the non-fatal
> error notification in xe_hw_error.c
>
> v3:
> - Move the fault code mask and values to xe_ras_types.h
> - Drop the redundant words from the macro names
> - Rename "page walker" to "page fault"
> - Other Cosmetic changes
>
> v2:
> - Downgrade the cper severity to info for Uncorrectable local core
> compute errors for few explicit sw causes
> - Downgrade drm_err_ratelimited() to drm_dbg() for the non-fatal error
> notification in xe_hw_error.c
> ---
> drivers/gpu/drm/xe/xe_hw_error.c | 2 +-
> drivers/gpu/drm/xe/xe_ras.c | 20 +++++++++++++++++---
> drivers/gpu/drm/xe/xe_ras_types.h | 4 ++++
> 3 files changed, 22 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..de53fe831b61 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_ratelimited(&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 f8113530068d..1fd81e138072 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -39,6 +39,7 @@
> * 2 - Global Uncorrectable Error
> * 3 - Informational Error
> */
> +#define LOCAL_UNCORR_ERROR 1
> #define GLOBAL_UNCORR_ERROR 2
>
> /* Severity of detected errors */
> @@ -556,16 +557,29 @@ static void ras_send_error_event(struct xe_device *xe, u8 severity, u8 component
> xe_drm_ras_event(xe, drm_component, drm_severity, value);
> }
>
> +static inline bool is_local_sw_error(u8 uncorr_type, u8 fault_code)
> +{
> + return uncorr_type == LOCAL_UNCORR_ERROR &&
> + (fault_code == XE_RAS_CORE_COMPUTE_ADDRESS_RANGE ||
> + fault_code == XE_RAS_CORE_COMPUTE_PAGE_FAULT);
> +}
> +
> static u8 handle_core_compute_errors(struct xe_device *xe, struct xe_ras_error_array *arr)
> {
> 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 (is_local_sw_error(uncorr_type, fault_code))
> + 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
next prev parent reply other threads:[~2026-12-02 10:18 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
2026-12-02 9:29 ` [PATCH v4] " Ravi Kishore Koppuravuri
2026-12-02 10:18 ` Tauro, Riana [this message]
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=1a331b80-dc59-4e1b-b2e0-eb7ca0c8df27@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