drm/msm/a7xx: allow writing to CP_BV counter selection registers
Subsystems (3)
PATCH 1/1 drm/msm/a7xx: allow writing to CP_BV counter selection registers
From: Zan Dobersek <[email protected]>
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 <[email protected]>
--- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/adreno/a6xx_gpu.c +3 -2
@@ -1175,8 +1175,9 @@ static const u32 a730_protect[] = {A6XX_PROTECT_NORDWR (0x00699 ,0x01e9 ),A6XX_PROTECT_NORDWR (0x008a0 ,0x0008 ),A6XX_PROTECT_NORDWR (0x008ab ,0x0024 ), -/* 0x008d0-0x008dd are unprotected on purpose for tools like perfetto */ -A6XX_PROTECT_RDONLY (0x008de ,0x0154 ), +/* 0x008d0-0x008dd and 0x008e0-0x008e6 are unprotected on purpose for tools like perfetto */ +A6XX_PROTECT_NORDWR (0x008de ,0x0001 ), +A6XX_PROTECT_RDONLY (0x008e7 ,0x014b ),A6XX_PROTECT_NORDWR (0x00900 ,0x004d ),A6XX_PROTECT_NORDWR (0x0098d ,0x00b2 ), A6XX_PROTECT_NORDWR(0x00a41, 0x01be),
Signature · 1 line
2.43.0