• Jordan Crouse's avatar
    drm/msm/gpu: Add per-submission statistics · 56869210
    Jordan Crouse authored
    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: default avatarJordan Crouse <jcrouse@codeaurora.org>
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    56869210
a6xx_gpu.c 27.5 KB