linux/drivers/gpu/drm/v3d
Maíra Canal 509433d814
drm/v3d: Expose the total GPU usage stats on sysfs
The previous patch exposed the accumulated amount of active time per
client for each V3D queue. But this doesn't provide a global notion of
the GPU usage.

Therefore, provide the accumulated amount of active time for each V3D
queue (BIN, RENDER, CSD, TFU and CACHE_CLEAN), considering all the jobs
submitted to the queue, independent of the client.

This data is exposed through the sysfs interface, so that if the
interface is queried at two different points of time the usage percentage
of each of the queues can be calculated.

Co-developed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Signed-off-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Acked-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230905213416.1290219-3-mcanal@igalia.com
2023-11-06 10:09:29 -03:00
..
Kconfig drm/v3d: Add support for bcm2711 2022-06-12 22:10:50 -01:00
Makefile drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_bo.c drm/gem-shmem: Set vm_ops in static initializer 2022-02-14 09:42:01 +01:00
v3d_debugfs.c drm/v3d: fix up register addresses for V3D 7.x 2023-11-02 08:54:39 -03:00
v3d_drv.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_drv.h drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_fence.c
v3d_gem.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_irq.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_mmu.c drm: v3d: fix common struct sg_table related issues 2020-09-10 08:18:35 +02:00
v3d_perfmon.c drm/v3d: add missing mutex_destroy 2022-11-10 11:49:40 -01:00
v3d_regs.h drm/v3d: fix up register addresses for V3D 7.x 2023-11-02 08:54:39 -03:00
v3d_sched.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_sysfs.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_trace_points.c
v3d_trace.h