[PATCH] drm/msm/adreno: fix CP cycles stat retrieval on a7xx

2024-04-09 Thread zan
From: Zan Dobersek a7xx_submit() should use the a7xx variant of the RBBM_PERFCTR_CP register for retrieving the CP cycles value before and after the submitted command stream execution. Signed-off-by: Zan Dobersek Fixes: af66706accdf ("drm/msm/a6xx: Add skeleton A7xx support") --- d

[PATCH] drm/msm/a7xx: allow writing to CP_BV counter selection registers

2024-02-29 Thread zan
From: Zan Dobersek In addition to the CP_PERFCTR_CP_SEL register range, allow writes to the CP_BV_PERFCTR_CP_SEL registers in the 0x8e0-0x8e6 range for profiling purposes of tools like fdperf and perfetto. Signed-off-by: Zan Dobersek --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 5 +++-- 1 file