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-22 15:32:13
Also in: dri-devel, intel-xe

On Wed, Jul 22, 2026 at 05:24:11PM +0200, Raag Jadav wrote:
On Wed, Jul 22, 2026 at 03:11:37PM +0530, Riana Tauro wrote:
quoted
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.
...
quoted
@@ -425,6 +487,12 @@ enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe)
 			xe_info(xe, "[RAS]: %s %s detected\n", comp_to_str(component),
 				sev_to_str(severity));
Similar to threshold crossed case, we should probably have a BUILD_BUG_ON()
against XE_RAS_NUM_ERROR_ARR.
XE_RAS_COMP_MAX, missed it :)
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
quoted
+			/* Send event once per component */
+			if (!(sent & BIT(component))) {
+				sent |= BIT(component);
+				ras_send_error_event(xe, severity, component);
+			}
+
 			switch (component) {
 			case XE_RAS_COMP_CORE_COMPUTE:
 				action = handle_core_compute_errors(arr);
-- 
2.47.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help