Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Mallesh Koujalagi" <mallesh.koujalagi@intel.com>,
	intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v3 3/3] drm/xe/ras: Suppress reports for repeated DB-ECC errors
Date: Fri, 04 Dec 2026 14:57:59 +0000	[thread overview]
Message-ID: <sashiko-outbox-250037@kernel.org> (raw)
In-Reply-To: <20261204140748.2397546-8-mallesh.koujalagi@intel.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/xe/ras: removing xe_info() leaves default RAS components
  unlogged
- [Low] drm/xe/ras: undocumented downgrade of non-repeated page offline
  logs
--

commit 7be353faabcdf4bec6c67b2c0acdc814fa08ab8d
Author: Mallesh Koujalagi <mallesh.koujalagi@intel.com>

drm/xe/ras: Suppress reports for repeated DB-ECC errors

This commit suppresses log messages, DRM-RAS error events, and CPER
records when a repeated double-bit ECC error on an already hard-offlined
page is handled successfully, and also downgrades page offline logs in
send_page_offline_cmd() and removes the generic component log in
xe_ras_process_errors().

> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index df1e3901b4e07..b91ea158879aa 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -301,7 +301,7 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
>  	}
>  
>  	if (action == XE_RAS_PAGE_ACTION_OFFLINE) {
> -		xe_info(xe, "[RAS]: Page address 0x%llx offlined\n", page_address);
> +		xe_dbg(xe, "[RAS]: Page address 0x%llx offlined\n", page_address);
>  		ret = xa_err(xa_store(&state->offlined_pages,
>  				      page_address >> XE_PTE_SHIFT,
>  				      XE_RAS_PAGE_OFFLINED, GFP_KERNEL));
> @@ -312,13 +312,14 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 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);
> +		xe_dbg(xe, "[RAS]: Page address 0x%llx removed from queue\n", page_address);
>  	}

[Severity: Low]
Should these non-repeated page offline logs be downgraded to xe_dbg()?

Changing both branches removes default info-level logging for first-time
permanent firmware hard-offlining and non-repeated queue removals
(including during probe via get_offline_queue(), which does not call
xe_log_comp()).  It also undoes commit "drm/xe/ras: Downgrade repeated
page removal message to debug", which split the else branch to keep
non-repeated removals at info level.

If these log changes are intentional, the commit message should explain
them rather than only mentioning them below the --- separator.

[ ... ]

> @@ -899,24 +925,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));
> -
> -			/* Send event once per component */
> -			if (!(sent & BIT(component))) {
> -				sent |= BIT(component);
> -				ras_send_error_event(xe, severity, component);
> -			}
> -
>  			switch (component) {
>  			case XE_RAS_COMP_CORE_COMPUTE:
>  				action = handle_core_compute_errors(xe, arr);
>  				break;
>  			case XE_RAS_COMP_SOC_INTERNAL:
> -				action = handle_soc_internal_errors(xe, arr);
> +				action = handle_soc_internal_errors(xe, arr, &sent);
>  				break;
>  			case XE_RAS_COMP_DEVICE_MEMORY:
> -				action = handle_device_memory_errors(xe, arr);
> +				action = handle_device_memory_errors(xe, arr, &quiet, &sent);
>  				break;
>  			case XE_RAS_COMP_FABRIC:
>  				xe_log_comp(xe, ras_sev_to_cper_sev(severity), FABRIC,

[Severity: Medium]
Does removing this xe_info() leave valid RAS components handled by the
default switch branch completely unlogged?

ras_counter_is_valid() accepts XE_RAS_COMP_PCIE and XE_RAS_COMP_RESERVED,
both of which fall into the default branch and trigger a full device reset
via XE_RAS_RECOVERY_ACTION_RESET -> ras_action_to_pci_result().  Without
this log, those resets happen with no dmesg diagnostic (and
XE_RAS_COMP_RESERVED also emits no DRM-RAS event).

Logging the component and severity in the default branch (with
XE_RAS_COMP_FABRIC breaking before it) would preserve reset diagnostics
without interfering with repeated DB-ECC suppression.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204140748.2397546-5-mallesh.koujalagi@intel.com?part=3

      reply	other threads:[~2026-12-04 14:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:07 [PATCH v3 0/3] drm/xe/ras: Suppress repeated DB-ECC reports Mallesh Koujalagi
2026-12-04 14:07 ` [PATCH v3 1/3] drm/xe/ras: Add helper to check hard-offlined pages Mallesh Koujalagi
2026-12-04 14:07 ` [PATCH v3 2/3] drm/xe/ras: Downgrade repeated page removal message to debug Mallesh Koujalagi
2026-12-04 14:07 ` [PATCH v3 3/3] drm/xe/ras: Suppress reports for repeated DB-ECC errors Mallesh Koujalagi
2026-12-04 14:57   ` sashiko-bot [this message]

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=sashiko-outbox-250037@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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