Skip to content

Commit 3f9bb60

Browse files
zdobersekrobclark
authored andcommitted
drm/msm/a7xx: allow writing to CP_BV counter selection registers
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]> Patchwork: https://patchwork.freedesktop.org/patch/580548/ [fixup a730_protect size] Signed-off-by: Rob Clark <[email protected]>
1 parent 104e548 commit 3f9bb60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/msm/adreno/a6xx_gpu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,8 +1255,9 @@ static const u32 a730_protect[] = {
12551255
A6XX_PROTECT_NORDWR(0x00699, 0x01e9),
12561256
A6XX_PROTECT_NORDWR(0x008a0, 0x0008),
12571257
A6XX_PROTECT_NORDWR(0x008ab, 0x0024),
1258-
/* 0x008d0-0x008dd are unprotected on purpose for tools like perfetto */
1259-
A6XX_PROTECT_RDONLY(0x008de, 0x0154),
1258+
/* 0x008d0-0x008dd and 0x008e0-0x008e6 are unprotected on purpose for tools like perfetto */
1259+
A6XX_PROTECT_NORDWR(0x008de, 0x0001),
1260+
A6XX_PROTECT_RDONLY(0x008e7, 0x014b),
12601261
A6XX_PROTECT_NORDWR(0x00900, 0x004d),
12611262
A6XX_PROTECT_NORDWR(0x0098d, 0x00b2),
12621263
A6XX_PROTECT_NORDWR(0x00a41, 0x01be),
@@ -1291,8 +1292,7 @@ static const u32 a730_protect[] = {
12911292
A6XX_PROTECT_RDONLY(0x1f844, 0x007b),
12921293
A6XX_PROTECT_NORDWR(0x1f860, 0x0000),
12931294
A6XX_PROTECT_NORDWR(0x1f878, 0x002a),
1294-
/* CP_PROTECT_REG[44, 46] are left untouched! */
1295-
0,
1295+
/* CP_PROTECT_REG[45, 46] are left untouched! */
12961296
0,
12971297
0,
12981298
A6XX_PROTECT_NORDWR(0x1f8c0, 0x00000),

0 commit comments

Comments
 (0)