Skip to content

Supporting RAS on XE

Aravind Iddamsetty intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/xe: Handle errors from various components.drivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/regs/xe_irq_regs.h drivers/gpu/drm/xe/regs/xe_regs.h +7 more+352 -02 replies
2/10drm/xe: Add new helpers to log hardware errrors.drivers/gpu/drm/xe/xe_gt_printk.h+7 -01 reply
3/10drm/xe: Log and count the GT hardware errors.drivers/gpu/drm/xe/regs/xe_gt_error_regs.h drivers/gpu/drm/xe/regs/xe_tile_error_regs.h drivers/gpu/drm/xe/xe_device.c +5 more+143 -10 replies
4/10drm/xe: Support GT hardware error reporting for PVC.drivers/gpu/drm/xe/regs/xe_gt_error_regs.h drivers/gpu/drm/xe/xe_device_types.h drivers/gpu/drm/xe/xe_hw_error.c +1 more+158 -20 replies
5/10drm/xe: Support GSC hardware error reporting for PVC.drivers/gpu/drm/xe/regs/xe_tile_error_regs.h drivers/gpu/drm/xe/xe_device_types.h drivers/gpu/drm/xe/xe_hw_error.c +1 more+122 -00 replies
6/10drm/xe: Support SOC FATAL error handling for PVC.drivers/gpu/drm/xe/regs/xe_tile_error_regs.h drivers/gpu/drm/xe/xe_device_types.h drivers/gpu/drm/xe/xe_hw_error.c +1 more+273 -00 replies
7/10drm/xe: Support SOC NONFATAL error handling for PVC.drivers/gpu/drm/xe/xe_hw_error.c drivers/gpu/drm/xe/xe_hw_error.h+108 -10 replies
8/10drm/xe: Handle MDFI error severity.drivers/gpu/drm/xe/regs/xe_tile_error_regs.h drivers/gpu/drm/xe/xe_hw_error.c+23 -20 replies
9/10drm/xe: Clear SOC CORRECTABLE error registers.drivers/gpu/drm/xe/xe_hw_error.c+22 -30 replies
10/10drm/xe: Clear all SoC errors post warm reset.drivers/gpu/drm/xe/xe_hw_error.c+41 -00 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchAravind Iddamsetty
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] Supporting RAS on XE

Rebasing series as a prep for netlink infra series which would be floated as a follow up.

Our platforms supports Reliability, Availability and Serviceability(RAS). In case of hardware errors, our hardwares provides the causes via sending interrupt or pcie errors. The fatal errors are propogated as pci errors and non fatal errors as MSI. This series focuses on loging and updating counters for these errors, which will be helpful to detect and repair hardware faults.

This [1] series proposes mechanism to expose this counters to userspace. [1]: https://patchwork.freedesktop.org/series/118435/

The error counters exposed by KMD will be used by L0/sysman They will be categorized to specific category of error in sysman:
https://spec.oneapi.io/level-zero/latest/sysman/api.html#ras

We have very limited capabilities for error injection to validate the code flow.
Output of L3 fabric fatal injection from PVC is:
xe 0000:8c:00.0: [drm] *ERROR* [Hardware Error]: TILE0 detected GT FATAL error bit[0] is set
xe 0000:8c:00.0: [drm] *ERROR* [Hardware Error]: GT0 detected L3 FABRIC FATAL error. ERR_VECT_GT_FATAL[7]:0x00000087

Cc Riana Tauro <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Himal Prasad Ghimiray <[email protected]>
Cc Anshuman Gupta <[email protected]>

Himal Prasad Ghimiray (10):
drm/xe: Handle errors from various components. drm/xe: Add new helpers to log hardware errrors. drm/xe: Log and count the GT hardware errors. drm/xe: Support GT hardware error reporting for PVC. drm/xe: Support GSC hardware error reporting for PVC. drm/xe: Support SOC FATAL error handling for PVC. drm/xe: Support SOC NONFATAL error handling for PVC. drm/xe: Handle MDFI error severity.
drm/xe: Clear SOC CORRECTABLE error registers. drm/xe: Clear all SoC errors post warm reset.

 drivers/gpu/drm/xe/Makefile                  |   1 +
 drivers/gpu/drm/xe/regs/xe_gt_error_regs.h   |  29 +
 drivers/gpu/drm/xe/regs/xe_irq_regs.h        |   1 +
 drivers/gpu/drm/xe/regs/xe_regs.h            |   3 +
 drivers/gpu/drm/xe/regs/xe_tile_error_regs.h |  66 ++
 drivers/gpu/drm/xe/xe_device.c               |  16 +
 drivers/gpu/drm/xe/xe_device_types.h         |  17 +
 drivers/gpu/drm/xe/xe_gt.c                   |   1 +
 drivers/gpu/drm/xe/xe_gt_printk.h            |   7 +
 drivers/gpu/drm/xe/xe_gt_types.h             |   6 +
 drivers/gpu/drm/xe/xe_hw_error.c             | 896 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_hw_error.h             | 194 ++++
 drivers/gpu/drm/xe/xe_irq.c                  |   1 +
 drivers/gpu/drm/xe/xe_tile.c                 |   2 +
 14 files changed, 1240 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/regs/xe_gt_error_regs.h
 create mode 100644 drivers/gpu/drm/xe/regs/xe_tile_error_regs.h
 create mode 100644 drivers/gpu/drm/xe/xe_hw_error.c
 create mode 100644 drivers/gpu/drm/xe/xe_hw_error.h
Signature · 1 line
2.25.1