From: sashiko-bot@kernel.org
To: "Mallesh Koujalagi" <mallesh.koujalagi@intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors
Date: Wed, 02 Dec 2026 12:08:19 +0000 [thread overview]
Message-ID: <sashiko-outbox-245665@kernel.org> (raw)
In-Reply-To: <20261202115714.2320298-9-mallesh.koujalagi@intel.com>
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
next prev parent reply other threads:[~2026-12-02 12:08 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 [this message]
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
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-245665@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 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.