Re: [PATCH v5 09/16] drm/msm: Add per-context perfcntr state
From: Dmitry Baryshkov
Date: Wed May 13 2026 - 15:15:37 EST
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 <robin.clark@xxxxxxxxxxxxxxxx>
> ---
> 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 <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry