]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/v3d: Create new IOCTL to expose performance counters information
authorMaíra Canal <mcanal@igalia.com>
Sun, 12 May 2024 22:23:27 +0000 (19:23 -0300)
committerMaíra Canal <mcanal@igalia.com>
Mon, 20 May 2024 19:38:02 +0000 (16:38 -0300)
commitf33fe58298e686e7cc2d24f747c980457812b566
tree1c15a23a2a2a72da530860becfd41c46ee3b536b
parent36b75080e68b4a27ae1c40beffb3d6131f8eeeff
drm/v3d: Create new IOCTL to expose performance counters information

Userspace usually needs some information about the performance counters
available. Although we could replicate this information in the kernel
and user-space, let's use the kernel as the "single source of truth" to
avoid issues in the future (e.g. list of performance counters is updated
in user-space, but not in the kernel, generating invalid requests).

Therefore, create a new IOCTL to expose the performance counters
information, that is name, category, and description.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240512222655.2792754-5-mcanal@igalia.com
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_perfmon.c
include/uapi/drm/v3d_drm.h