Thread (11 messages) 11 messages, 3 authors, 1d ago

Re: [PATCH v6 2/2] drm/xe/xe_ras: Report correctable/uncorrectable error events to userspace

From: Raag Jadav <raag.jadav@intel.com>
Date: 2026-07-23 06:41:31
Also in: dri-devel, intel-xe

On Wed, Jul 22, 2026 at 03:11:37PM +0530, Riana Tauro wrote:
When an interrupt is received for correctable errors indicating that error
counter has crossed its threshold, read the current counter value and
deliver a drm-ras error-event to userspace for each affected component.

Also send drm-ras error-event to userspace for uncorrectable errors on
receiving an AER.

To avoid sending duplicate events when the same component appears multiple
times in the response, Send the error-event once per component.
...
+/**
+ * xe_drm_ras_event() - Report drm-ras error event to userspace
+ * @xe: xe device structure
+ * @component: error component (see &enum drm_xe_ras_error_component)
+ * @severity: error severity (see &enum drm_xe_ras_error_severity)
+ * @value: value of error counter
+ *
+ * Report an error-event to userspace.
+ */
+void xe_drm_ras_event(struct xe_device *xe, u8 component, u8 severity, u32 value)
Forgot to add. Looking at the existing xe_drm_ras code, this should be

void xe_drm_ras_event(struct xe_device *xe, enum drm_xe_ras_error_severity severity,
		      u32 error_id, u32 val)

but can be done as follow up.

Raag
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help