From: "Tauro, Riana" <riana.tauro@intel.com>
To: Raag Jadav <raag.jadav@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: <michal.wajdeczko@intel.com>, <matthew.d.roper@intel.com>,
<soham.purkait@intel.com>
Subject: Re: [PATCH v1] drm/xe/ras: Fix invalid health error code
Date: Tue, 4 Aug 2026 12:06:47 +0530 [thread overview]
Message-ID: <2cd81d12-a37e-47ad-a213-79a470ab7ad2@intel.com> (raw)
In-Reply-To: <20260804051214.1202957-1-raag.jadav@intel.com>
On 04-08-2026 10:42, Raag Jadav wrote:
> We use -EBADMSG for corrupted responses from sysctrl. Fix the error code.
Let's keep it -EIO as it's more appropriate for sysctrl errors and
consistent than
#define EBADMSG 74 /* Not a data message */
Thanks
Riana
>
> Fixes: 53a7115f9862 ("drm/xe/xe_ras: Add RAS GPU health indicator")
> Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> ---
> drivers/gpu/drm/xe/xe_ras.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index f7af4da8172c..bdad0621ae12 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -700,7 +700,7 @@ static ssize_t gpu_health_show(struct device *dev, struct device_attribute *attr
> if (response.health >= XE_RAS_HEALTH_MAX) {
> xe_err(xe, "sysctrl: invalid health state %u\n",
> response.health);
> - return -EIO;
> + return -EBADMSG;
> }
>
> health = gpu_health_states[response.health];
> @@ -753,7 +753,7 @@ static ssize_t gpu_health_store(struct device *dev, struct device_attribute *att
> if (response.health >= XE_RAS_HEALTH_MAX) {
> xe_err(xe, "sysctrl: invalid health state %u\n",
> response.health);
> - return -EIO;
> + return -EBADMSG;
> }
>
> health = gpu_health_states[response.health];
next prev parent reply other threads:[~2026-08-04 6:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 5:12 [PATCH v1] drm/xe/ras: Fix invalid health error code Raag Jadav
2026-08-04 5:23 ` ✓ CI.KUnit: success for " Patchwork
2026-08-04 6:36 ` Tauro, Riana [this message]
2026-08-04 6:56 ` [PATCH v1] " Michal Wajdeczko
2026-08-04 8:07 ` Raag Jadav
2026-08-04 8:31 ` Tauro, Riana
2026-08-04 10:16 ` Raag Jadav
2026-08-04 6:41 ` ✓ Xe.CI.FULL: success for " Patchwork
2026-08-04 13:37 ` ✓ CI.KUnit: " Patchwork
2026-08-05 5:58 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-08-05 8:25 ` ✓ CI.KUnit: success for drm/xe/ras: Fix invalid health error code (rev2) Patchwork
2026-08-05 9:32 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-08-05 16:34 ` ✓ Xe.CI.FULL: 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=2cd81d12-a37e-47ad-a213-79a470ab7ad2@intel.com \
--to=riana.tauro@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=raag.jadav@intel.com \
--cc=soham.purkait@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