drm/vc4: Expose performance counters to userspace
The V3D engine has various hardware counters which might be interesting to userspace performance analysis tools. Expose new ioctls to create/destroy a performance monitor object and query the counter values of this perfmance monitor. Note that a perfomance monitor is given an ID that is only valid on the file descriptor it has been allocated from. A performance monitor can be attached to a CL submission and the driver will enable HW counters for this request and update the performance monitor values at the end of the job. Signed-off-by:Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/20180112090926.12538-1-boris.brezillon@free-electrons.com
Showing
- drivers/gpu/drm/vc4/Makefile 1 addition, 0 deletionsdrivers/gpu/drm/vc4/Makefile
- drivers/gpu/drm/vc4/vc4_drv.c 26 additions, 0 deletionsdrivers/gpu/drm/vc4/vc4_drv.c
- drivers/gpu/drm/vc4/vc4_drv.h 68 additions, 0 deletionsdrivers/gpu/drm/vc4/vc4_drv.h
- drivers/gpu/drm/vc4/vc4_gem.c 43 additions, 5 deletionsdrivers/gpu/drm/vc4/vc4_gem.c
- drivers/gpu/drm/vc4/vc4_irq.c 37 additions, 3 deletionsdrivers/gpu/drm/vc4/vc4_irq.c
- drivers/gpu/drm/vc4/vc4_perfmon.c 188 additions, 0 deletionsdrivers/gpu/drm/vc4/vc4_perfmon.c
- drivers/gpu/drm/vc4/vc4_regs.h 3 additions, 32 deletionsdrivers/gpu/drm/vc4/vc4_regs.h
- drivers/gpu/drm/vc4/vc4_v3d.c 32 additions, 32 deletionsdrivers/gpu/drm/vc4/vc4_v3d.c
- include/uapi/drm/vc4_drm.h 76 additions, 0 deletionsinclude/uapi/drm/vc4_drm.h
Loading
Please register or sign in to comment