[PATCH v1 00/11] Introduce error threshold to drm_ras

Raag Jadav
2026-04-17T21:21:14Z

This series reuses some pieces of [1] and [2] and introduces error
threshold to drm_ras infrastructure. This allows user to get and set
the threshold value of a specific error.

Detailed description in commit message and documentation.

[1] https://patchwork.freedesktop.org/series/164393/
[2] https://patchwork.freedesktop.org/series/160184/

Raag Jadav (9):
drm/ras: Update counter helpers with counter naming
drm/ras: Introduce get-error-threshold
drm/ras: Introduce set-error-threshold
drm/xe/sysctrl: Add system controller interrupt handler
drm/xe/sysctrl: Add system controller event support
drm/xe/ras: Introduce correctable error handling
drm/xe/ras: Get error threshold support
drm/xe/ras: Set error threshold support
drm/xe/drm_ras: Wire up error threshold callbacks

Riana Tauro (2):
drm/xe/uapi: Add additional error components to XE drm_ras
drm/xe/ras: Add flag for Xe RAS

Documentation/gpu/drm-ras.rst | 17 ++
Documentation/netlink/specs/drm_ras.yaml | 49 +++++
drivers/gpu/drm/drm_ras.c | 165 +++++++++++++-
drivers/gpu/drm/drm_ras_nl.c | 27 +++
drivers/gpu/drm/drm_ras_nl.h | 4 +
drivers/gpu/drm/xe/Makefile | 2 +
drivers/gpu/drm/xe/regs/xe_irq_regs.h | 1 +
drivers/gpu/drm/xe/xe_device_types.h | 2 +
drivers/gpu/drm/xe/xe_drm_ras.c | 29 ++-
drivers/gpu/drm/xe/xe_hw_error.c | 2 +-
drivers/gpu/drm/xe/xe_irq.c | 2 +
drivers/gpu/drm/xe/xe_pci.c | 3 +
drivers/gpu/drm/xe/xe_pci_types.h | 1 +
drivers/gpu/drm/xe/xe_ras.c | 207 ++++++++++++++++++
drivers/gpu/drm/xe/xe_ras.h | 19 ++
drivers/gpu/drm/xe/xe_ras_types.h | 123 +++++++++++
drivers/gpu/drm/xe/xe_sysctrl.c | 46 +++-
drivers/gpu/drm/xe/xe_sysctrl.h | 2 +
drivers/gpu/drm/xe/xe_sysctrl_event.c | 87 ++++++++
drivers/gpu/drm/xe/xe_sysctrl_event_types.h | 57 +++++
drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 22 ++
drivers/gpu/drm/xe/xe_sysctrl_types.h | 7 +
include/drm/drm_ras.h | 27 +++
include/uapi/drm/drm_ras.h | 12 +
include/uapi/drm/xe_drm.h | 11 +-
25 files changed, 906 insertions(+), 18 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_ras.c
create mode 100644 drivers/gpu/drm/xe/xe_ras.h
create mode 100644 drivers/gpu/drm/xe/xe_ras_types.h
create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_event.c
create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_event_types.h

--
2.43.0