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