lima: support performance counters
This adds support for querying performance counters on the Mali Utgard.
There are performance counters for the pp, gp and l2 cache cores.
The events are passed from user space, through the
GL_AMD_performance_monitor OpenGL extension.
Signed-off-by:
Erico Nunes <nunes.erico@gmail.com>
- drivers/gpu/drm/lima/Makefile 1 addition, 0 deletionsdrivers/gpu/drm/lima/Makefile
- drivers/gpu/drm/lima/lima_device.h 2 additions, 0 deletionsdrivers/gpu/drm/lima/lima_device.h
- drivers/gpu/drm/lima/lima_drv.c 18 additions, 0 deletionsdrivers/gpu/drm/lima/lima_drv.c
- drivers/gpu/drm/lima/lima_drv.h 35 additions, 0 deletionsdrivers/gpu/drm/lima/lima_drv.h
- drivers/gpu/drm/lima/lima_gp.c 44 additions, 0 deletionsdrivers/gpu/drm/lima/lima_gp.c
- drivers/gpu/drm/lima/lima_l2_cache.c 40 additions, 0 deletionsdrivers/gpu/drm/lima/lima_l2_cache.c
- drivers/gpu/drm/lima/lima_l2_cache.h 3 additions, 0 deletionsdrivers/gpu/drm/lima/lima_l2_cache.h
- drivers/gpu/drm/lima/lima_perfmon.c 141 additions, 0 deletionsdrivers/gpu/drm/lima/lima_perfmon.c
- drivers/gpu/drm/lima/lima_pp.c 49 additions, 2 deletionsdrivers/gpu/drm/lima/lima_pp.c
- drivers/gpu/drm/lima/lima_regs.h 3 additions, 1 deletiondrivers/gpu/drm/lima/lima_regs.h
- drivers/gpu/drm/lima/lima_sched.c 10 additions, 0 deletionsdrivers/gpu/drm/lima/lima_sched.c
- drivers/gpu/drm/lima/lima_sched.h 2 additions, 0 deletionsdrivers/gpu/drm/lima/lima_sched.h
- include/uapi/drm/lima_drm.h 31 additions, 0 deletionsinclude/uapi/drm/lima_drm.h