Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Matt Roper <matthew.d.roper@intel.com>, Dave Airlie <airlied@gmail.com>
Cc: Badal Nilawar <badal.nilawar@intel.com>,
	<intel-xe@lists.freedesktop.org>,  <anshuman.gupta@intel.com>,
	<daniele.ceraolospurio@intel.com>, <raag.jadav@intel.com>,
	<riana.tauro@intel.com>, <mallesh.koujalagi@intel.com>,
	<aravind.iddamsetty@intel.com>, <michal.wajdeczko@intel.com>,
	<himal.prasad.ghimiray@intel.com>, <arvind.yadav@intel.com>
Subject: Re: [PATCH v2 00/11] Add CPER logging support for CRI
Date: Thu, 27 Aug 2026 16:12:00 -0400	[thread overview]
Message-ID: <apCaEBQSKwANBNFI@intel.com> (raw)
In-Reply-To: <20260826195017.GJ681121@mdroper-desk1.amr.corp.intel.com>

On Wed, Aug 26, 2026 at 12:50:17PM -0700, Matt Roper wrote:
> On Tue, Aug 25, 2026 at 11:29:17PM +0530, Badal Nilawar wrote:
> > This patch series adds CPER (Common Platform Error Record) logging support
> > for Correctable errors reported by Intel Xe GPUs. CPER logging is done
> > through trace event.
> 
> Is the expectation that real-world applications are going to pick up
> these logs via tracefs rather than some other kind of dedicated uapi?
> That worries me a bit...
> 
> I think tracepoints have been a bit of a gray area in the past with some
> people feeling that they're formal interfaces with all the ABI
> requirements of traditional uapi, and other people feeling that they're
> just debugging aids for driver developers that don't need to provide
> stable ABI guarantees.  If we're saying this will be the official
> interface that userspace software should use to obtain these CPER logs,
> then it sounds like we're taking a firm stance that yes, these are now
> formal uapi with hard ABI requirements.  In that case it means that this
> work now needs to satisfy the DRM subsystem's ABI rules --- we need a
> real-world opensource userspace consumer, acks from the userspace teams
> on the interface, etc.  And we can never change/break the interface here
> after it lands.
> 
> This may also have implications for other tracepoints, current or
> future, so we should make sure we've thought through this carefully.
> Please make sure you discuss this with the maintainers and ensure
> they're aligned on the direction here.

Cc: Dave

relates to our old discussion on drm-ras vs tracefs for the cper logs:
https://lore.kernel.org/all/CAPM=9tybY_LECdMNH6iw5pzxtd2=Z+4vwLt-_kuMQFUaEXsdpw@mail.gmail.com/

The main motivation behind having the logs on tracefs is that debugfs is usually
not available in production and to avoid flooding the small kernel buf log.
Specially with some CPER format that is starting to be the convergence of log
format in the data center world. Mostly driven by OCP standards.

That said, I don't believe we need to draw a hard line and demand that the
tracefs become a hard ABI like our uAPIs. As you mentioned already that will
have consequences that are much higher than the logs use case.

Also, we are not proposing a dedicated userspace consumer for these traces,
nor do we expect applications to interact with them through a Xe-specific API.
Users already have standard mechanisms for collecting trace data, such as
trace-cmd, perf, KernelShark, and other tracing pipelines.

Similar to other trace events, those generic tracing tools can be used to
collect and process the records when desired. Because of that, I don't think
it is reasonable to require a new dedicated userspace project as a prerequisite
for exposing these events.

Thanks,
Rodrigo.

> 
> 
> Matt
> 
> > 
> > v2:
> >    - Extended CPER logging to Uncorrectable errors and xe_ras_get_counter
> >      request
> >    - Log CPER records via xe_log SIGID infra 
> > 
> > Badal Nilawar (11):
> >   drm/xe/xe_ras: Add support to retrieve info queue data for CRI
> >   drm/xe/xe_ras: Refactor get_counter() to return response structure
> >   drm/xe/cper: Add CPER structures and trace event
> >   drm/xe/cper: APIs to prepare and log CPER record
> >   drm/xe/cper: Prepare Intel CPER error info from info queue
> >   drm/xe/cper: Log CPER records for aggregate counter retrival
> >   drm/xe/cper: Allow hardware error CPER reporting from xe_log
> >   drm/xe/ras: Report device memory errors using SIGID
> >   drm/xe/ras: Report core compute errors using SIGID
> >   drm/xe/ras: Report soc internal errors using SIGID
> >   drm/xe/ras: Report correctable errors using SIGID
> > 
> >  drivers/gpu/drm/xe/Makefile                   |   4 +
> >  drivers/gpu/drm/xe/regs/xe_regs.h             |   2 +
> >  drivers/gpu/drm/xe/xe_cper.c                  | 184 +++++++
> >  drivers/gpu/drm/xe/xe_cper.h                  |  34 ++
> >  drivers/gpu/drm/xe/xe_cper_types.h            | 186 +++++++
> >  drivers/gpu/drm/xe/xe_log.c                   |  17 +-
> >  drivers/gpu/drm/xe/xe_ras.c                   | 506 ++++++++++++++++--
> >  drivers/gpu/drm/xe/xe_ras.h                   |   4 +
> >  drivers/gpu/drm/xe/xe_ras_types.h             | 118 +++-
> >  drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h |   2 +
> >  drivers/gpu/drm/xe/xe_trace_cper.c            |   9 +
> >  drivers/gpu/drm/xe/xe_trace_cper.h            |  66 +++
> >  12 files changed, 1093 insertions(+), 39 deletions(-)
> >  create mode 100644 drivers/gpu/drm/xe/xe_cper.c
> >  create mode 100644 drivers/gpu/drm/xe/xe_cper.h
> >  create mode 100644 drivers/gpu/drm/xe/xe_cper_types.h
> >  create mode 100644 drivers/gpu/drm/xe/xe_trace_cper.c
> >  create mode 100644 drivers/gpu/drm/xe/xe_trace_cper.h
> > 
> > -- 
> > 2.54.0
> > 
> 
> -- 
> Matt Roper
> Graphics Software Engineer
> Linux GPU Platform Enablement
> Intel Corporation

      reply	other threads:[~2026-08-27 20:12 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-25 17:59 [PATCH v2 00/11] Add CPER logging support for CRI Badal Nilawar
2026-08-25 17:59 ` [PATCH v2 01/11] drm/xe/xe_ras: Add support to retrieve info queue data " Badal Nilawar
2026-08-25 17:53   ` sashiko-bot
2026-08-26  0:54     ` Rodrigo Vivi
2026-08-25 20:48   ` Michal Wajdeczko
2026-08-25 17:59 ` [PATCH v2 02/11] drm/xe/xe_ras: Refactor get_counter() to return response structure Badal Nilawar
2026-08-25 17:59 ` [PATCH v2 03/11] drm/xe/cper: Add CPER structures and trace event Badal Nilawar
2026-08-25 17:51   ` sashiko-bot
2026-08-28 15:23   ` Rodrigo Vivi
2026-08-25 17:59 ` [PATCH v2 04/11] drm/xe/cper: APIs to prepare and log CPER record Badal Nilawar
2026-08-25 18:02   ` sashiko-bot
2026-08-26  0:59     ` Rodrigo Vivi
2026-08-25 17:59 ` [PATCH v2 05/11] drm/xe/cper: Prepare Intel CPER error info from info queue Badal Nilawar
2026-08-25 17:54   ` sashiko-bot
2026-08-25 17:59 ` [PATCH v2 06/11] drm/xe/cper: Log CPER records for aggregate counter retrival Badal Nilawar
2026-08-25 17:55   ` sashiko-bot
2026-08-26  1:01   ` Rodrigo Vivi
2026-08-25 17:59 ` [PATCH v2 07/11] drm/xe/cper: Allow hardware error CPER reporting from xe_log Badal Nilawar
2026-08-25 17:54   ` sashiko-bot
2026-08-27 21:27   ` Michal Wajdeczko
2026-08-25 17:59 ` [PATCH v2 08/11] drm/xe/ras: Report device memory errors using SIGID Badal Nilawar
2026-08-25 17:58   ` sashiko-bot
2026-08-27 20:25   ` Michal Wajdeczko
2026-08-25 17:59 ` [PATCH v2 09/11] drm/xe/ras: Report core compute " Badal Nilawar
2026-08-25 17:55   ` sashiko-bot
2026-08-25 17:59 ` [PATCH v2 10/11] drm/xe/ras: Report soc internal " Badal Nilawar
2026-08-28 15:20   ` Rodrigo Vivi
2026-08-25 17:59 ` [PATCH v2 11/11] drm/xe/ras: Report correctable " Badal Nilawar
2026-08-25 18:03   ` sashiko-bot
2026-08-25 18:29 ` ✗ CI.checkpatch: warning for Add CPER logging support for CRI (rev2) Patchwork
2026-08-25 18:31 ` ✓ CI.KUnit: success " Patchwork
2026-08-25 19:25 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-25 22:06 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-08-26 19:50 ` [PATCH v2 00/11] Add CPER logging support for CRI Matt Roper
2026-08-27 20:12   ` Rodrigo Vivi [this message]

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=apCaEBQSKwANBNFI@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=airlied@gmail.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@intel.com \
    --cc=arvind.yadav@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=matthew.d.roper@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=riana.tauro@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