From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: <sashiko-reviews@lists.linux.dev>
Cc: <dri-devel@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v6 1/3] drm/ras: Check the node type in node lookups
Date: Fri, 27 Nov 2026 13:41:18 -0500 [thread overview]
Message-ID: <awnOzncCb2GwQ178@intel.com> (raw)
In-Reply-To: <sashiko-outbox-238067@kernel.org>
On Fri, Nov 27, 2026 at 06:24:46PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Low] drm/ras: missing Fixes trailer for node type check in
> drm_ras_node_get()
addressed.
> --
>
> commit 9258f81bad25ef1d7e2f5db2a77f4c65a38c081f
> Author: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> > drm/ras: Check the node type in node lookups
> >
> > drm_ras_node_get() returns a node of any type. The telemetry handlers
> > check the type themselves, but the error-counter ones do not, so an
> > error-counter operation on a telemetry node fails with -EOPNOTSUPP or
> > walks its empty counter range, instead of reporting -ENOENT.
> >
> > Pass the expected type to drm_ras_node_get(), so a node of another
> > type is not found, and drop the type checks of the telemetry handlers.
> >
> > Suggested-by: Riana Tauro <riana.tauro@intel.com>
> > Acked-by: Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> [Severity: Low]
> Since commit c95c93b6e26c ("drm/drm_ras: Extend DRM RAS interface to
> include telemetry nodes") allowed telemetry nodes in drm_ras_xa without
> checking node->type in the error-counter handlers, should this include a
> Fixes tag?
>
> Fixes: c95c93b6e26c ("drm/drm_ras: Extend DRM RAS interface to include telemetry nodes")
b4-shazam shall pick this directly, but anyway already added to my copy of the
patches if I resend/respin is needed:
https://github.com/rodrigovivi/linux/commits/xe-ras-retired-pages-v6
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20261127181750.806528-5-rodrigo.vivi@intel.com?part=1
next prev parent reply other threads:[~2026-11-27 18:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 18:17 [PATCH v6 0/3] drm/xe: Expose retired VRAM pages via drm-ras Rodrigo Vivi
2026-11-27 18:17 ` [PATCH v6 1/3] drm/ras: Check the node type in node lookups Rodrigo Vivi
2026-11-27 18:24 ` sashiko-bot
2026-11-27 18:41 ` Rodrigo Vivi [this message]
2026-11-27 18:17 ` [PATCH v6 2/3] drm/ras: Add retired-pages node type Rodrigo Vivi
2026-11-27 18:17 ` [PATCH v6 3/3] drm/xe: Expose retired VRAM pages via drm-ras Rodrigo Vivi
2026-11-27 18:27 ` ✗ CI.checkpatch: warning for drm/xe: Expose retired VRAM pages via drm-ras (rev6) Patchwork
2026-11-27 18:29 ` ✓ CI.KUnit: success " 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=awnOzncCb2GwQ178@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--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