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 v2] drm/xe/xe_ras: Downgrade software-caused core compute errors to info
Date: Mon, 30 Nov 2026 18:58:29 +0530 [thread overview]
Message-ID: <25b60847-422d-4916-bf5a-ea5e1eed4c0b@intel.com> (raw)
In-Reply-To: <20261130084522.2247884-1-ravi.kishore.koppuravuri@intel.com>
On 30-11-2026 14:15, 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 cause address range error or page walker
> error, which are usually caused by application programming, log them
> with CPER_SEV_INFORMATIONAL
>
> Signed-off-by: Ravi Kishore Koppuravuri <ravi.kishore.koppuravuri@intel.com>
> ---
> v2: Downgraded software-caused core compute errors to info severity
> ---
> drivers/gpu/drm/xe/xe_hw_error.c | 2 +-
> drivers/gpu/drm/xe/xe_ras.c | 19 ++++++++++++++++---
> 2 files changed, 17 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..ddcdc2394e03 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -41,6 +41,11 @@
> */
> #define GLOBAL_UNCORR_ERROR 2
>
> +/* Cause of core compute errors */
> +#define CORE_COMPUTE_CAUSE_TYPE GENMASK(11, 9)
cause is already part of structure and is the entire 32 bit value.
These bits should be specific to a type. Please use that and move this
to _types.h
> +#define CAUSE_ADDRESS_RANGE_ERROR 2
> +#define CAUSE_PAGE_WALKER_ERROR 3
Redundant use of the word cause .
%s/walker/fault?
> +
> /* Severity of detected errors */
> enum xe_ras_severity {
> XE_RAS_SEV_NOT_SUPPORTED = 0,
> @@ -560,12 +565,20 @@ 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;
> + u32 cause = arr->counter.product.cause.cause;
> + u8 uncorr_type, cause_type;
>
> uncorr_type = FIELD_GET(CORE_COMPUTE_UNCORR_TYPE, error_info->log_header);
> + cause_type = FIELD_GET(CORE_COMPUTE_CAUSE_TYPE, cause);
Same as above
>
> - xe_log_comp(xe, cper_sev, CORE_COMPUTE, &arr->counter, sizeof(arr->counter),
> - "Uncorrectable error detected, type %u\n", uncorr_type);
> + if (cause_type == CAUSE_ADDRESS_RANGE_ERROR || cause_type == CAUSE_PAGE_WALKER_ERROR) {
> + xe_log_comp_info(xe, CORE_COMPUTE, &arr->counter, sizeof(arr->counter),
> + "Uncorrectable error detected: considered a software error,"
> + " usually caused by application programming\n");
Are we sure all these types are as a result of application programming?
Why not just use software error.
Also do we need cper for this if its software error?
> + } else {
Unnecessary {}
Thanks
Riana
> + 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)
next prev parent reply other threads:[~2026-11-30 13:30 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 [this message]
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
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=25b60847-422d-4916-bf5a-ea5e1eed4c0b@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