On Mon, May 11, 2026 at 05:59:22AM -0700, Rob Clark wrote:
> The upcoming PERFCNTR_CONFIG ioctl will allow for both global counter
> collection, and per-context counter reservation for local (ie. within
> a single GEM_SUBMIT ioctl) counter collection.
> 
> Any number of contexts can reserve the same counters, but we will need
> to ensure that counters reserved for local counter collection do not
> conflict with counters used for global counter collection.
> 
> So add tracking for per-context local counter reservations.
> 
> Signed-off-by: Rob Clark <[email protected]>
> ---
>  drivers/gpu/drm/msm/msm_gpu.h         |  5 +++++
>  drivers/gpu/drm/msm/msm_perfcntr.h    | 21 +++++++++++++++++++++
>  drivers/gpu/drm/msm/msm_submitqueue.c |  1 +
>  3 files changed, 27 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <[email protected]>


-- 
With best wishes
Dmitry

Reply via email to