All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tauro, Riana" <riana.tauro@intel.com>
To: Mallesh Koujalagi <mallesh.koujalagi@intel.com>,
	<intel-xe@lists.freedesktop.org>
Cc: <rodrigo.vivi@intel.com>, <anshuman.gupta@intel.com>,
	<badal.nilawar@intel.com>, <karthik.poosa@intel.com>,
	<sk.anirban@intel.com>,  <raag.jadav@intel.com>,
	<himal.prasad.ghimiray@intel.com>, <tejas.upadhyay@intel.com>,
	<aravind.iddamsetty@linux.intel.com>
Subject: Re: [PATCH v2 3/3] drm/xe/ras: Suppress reports for repeated DB-ECC errors
Date: Thu, 3 Dec 2026 18:57:15 +0530	[thread overview]
Message-ID: <073be648-0779-40d3-8f69-518bcbf9e9d5@intel.com> (raw)
In-Reply-To: <20261203103632.2379654-8-mallesh.koujalagi@intel.com>


On 03-12-2026 16:06, Mallesh Koujalagi wrote:
> Repeated DB-ECC errors can be reported for pages that have already been
> hard-offlined. Such errors are not actionable, but they still generate
> log messages, error events, and CPER records.
>
> Skip reporting when a repeated error on a hard-offlined page is handled
> successfully. Continue reporting when page offlining is disabled or
> error handling fails.
>
> 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>
> Suggested-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
> ---
> v2:
> - Remove info log from xe_ras_process_errors(). (Riana)
> ---
>   drivers/gpu/drm/xe/xe_ras.c | 39 +++++++++++++++++++++++--------------
>   1 file changed, 24 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index df1e3901b4e0..645ff6363444 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -654,12 +654,16 @@ static u8 handle_soc_internal_errors(struct xe_device *xe, struct xe_ras_error_a
>   	return XE_RAS_RECOVERY_ACTION_RESET;
>   }
>   
> -static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_array *arr)
> +static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_array *arr,
> +				      bool *quiet)
>   {
>   	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;
>   
> +	*quiet = false;

you are already setting quiet to false in caller.

> +
>   	/*
>   	 * For memory errors, the recovery action depends on the error category
>   	 *
> @@ -694,11 +698,18 @@ static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_
>   			break;
>   		}
>   
> +		/* Check if the page was already hard-offlined */
> +		recurrent = xe_ras_get_enable_vram_page_offline(xe) &&
> +			    page_is_hard_offlined(xe, info->sw_address);

Afaiu, address will be added to the list only if page offlining is enabled.
First check is unnecessary

>   		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);

Please move this log to handle_page offline as mentioned in previous rev

> +
> +		/* Suppress reporting for repeated errors on hard-offlined pages */
> +		*quiet = recurrent && !ret;
> +		if (!*quiet)
> +			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
> @@ -892,6 +903,7 @@ enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe)
>   			struct xe_ras_error_array *arr = &response.arr[i];
>   			enum xe_ras_recovery_action action;
>   			u8 component, severity;
> +			bool quiet = false;
>   
>   			component = arr->counter.common.component;
>   			severity = arr->counter.common.severity;
> @@ -899,15 +911,6 @@ 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);
> @@ -916,7 +919,7 @@ enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe)
>   				action = handle_soc_internal_errors(xe, arr);
>   				break;
>   			case XE_RAS_COMP_DEVICE_MEMORY:
> -				action = handle_device_memory_errors(xe, arr);
> +				action = handle_device_memory_errors(xe, arr, &quiet);
>   				break;
>   			case XE_RAS_COMP_FABRIC:
>   				xe_log_comp(xe, ras_sev_to_cper_sev(severity), FABRIC,
> @@ -929,6 +932,12 @@ enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe)
>   				break;
>   			}
>   
> +			/* Send event once per component, except for quiet repeats */
> +			if (!quiet && !(sent & BIT(component))) {
> +				sent |= BIT(component);
> +				ras_send_error_event(xe, severity, component);
> +			}

As mentioned in previous revision and offline discussion. This is not 
right. It will skip event for other errors
like Punit or CSC since error_event has wedge check.

Maybe you should move the error event to per-class handlers like cper

Thanks
Riana

> +
>   			/* Process and log all errors and then trigger highest recovery action */
>   			if (action > final_action)
>   				final_action = action;

  parent reply	other threads:[~2026-12-03 13:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 10:36 [PATCH v2 0/3] drm/xe/ras: Suppress repeated DB-ECC reports Mallesh Koujalagi
2026-12-03 10:36 ` [PATCH v2 1/3] drm/xe/ras: Add helper to check hard-offlined pages Mallesh Koujalagi
2026-12-03 10:36 ` [PATCH v2 2/3] drm/xe/ras: Downgrade repeated page removal message to debug Mallesh Koujalagi
2026-12-03 10:36 ` [PATCH v2 3/3] drm/xe/ras: Suppress reports for repeated DB-ECC errors Mallesh Koujalagi
2026-12-03 11:03   ` sashiko-bot
2026-12-03 13:27   ` Tauro, Riana [this message]
2026-12-04 13:59     ` Mallesh, Koujalagi
2026-12-03 10:54 ` ✓ CI.KUnit: success for drm/xe/ras: Suppress repeated DB-ECC reports (rev2) Patchwork
2026-12-03 11:26 ` ✓ Xe.CI.BAT: " Patchwork
2026-12-04  9:32 ` ✓ Xe.CI.FULL: " 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=073be648-0779-40d3-8f69-518bcbf9e9d5@intel.com \
    --to=riana.tauro@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@linux.intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=karthik.poosa@intel.com \
    --cc=mallesh.koujalagi@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=sk.anirban@intel.com \
    --cc=tejas.upadhyay@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.