| From: |
| Raag Jadav <raag.jadav-AT-intel.com> |
| To: |
| intel-xe-AT-lists.freedesktop.org, dri-devel-AT-lists.freedesktop.org, netdev-AT-vger.kernel.org |
| Subject: |
| [PATCH v3 0/4] Introduce error threshold to drm_ras |
| Date: |
| Fri, 05 Jun 2026 00:16:39 +0530 |
| Message-ID: |
| <20260604184849.1011985-1-raag.jadav@intel.com> |
| Cc: |
| simona.vetter-AT-ffwll.ch, airlied-AT-gmail.com, kuba-AT-kernel.org, lijo.lazar-AT-amd.com, Hawking.Zhang-AT-amd.com, davem-AT-davemloft.net, pabeni-AT-redhat.com, edumazet-AT-google.com, dev-AT-lankhorst.se, zachary.mckevitt-AT-oss.qualcomm.com, rodrigo.vivi-AT-intel.com, riana.tauro-AT-intel.com, michal.wajdeczko-AT-intel.com, matthew.d.roper-AT-intel.com, mallesh.koujalagi-AT-intel.com, Raag Jadav <raag.jadav-AT-intel.com> |
| Archive-link: |
| Article |
This series reuses some pieces of [1] and introduces error threshold
to drm_ras infrastructure. This allows user to get and set the error
threshold of a specific counter.
Detailed description in commit message and documentation.
[1] https://patchwork.freedesktop.org/series/164393/
v2: Document threshold definition (Riana)
Return -EOPNOTSUPP on threshold callbacks absence (Riana)
Cancel and free genlmsg on failure (Riana)
Document threshold bounds checking responsibility (Riana)
Add RAS operation status codes (Riana)
v3: Move documentation from yaml to rst file (Riana)
s/value/threshold (Riana)
Use goto for error handling (Riana)
Reuse status codes and uapi mapping from counter series (Riana)
Access request/response counter using local pointer (Riana)
Mark unused field as reserved (Riana)
Return -ENOENT on info absence (Riana)
Raag Jadav (3):
drm/ras: Introduce error threshold
drm/xe/ras: Add support for error threshold
drm/xe/drm_ras: Wire up error threshold callbacks
Riana Tauro (1):
drm/xe/xe_ras: Add support for error counter
Documentation/gpu/drm-ras.rst | 18 ++
Documentation/netlink/specs/drm_ras.yaml | 32 ++
drivers/gpu/drm/drm_ras.c | 167 ++++++++++
drivers/gpu/drm/drm_ras_nl.c | 27 ++
drivers/gpu/drm/drm_ras_nl.h | 4 +
drivers/gpu/drm/xe/xe_device.c | 20 +-
drivers/gpu/drm/xe/xe_device_types.h | 2 +
drivers/gpu/drm/xe/xe_drm_ras.c | 71 ++++-
drivers/gpu/drm/xe/xe_hw_error.c | 13 -
drivers/gpu/drm/xe/xe_pci.c | 3 +
drivers/gpu/drm/xe/xe_pci_types.h | 1 +
drivers/gpu/drm/xe/xe_ras.c | 297 ++++++++++++++++++
drivers/gpu/drm/xe/xe_ras.h | 7 +
drivers/gpu/drm/xe/xe_ras_types.h | 102 ++++++
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 28 ++
drivers/gpu/drm/xe/xe_sysctrl_mailbox.h | 3 +
drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 8 +
include/drm/drm_ras.h | 29 ++
include/uapi/drm/drm_ras.h | 3 +
include/uapi/drm/xe_drm.h | 11 +-
20 files changed, 811 insertions(+), 35 deletions(-)
--
2.43.0