From: sashiko-bot@kernel.org
To: "Ravi Kishore Koppuravuri" <ravi.kishore.koppuravuri@intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v4] drm/xe/xe_ras: Skip gpu_health sysfs commands when wedged
Date: Wed, 25 Nov 2026 09:02:35 +0000 [thread overview]
Message-ID: <sashiko-outbox-232969@kernel.org> (raw)
In-Reply-To: <20261125085610.2002508-1-ravi.kishore.koppuravuri@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/xe: undeclared xe_wedge_mode_is_no_reset() breaks build in
xe_ras.c
--
commit 593bff9b6fb627a48823e128d475aba74563f22e
Author: Ravi Kishore Koppuravuri <ravi.kishore.koppuravuri@intel.com>
drm/xe/xe_ras: Skip gpu_health sysfs commands when wedged
This commit skips system controller mailbox commands in gpu_health_show()
and gpu_health_store() when the device is wedged and not in no-reset wedge
mode.
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 0fb891d00b36a..978dbaa82fe2c 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -1134,6 +1134,9 @@ static ssize_t gpu_health_show(struct device *dev, struct device_attribute *attr
> size_t rlen;
> int ret;
>
> + if (xe_wedged(xe) && !xe_wedge_mode_is_no_reset(xe))
> + return -ECANCELED;
> +
> xe_sysctrl_create_command(&command, XE_SYSCTRL_GROUP_GFSP, XE_SYSCTRL_CMD_GET_HEALTH,
> &request, sizeof(request), &response, sizeof(response));
> guard(xe_pm_runtime)(xe);
> @@ -1177,6 +1180,9 @@ static ssize_t gpu_health_store(struct device *dev, struct device_attribute *att
> if (state < 0)
> return -EINVAL;
>
> + if (xe_wedged(xe) && !xe_wedge_mode_is_no_reset(xe))
> + return -ECANCELED;
> +
> request.health = state;
>
> xe_sysctrl_create_command(&command, XE_SYSCTRL_GROUP_GFSP, XE_SYSCTRL_CMD_SET_HEALTH,
[Severity: High]
Does this break the build because xe_wedge_mode_is_no_reset() is not
declared or defined anywhere in the tree? Is a prerequisite patch adding
xe_wedge_mode_is_no_reset() to drivers/gpu/drm/xe/xe_wedge.h missing?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125085610.2002508-1-ravi.kishore.koppuravuri@intel.com?part=1
next prev parent reply other threads:[~2026-11-25 9:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 8:56 [PATCH v4] drm/xe/xe_ras: Skip gpu_health sysfs commands when wedged Ravi Kishore Koppuravuri
2026-11-25 9:02 ` sashiko-bot [this message]
2026-11-25 9:06 ` ✓ CI.KUnit: success for " Patchwork
2026-11-25 9:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-25 11:27 ` ✓ 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=sashiko-outbox-232969@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=ravi.kishore.koppuravuri@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.