linux-stable/drivers/gpu/drm/v3d
Juan A. Suarez Romero 26a4dc29b7 drm/v3d: Expose performance counters to userspace
The V3D engine has several hardware performance counters that can of
interest for userspace performance analysis tools.

This exposes new ioctls to create and destroy performance monitor
objects, as well as to query the counter values.

Each created performance monitor object has an ID that can be attached
to CL/CSD submissions, so the driver enables the requested counters when
the job is submitted, and updates the performance monitor values when
the job is done.

It is up to the user to ensure all the jobs have been finished before
getting the performance monitor values. It is also up to the user to
properly synchronize BCL jobs when submitting jobs with different
performance monitors attached.

Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Cc: Emma Anholt <emma@anholt.net>
To: dri-devel@lists.freedesktop.org
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Acked-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210608111541.461991-1-jasuarez@igalia.com
2021-07-21 00:19:59 +01:00
..
Kconfig
Makefile drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_bo.c drm/shmem-helper: Use cached mappings by default 2020-11-24 09:10:21 +01:00
v3d_debugfs.c drm/v3d: Delete v3d_dev->dev 2020-04-28 15:15:52 +02:00
v3d_drv.c drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_drv.h drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_fence.c
v3d_gem.c drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_irq.c drm/v3d: Don't clear MMU control bits on exception 2021-01-06 18:38:57 +01: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: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_regs.h drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_sched.c drm/v3d: Expose performance counters to userspace 2021-07-21 00:19:59 +01:00
v3d_trace.h
v3d_trace_points.c