Skip to content

drm/xe: Add support for GPU health indicator

Soham Purkait intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3From: Anoop Vijay <[email protected]>drivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h +10 more+650 -00 replies
2/3drm/xe/xe_ras: Add structures and commands for RAS GPU health indicatordrivers/gpu/drm/xe/xe_ras_types.h drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h+80 -00 replies
3/3drm/xe/xe_ras: Add RAS support for GPU health indicatordrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_ras.c +1 more+183 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] drm/xe: Add support for GPU health indicator

This series adds Xe GPU health indicator support as RAS functionality through the System Controller mailbox and which is exposed via sysfs interface.

It introduces the health command IDs and request/response structures used by System Controller mailbox, then wires the functionality into Xe so user space can query and update GPU health state via a single sysfs node.

The sysfs file (gpu_health) is placed in the device level and behaves as follows:

$ cat /sys/.../device/gpu_health
[ok] warning critical
$ echo critical > /sys/.../device/gpu_health
$ cat /sys/.../device/gpu_health
ok warning [critical]

Anoop Vijay (1):
From: Anoop Vijay <[email protected]>

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                   |   3 +
 drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h       |  31 ++
 drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h     |  36 ++
 drivers/gpu/drm/xe/xe_device.c                |   8 +
 drivers/gpu/drm/xe/xe_device_types.h          |   6 +
 drivers/gpu/drm/xe/xe_pci.c                   |   2 +
 drivers/gpu/drm/xe/xe_pci_types.h             |   1 +
 drivers/gpu/drm/xe/xe_ras.c                   | 166 ++++++++
 drivers/gpu/drm/xe/xe_ras.h                   |  13 +
 drivers/gpu/drm/xe/xe_ras_types.h             |  65 ++++
 drivers/gpu/drm/xe/xe_sysctrl.c               |  84 ++++
 drivers/gpu/drm/xe/xe_sysctrl.h               |  21 +
 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c       | 364 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_sysctrl_mailbox.h       |  31 ++
 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h |  50 +++
 drivers/gpu/drm/xe/xe_sysctrl_types.h         |  32 ++
 16 files changed, 913 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h
 create mode 100644 drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h
 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.c
 create mode 100644 drivers/gpu/drm/xe/xe_sysctrl.h
 create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c
 create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.h
 create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h
 create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_types.h
Signature · 1 line
2.43.0