]> www.infradead.org Git - users/willy/linux.git/commit
drm/msm/gpu: Add per-submission statistics
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 2 Nov 2018 15:25:20 +0000 (09:25 -0600)
committerRob Clark <robdclark@gmail.com>
Mon, 3 Dec 2018 13:53:27 +0000 (08:53 -0500)
commitedfa0da5c052ddcb539c719e67a1dc99e0bb207a
tree3d2740aa23c7666cbed896dd444f018cc14ecd61
parent2d853dcd2398103db013476b4dd56e7d88e90dbb
drm/msm/gpu: Add per-submission statistics

Add infrastructure to track statistics for GPU submissions
by sampling certain perfcounters before and after a submission.

To store the statistics, the per-ring memptrs region is
expanded to include room for up to 64 entries - this should
cover a reasonable amount of inflight submissions without
worrying about losing data. The target specific code inserts
PM4 commands to sample the counters before and after
submission and store them in the data region. The CPU can
access the data after the submission retires to make sense
of the statistics and communicate them to the user.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/msm_ringbuffer.h