]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/v3d: Add parameter to retrieve the number of GPU resets per-fd
authorMaíra Canal <mcanal@igalia.com>
Fri, 11 Jul 2025 15:18:32 +0000 (12:18 -0300)
committerMaíra Canal <mcanal@igalia.com>
Thu, 17 Jul 2025 14:17:32 +0000 (11:17 -0300)
commit769c153cfc3c6669c7b318f66c2b21ec3951fb4a
tree81fb47487c9e52dae2eb56c2380d17d6adf68a9c
parent5774b3cfdedb3624ef0d2c82cccbfd61bcb60fd5
drm/v3d: Add parameter to retrieve the number of GPU resets per-fd

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 number of GPU resets
triggered by jobs submitted through a file descriptor.

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

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://lore.kernel.org/r/20250711-v3d-reset-counter-v1-2-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