[PATCH v1 0/2] drm/xe: Add support for GPU health indicator

Soham Purkait
2026-04-16T09:49:30Z

Large-scale service providers and tier-1 datacenters commonly
deploy various reactive health-monitoring approaches. The Xe GPU health
indicator is intended to fit into such reactive monitoring flows, where
it can be consumed by management and orchestration software.

This series adds Xe GPU health indicator support as a RAS feature
through the System Controller mailbox and exposes it through sysfs.

It introduces the health command IDs and request/response structures
used by the System Controller mailbox, and integrates the feature into
Xe through the gpu_health sysfs interface.

The sysfs file, gpu_health, is created at the device level and
provides a simple interface for observing and updating the reported
GPU health state. It is exposed as read-write on PF/native functions
and read-only on VFs.

Soham Purkait (2):
drm/xe/xe_ras: Add structures and commands for RAS GPU health
indicator
drm/xe/xe_ras: Add RAS support for GPU health indicator

drivers/gpu/drm/xe/Makefile | 1 +
drivers/gpu/drm/xe/xe_device.c | 3 +
drivers/gpu/drm/xe/xe_ras.c | 181 ++++++++++++++++++
drivers/gpu/drm/xe/xe_ras.h | 13 ++
drivers/gpu/drm/xe/xe_ras_types.h | 65 +++++++
drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 15 ++
6 files changed, 278 insertions(+)
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

--
2.34.1