Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Raag Jadav <raag.jadav@intel.com>
To: "Tauro, Riana" <riana.tauro@intel.com>
Cc: intel-xe@lists.freedesktop.org, anshuman.gupta@intel.com,
	rodrigo.vivi@intel.com, aravind.iddamsetty@linux.intel.com,
	badal.nilawar@intel.com, ravi.kishore.koppuravuri@intel.com,
	mallesh.koujalagi@intel.com, soham.purkait@intel.com
Subject: Re: [PATCH v6 3/6] drm/xe/xe_ras: Add support to clear error counter
Date: Tue, 26 May 2026 09:46:02 +0200	[thread overview]
Message-ID: <ahVPukjUhC4Qrhs3@black.igk.intel.com> (raw)
In-Reply-To: <88f42243-af5e-469f-9769-aa5dfabd6740@intel.com>

On Tue, May 26, 2026 at 10:45:24AM +0530, Tauro, Riana wrote:
> On 5/18/2026 11:28 PM, Raag Jadav wrote:
> > On Thu, May 14, 2026 at 10:52:09AM +0530, Riana Tauro wrote:
> > > Add structures and helper function to clear error counter value.

...

> > > +static const int ras_status_to_errno_map[] = {
> > Nit: Redundant 'map', just use 'xe' prefix.
> > 
> > > +	[XE_RAS_STATUS_SUCCESS]			= 0,
> > > +	[XE_RAS_STATUS_INVALID_PARAM]		= -EINVAL,
> > > +	[XE_RAS_STATUS_OP_NOT_SUPPORTED]	= -EOPNOTSUPP,
> > > +	[XE_RAS_STATUS_TIMEOUT]			= -ETIMEDOUT,
> > > +	[XE_RAS_STATUS_HARDWARE_FAILURE]	= -EIO,
> > > +	[XE_RAS_STATUS_INSUFFICIENT_RESOURCES]	= -ENOSPC,
> > > +	[XE_RAS_STATUS_UNKNOWN_ERROR]		= -EIO
> > -EPROTO?
> 
> This is protocol error. Would be misleading to userspace. -EIO is better for
> unknown errors
> indicating an hardware error

This will most likely end up in user land, so probably worth making it
distinguishable from XE_RAS_STATUS_HARDWARE_FAILURE. We return -EPROTO
for similar pcode cases, so I thought we'd make it consistent but I'll
leave it to you.

Raag

  reply	other threads:[~2026-05-26  7:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14  5:22 [PATCH v6 0/6] Add get-error-counter and clear-error-counter support for CRI Riana Tauro
2026-05-14  4:55 ` ✗ CI.checkpatch: warning for Add get-error-counter and clear-error-counter support for CRI (rev5) Patchwork
2026-05-14  4:56 ` ✓ CI.KUnit: success " Patchwork
2026-05-14  5:22 ` [PATCH v6 1/6] drm/xe/uapi: Add additional error components to xe drm_ras Riana Tauro
2026-05-14  5:22 ` [PATCH v6 2/6] drm/xe/xe_ras: Add support to get error counter in CRI Riana Tauro
2026-05-18 17:26   ` Raag Jadav
2026-05-25 14:13     ` Tauro, Riana
2026-05-26  5:17       ` Tauro, Riana
2026-05-14  5:22 ` [PATCH v6 3/6] drm/xe/xe_ras: Add support to clear error counter Riana Tauro
2026-05-18 17:58   ` Raag Jadav
2026-05-26  5:15     ` Tauro, Riana
2026-05-26  7:46       ` Raag Jadav [this message]
2026-05-26  7:58         ` Tauro, Riana
2026-05-14  5:22 ` [PATCH v6 4/6] drm/xe/xe_drm_ras: Wire get/clear counter callbacks Riana Tauro
2026-05-19  5:54   ` Raag Jadav
2026-05-14  5:22 ` [PATCH v6 5/6] drm/xe: Move xe drm_ras initialization Riana Tauro
2026-05-14 17:25   ` Raag Jadav
2026-05-14  5:22 ` [PATCH v6 6/6] drm/xe/xe_ras: Add drm_ras feature flag Riana Tauro
2026-05-14  5:43 ` ✓ Xe.CI.BAT: success for Add get-error-counter and clear-error-counter support for CRI (rev5) Patchwork
2026-05-15  1:10 ` ✗ Xe.CI.FULL: failure " 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=ahVPukjUhC4Qrhs3@black.igk.intel.com \
    --to=raag.jadav@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@linux.intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=ravi.kishore.koppuravuri@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=rodrigo.vivi@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