Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <anshuman.gupta@intel.com>,
	<badal.nilawar@intel.com>, <riana.tauro@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 v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors
Date: Wed, 2 Dec 2026 12:53:59 -0500	[thread overview]
Message-ID: <axBbNx8u4NCZLlcj@intel.com> (raw)
In-Reply-To: <20261202115714.2320298-10-mallesh.koujalagi@intel.com>

On Wed, Dec 02, 2026 at 05:27:19PM +0530, Mallesh Koujalagi wrote:
> 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);

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

>  		/*
>  		 * Wedge the device with a bus reset for errors that require SBR to recover.
>  		 * TODO: Trigger SBR using pci_reset_bus
> -- 
> 2.48.1
> 

  parent reply	other threads:[~2026-12-02 17:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 13:16   ` Raag Jadav
2026-12-02 13:47     ` Mallesh, Koujalagi
2026-12-02 17:51   ` Rodrigo Vivi
2026-12-02 11:57 ` [PATCH v1 2/4] drm/xe/ras: Downgrade repeated page removal message to debug Mallesh Koujalagi
2026-12-02 17:52   ` Rodrigo Vivi
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 18:21   ` Rodrigo Vivi
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
2026-12-02 17:53   ` Rodrigo Vivi [this message]
2026-12-02 13:36 ` ✓ CI.KUnit: success for drm/xe/ras: Suppress repeated DB-ECC reports Patchwork
2026-12-02 14:08 ` ✓ 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=axBbNx8u4NCZLlcj@intel.com \
    --to=rodrigo.vivi@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=riana.tauro@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox