All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Extend drm_ras for qaic telemetry
@ 2026-10-29 20:29 Zack McKevitt
  2026-10-29 20:29 ` [PATCH v2 1/3] drm/drm_ras: Remove admin-perm flag from list-nodes operation Zack McKevitt
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Zack McKevitt @ 2026-10-29 20:29 UTC (permalink / raw)
  To: dri-devel, netdev, riana.tauro, aravind.iddamsetty, rodrigo.vivi,
	raag.jadav, simona.vetter, airlied, kuba, ogabbay, lizhi.hou,
	karol.wachowski
  Cc: jeff.hugo, carl.vanderlip, troy.hanson, youssef.abdulrahman,
	Zack McKevitt

This patch series extends the drm_ras netlink interface to include a new
node type for telemetry nodes. Telemetry nodes support two operations,
getting and setting, and drivers may specify an optional predoit function
to validate each operation.

Telemetry get operations take the drm_ras node id and telemetry field to
be read and return the field's value and any status reported by the driver.
Telemetry set operations take the node id, telemetry field, and value,
and return only the status reported by the driver.

This extension removes the admin requirement on the list-nodes operation.
This allows drm_ras nodes to be discovered by userspace programs for
drivers that do not necessarily require admin privileges, like qaic.

The new drm_ras telemetry interface is implemented by the qaic driver,
which exposes the telemetry fields to userspace and enforces filesystem-
esque permission checks on telemetry operations in its telemetry_pre
callback.

Changes in v2:
 - Address Sashiko comments:
    - Initialize certain stack variables in drm_ras.c.
    - Added attribute guards (GENL_REQ_ATTR_CHECK) in telemetry doits.
    - Added a valid node check in drm_ras_nl_pre_telemetry.
    - Fixed improper node callback in telemetry_set.
    - Now registering drm_ras node after MHI initialization.
    - Now removing drm_ras node before freeing MHI controller.
    - Added scoped_with_init_fs guard to qaic_telemetry_pre's inode check.
    - Fixed improper kfree in qaic_drm_ras_register_node.
- Changed telemetry value attribute to sint and dropped padding attribute.
- Updated documentation in drm_ras.yaml.
- Renamed telemetry read/write to get/set.
- Added dumpit for gettable and settable telemetry values.
- Made telemetry_set optional and added admin-perm for it.
- Specified ynl file regeneration in commit message for patch 2.

Link to v1: https://lore.kernel.org/all/20261009173152.2436195-1-zachary.mckevitt@oss.qualcomm.com/

Zack McKevitt (3):
  drm/drm_ras: Remove admin-perm flag from list-nodes operation
  drm/drm_ras: Extend DRM RAS interface to include telemetry nodes
  accel/qaic: Add callbacks for DRM RAS netlink telemetry

 Documentation/netlink/specs/drm_ras.yaml |  83 +++-
 drivers/accel/qaic/Makefile              |   1 +
 drivers/accel/qaic/qaic.h                |  19 +
 drivers/accel/qaic/qaic_drv.c            |  22 +
 drivers/accel/qaic/qaic_telemetry.c      | 513 +++++++++++++++++++++++
 drivers/accel/qaic/qaic_telemetry.h      |  18 +
 drivers/gpu/drm/drm_ras.c                | 310 +++++++++++++-
 drivers/gpu/drm/drm_ras_nl.c             |  55 ++-
 drivers/gpu/drm/drm_ras_nl.h             |   9 +
 include/drm/drm_ras.h                    |  57 +++
 include/uapi/drm/drm_ras.h               |  19 +-
 include/uapi/drm/qaic_accel.h            |  28 ++
 12 files changed, 1117 insertions(+), 17 deletions(-)
 create mode 100644 drivers/accel/qaic/qaic_telemetry.c
 create mode 100644 drivers/accel/qaic/qaic_telemetry.h

-- 
2.43.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-10-30 20:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 20:29 [PATCH v2 0/3] Extend drm_ras for qaic telemetry Zack McKevitt
2026-10-29 20:29 ` [PATCH v2 1/3] drm/drm_ras: Remove admin-perm flag from list-nodes operation Zack McKevitt
2026-10-30 16:37   ` Jeff Hugo
2026-10-29 20:29 ` [PATCH v2 2/3] drm/drm_ras: Extend DRM RAS interface to include telemetry nodes Zack McKevitt
2026-10-30 16:45   ` Jeff Hugo
2026-10-30 20:30   ` sashiko-bot
2026-10-29 20:30 ` [PATCH v2 3/3] accel/qaic: Add callbacks for DRM RAS netlink telemetry Zack McKevitt
2026-10-30 17:06   ` Jeff Hugo
2026-10-30 20:30   ` sashiko-bot
2026-10-30 16:36 ` [PATCH v2 0/3] Extend drm_ras for qaic telemetry Jeff Hugo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.