Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75dbd41a authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Configure the A6XX GPU_BUSY perfcounter



This is needed so that all the GPU blocks contribute to
the GPU BUSY perfcounter. This is needed for proper
performance analysis of the GPU.

Change-Id: I6438b42b378fe766e4e5ae0729a754565a5b0bc7
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent d74f480e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -381,6 +381,7 @@
#define A6XX_RBBM_PERFCTR_RBBM_SEL_1             0x508
#define A6XX_RBBM_PERFCTR_RBBM_SEL_2             0x509
#define A6XX_RBBM_PERFCTR_RBBM_SEL_3             0x50A
#define A6XX_RBBM_PERFCTR_GPU_BUSY_MASKED        0x50B

#define A6XX_RBBM_ISDB_CNT                       0x533

+4 −0
Original line number Diff line number Diff line
@@ -383,6 +383,10 @@ static void a6xx_start(struct adreno_device *adreno_dev)

	adreno_vbif_start(adreno_dev, a6xx_vbif_platforms,
			ARRAY_SIZE(a6xx_vbif_platforms));

	/* Make all blocks contribute to the GPU BUSY perf counter */
	kgsl_regwrite(device, A6XX_RBBM_PERFCTR_GPU_BUSY_MASKED, 0xFFFFFFFF);

	/*
	 * Set UCHE_WRITE_THRU_BASE to the UCHE_TRAP_BASE effectively
	 * disabling L2 bypass