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 v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors
Date: Wed, 02 Dec 2026 12:06:16 +0000	[thread overview]
Message-ID: <sashiko-outbox-245662@kernel.org> (raw)
In-Reply-To: <20261202115714.2320298-10-mallesh.koujalagi@intel.com>

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

      reply	other threads:[~2026-12-02 12:06 UTC|newest]

Thread overview: 7+ 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 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 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-245662@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