]> Gentwo Git Trees - linux/.git/commit
drm/v3d: Add parameter to retrieve the global number of GPU resets
authorMaíra Canal <mcanal@igalia.com>
Fri, 11 Jul 2025 15:18:31 +0000 (12:18 -0300)
committerMaíra Canal <mcanal@igalia.com>
Thu, 17 Jul 2025 14:17:27 +0000 (11:17 -0300)
commit5774b3cfdedb3624ef0d2c82cccbfd61bcb60fd5
treea50bf85413cc51f4db1e7a7748aff587e435951d
parent2650bc4007c15e05f995f472b4fc89e793162bc4
drm/v3d: Add parameter to retrieve the global number of GPU resets

The GL extension KHR_robustness uses the number of global and per-context
GPU resets to learn about graphics resets that affect a GL context. This
commit introduces a new V3D parameter to retrieve the global number of
GPU resets that have happened since the driver was probed.

To retrieve this information, user-space must use DRM_V3D_PARAM_GLOBAL_RESET_COUNTER.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://lore.kernel.org/r/20250711-v3d-reset-counter-v1-1-1ac73e9fca2d@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_sched.c
include/uapi/drm/v3d_drm.h