* [PATCH v1 0/4] drm/xe/ras: Suppress repeated DB-ECC reports
@ 2026-12-02 11:57 Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 1/4] drm/xe/ras: Add helper to check hard-offlined pages Mallesh Koujalagi
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Mallesh Koujalagi @ 2026-12-02 11:57 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, riana.tauro,
karthik.poosa, sk.anirban, raag.jadav, himal.prasad.ghimiray,
tejas.upadhyay, aravind.iddamsetty, Mallesh Koujalagi
Firmware can repeatedly report DB-ECC errors for pages that have already
been hard-offlined. These reports are not actionable, but they still
generate logs, events, and CPER records.
The patch series suppresses the duplicate reporting while keeping the
existing page offline handling unchanged.
Cc: Raag Jadav <raag.jadav@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Aravind Iddamsetty (1):
drm/xe/ras: Add helper to check hard-offlined pages
Mallesh Koujalagi (3):
drm/xe/ras: Downgrade repeated page removal message to debug
drm/xe/ras: Skip reports for repeated DB-ECC errors
drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors
drivers/gpu/drm/xe/xe_ras.c | 52 ++++++++++++++++++++++++++++---------
1 file changed, 40 insertions(+), 12 deletions(-)
--
2.48.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v1 1/4] drm/xe/ras: Add helper to check hard-offlined pages
2026-12-02 11:57 [PATCH v1 0/4] drm/xe/ras: Suppress repeated DB-ECC reports Mallesh Koujalagi
@ 2026-12-02 11:57 ` Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 2/4] drm/xe/ras: Downgrade repeated page removal message to debug Mallesh Koujalagi
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Mallesh Koujalagi @ 2026-12-02 11:57 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, riana.tauro,
karthik.poosa, sk.anirban, raag.jadav, himal.prasad.ghimiray,
tejas.upadhyay, aravind.iddamsetty, Mallesh Koujalagi
From: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com>
Introduce page_is_hard_offlined() to encapsulate the lookup of
hard-offlined pages in the offlined_pages xarray.
Cc: Raag Jadav <raag.jadav@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com>
Co-developed-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
Signed-off-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
---
drivers/gpu/drm/xe/xe_ras.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index 57d3f4b92fad..6bce682c32d0 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -254,6 +254,11 @@ static inline const char *comp_to_str(u8 component)
return xe_ras_components[component];
}
+static bool page_is_hard_offlined(struct xe_device *xe, u64 page_address)
+{
+ return !!xa_load(&xe->ras.state.offlined_pages, page_address >> XE_PTE_SHIFT);
+}
+
static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
enum xe_ras_page_action action)
{
@@ -311,7 +316,6 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
static int handle_page_offline(struct xe_device *xe, u64 page_address, bool notify_fw)
{
- struct xe_ras_state *state = &xe->ras.state;
enum xe_ras_page_action action;
u64 addr;
int ret;
@@ -351,7 +355,7 @@ static int handle_page_offline(struct xe_device *xe, u64 page_address, bool noti
case -EEXIST:
xe_dbg(xe, "[RAS]: Repeated error on already soft-offlined page address 0x%llx\n",
page_address);
- if (xa_load(&state->offlined_pages, page_address >> XE_PTE_SHIFT))
+ if (page_is_hard_offlined(xe, page_address))
action = XE_RAS_PAGE_ACTION_REMOVE;
else
action = XE_RAS_PAGE_ACTION_OFFLINE;
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v1 2/4] drm/xe/ras: Downgrade repeated page removal message to debug
2026-12-02 11:57 [PATCH v1 0/4] drm/xe/ras: Suppress repeated DB-ECC reports Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 1/4] drm/xe/ras: Add helper to check hard-offlined pages Mallesh Koujalagi
@ 2026-12-02 11:57 ` Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent " Mallesh Koujalagi
3 siblings, 0 replies; 7+ messages in thread
From: Mallesh Koujalagi @ 2026-12-02 11:57 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, riana.tauro,
karthik.poosa, sk.anirban, raag.jadav, himal.prasad.ghimiray,
tejas.upadhyay, aravind.iddamsetty, Mallesh Koujalagi
Repeated errors on pages already hard-offlined by firmware only trigger
removal from the offline queue. Log these events at debug level to
avoid unnecessary dmesg noise.
Keep info-level logging for other page removals.
Cc: Raag Jadav <raag.jadav@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
---
drivers/gpu/drm/xe/xe_ras.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index 6bce682c32d0..fa23325fb691 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -307,6 +307,9 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
if (ret)
xe_err(xe, "[RAS]: Failed to store offlined page 0x%llx: %d\n",
page_address, ret);
+ } else if (page_is_hard_offlined(xe, page_address)) {
+ xe_dbg(xe, "[RAS]: Page address 0x%llx already offlined, removed from queue\n",
+ page_address);
} else {
xe_info(xe, "[RAS]: Page address 0x%llx removed from queue\n", page_address);
}
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors
2026-12-02 11:57 [PATCH v1 0/4] drm/xe/ras: Suppress repeated DB-ECC reports Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 1/4] drm/xe/ras: Add helper to check hard-offlined pages Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 2/4] drm/xe/ras: Downgrade repeated page removal message to debug Mallesh Koujalagi
@ 2026-12-02 11:57 ` Mallesh Koujalagi
2026-12-02 12:08 ` sashiko-bot
2026-12-02 11:57 ` [PATCH v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent " Mallesh Koujalagi
3 siblings, 1 reply; 7+ messages in thread
From: Mallesh Koujalagi @ 2026-12-02 11:57 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, riana.tauro,
karthik.poosa, sk.anirban, raag.jadav, himal.prasad.ghimiray,
tejas.upadhyay, aravind.iddamsetty, Mallesh Koujalagi
DB-ECC errors may be reported repeatedly for pages that firmware has
already hard-offlined. These repeated reports are not actionable but
still generate log messages and error events.
Suppress reporting for such pages to reduce noise. Keep reporting when
VRAM page offlining is disabled, as the page remains in use.
Cc: Raag Jadav <raag.jadav@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
---
drivers/gpu/drm/xe/xe_ras.c | 30 ++++++++++++++++++++++++------
1 file changed, 24 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index fa23325fb691..b92295539499 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -398,6 +398,22 @@ static bool ras_counter_is_valid(struct xe_device *xe, struct xe_ras_error_class
return true;
}
+/* Check for a repeated DB-ECC error on an already hard-offlined page */
+static bool is_recurrent_db_ecc(struct xe_device *xe, struct xe_ras_error_array *arr)
+{
+ struct xe_ras_memory_error *info = (void *)arr->details;
+
+ if (arr->counter.common.component != XE_RAS_COMP_DEVICE_MEMORY ||
+ info->category != XE_RAS_MEMORY_DB_ECC)
+ return false;
+
+ /* Report all errors when page offlining is disabled */
+ if (!xe_ras_get_enable_vram_page_offline(xe))
+ return false;
+
+ return page_is_hard_offlined(xe, info->sw_address);
+}
+
/*
* Fetch and process offline list and queue from firmware via mailbox. @notify_fw controls
* whether firmware is notified of the offline/remove action.
@@ -880,13 +896,15 @@ enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe)
if (!ras_counter_is_valid(xe, &arr->counter))
continue;
- xe_info(xe, "[RAS]: %s %s detected\n", comp_to_str(component),
- sev_to_str(severity));
+ if (!is_recurrent_db_ecc(xe, arr)) {
+ xe_info(xe, "[RAS]: %s %s detected\n", comp_to_str(component),
+ sev_to_str(severity));
- /* Send event once per component */
- if (!(sent & BIT(component))) {
- sent |= BIT(component);
- ras_send_error_event(xe, severity, component);
+ /* Send event once per component */
+ if (!(sent & BIT(component))) {
+ sent |= BIT(component);
+ ras_send_error_event(xe, severity, component);
+ }
}
switch (component) {
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors
2026-12-02 11:57 [PATCH v1 0/4] drm/xe/ras: Suppress repeated DB-ECC reports Mallesh Koujalagi
` (2 preceding siblings ...)
2026-12-02 11:57 ` [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors Mallesh Koujalagi
@ 2026-12-02 11:57 ` Mallesh Koujalagi
2026-12-02 12:06 ` sashiko-bot
3 siblings, 1 reply; 7+ messages in thread
From: Mallesh Koujalagi @ 2026-12-02 11:57 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, riana.tauro,
karthik.poosa, sk.anirban, raag.jadav, himal.prasad.ghimiray,
tejas.upadhyay, aravind.iddamsetty, Mallesh Koujalagi
Repeated DB-ECC errors on already hard-offlined pages can generate the
same log message and CPER record multiple times even though no new
action is required.
Suppress log and CPER emission when the repeated error is handled
successfully. Continue to report failures as before.
Cc: Raag Jadav <raag.jadav@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
---
drivers/gpu/drm/xe/xe_ras.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index b92295539499..a36d3ca95fbd 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -655,6 +655,7 @@ static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_
{
struct xe_ras_memory_error *info = (void *)arr->details;
u8 cper_sev = ras_sev_to_cper_sev(arr->counter.common.severity);
+ bool recurrent;
int ret;
/*
@@ -691,11 +692,13 @@ static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_
break;
}
+ recurrent = is_recurrent_db_ecc(xe, arr);
ret = handle_page_offline(xe, info->sw_address, true);
- xe_log_comp(xe, ret ? cper_sev : CPER_SEV_INFORMATIONAL,
- DEVICE_MEMORY, &arr->counter, sizeof(arr->counter),
- "Double-bit ECC error detected at sw address 0x%llx\n",
- info->sw_address);
+ if (ret || !recurrent)
+ xe_log_comp(xe, ret ? cper_sev : CPER_SEV_INFORMATIONAL,
+ DEVICE_MEMORY, &arr->counter, sizeof(arr->counter),
+ "Double-bit ECC error detected at sw address 0x%llx\n",
+ info->sw_address);
/*
* Wedge the device with a bus reset for errors that require SBR to recover.
* TODO: Trigger SBR using pci_reset_bus
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors
2026-12-02 11:57 ` [PATCH v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent " Mallesh Koujalagi
@ 2026-12-02 12:06 ` sashiko-bot
0 siblings, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-12-02 12:06 UTC (permalink / raw)
To: Mallesh Koujalagi, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/xe/ras: build failure in is_recurrent_db_ecc() from
undeclared helper
--
commit bff484684f994dd8c126d64f6bfebf7733817368
Author: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors
This commit suppresses duplicate log messages and CPER record emissions
for repeated double-bit ECC errors on already hard-offlined pages when
handle_page_offline() succeeds.
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 489fbad0e1691..1493bc8e95275 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -655,6 +655,7 @@ static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_
> {
> struct xe_ras_memory_error *info = (void *)arr->details;
> u8 cper_sev = ras_sev_to_cper_sev(arr->counter.common.severity);
> + bool recurrent;
> int ret;
>
> /*
> @@ -691,11 +692,13 @@ static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_
> break;
> }
>
> + recurrent = is_recurrent_db_ecc(xe, arr);
[Severity: High]
Does is_recurrent_db_ecc() fail to compile because it calls the
undeclared function xe_ras_get_enable_vram_page_offline()?
drivers/gpu/drm/xe/xe_ras.c:is_recurrent_db_ecc() {
...
/* Report all errors when page offlining is disabled */
if (!xe_ras_get_enable_vram_page_offline(xe))
return false;
return page_is_hard_offlined(xe, info->sw_address);
}
The policy helper defined in drivers/gpu/drm/xe/xe_ras.c and used by
handle_page_offline() is xe_ras_get_disable_vram_page_offline(xe), so
is_recurrent_db_ecc() should check
if (xe_ras_get_disable_vram_page_offline(xe)) instead.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202115714.2320298-6-mallesh.koujalagi@intel.com?part=4
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors
2026-12-02 11:57 ` [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors Mallesh Koujalagi
@ 2026-12-02 12:08 ` sashiko-bot
0 siblings, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-12-02 12:08 UTC (permalink / raw)
To: Mallesh Koujalagi, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/xe/ras: call to undeclared
xe_ras_get_enable_vram_page_offline()
--
commit 5024a6eaa83b6a17a6433f3c9ccc256eddafbd55
Author: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
drm/xe/ras: Skip reports for repeated DB-ECC errors
This commit suppresses RAS log messages and error events for repeated
DB-ECC errors on VRAM pages that have already been hard-offlined when
VRAM page offlining is enabled.
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index a28fa88b4adcb..489fbad0e1691 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -398,6 +398,22 @@ static bool ras_counter_is_valid(struct xe_device *xe, struct xe_ras_error_class
> return true;
> }
>
> +/* Check for a repeated DB-ECC error on an already hard-offlined page */
> +static bool is_recurrent_db_ecc(struct xe_device *xe, struct xe_ras_error_array *arr)
> +{
> + struct xe_ras_memory_error *info = (void *)arr->details;
> +
> + if (arr->counter.common.component != XE_RAS_COMP_DEVICE_MEMORY ||
> + info->category != XE_RAS_MEMORY_DB_ECC)
> + return false;
> +
> + /* Report all errors when page offlining is disabled */
> + if (!xe_ras_get_enable_vram_page_offline(xe))
> + return false;
[Severity: High]
Should this call xe_ras_get_disable_vram_page_offline(xe) (without logical
negation) instead? xe_ras_get_enable_vram_page_offline() is not defined in
the tree, causing the build to fail when CONFIG_DRM_XE is enabled.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202115714.2320298-6-mallesh.koujalagi@intel.com?part=3
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-12-02 12:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 11:57 [PATCH v1 0/4] drm/xe/ras: Suppress repeated DB-ECC reports Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 1/4] drm/xe/ras: Add helper to check hard-offlined pages Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 2/4] drm/xe/ras: Downgrade repeated page removal message to debug Mallesh Koujalagi
2026-12-02 11:57 ` [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors Mallesh Koujalagi
2026-12-02 12:08 ` sashiko-bot
2026-12-02 11:57 ` [PATCH v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent " Mallesh Koujalagi
2026-12-02 12:06 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox