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

Commit 9d57d42d authored by Kyle Piefer's avatar Kyle Piefer
Browse files

msm: kgsl: Prevent dual ownership of GMU counters



The last two XO clock-based GMU power counters are
owned by the GMU firmware. Mark them as broken to
prevent KGSL from using them and causing dual
ownership problems.

Change-Id: I481f850153cbbce7ccf149e032c68e37cc112dac
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent dd5080ee
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2400,11 +2400,17 @@ static struct adreno_perfcount_register a6xx_pwrcounters_gpmu[] = {
		A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_3_L,
		A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_3_H, -1,
		A6XX_GMU_CX_GMU_POWER_COUNTER_SELECT_0, },
	{ KGSL_PERFCOUNTER_NOT_USED, 0, 0,
	/*
	 * Both A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_4 and
	 * A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_5 are owned
	 * by the GMU. Mark them as broken so there is no
	 * dual ownership.
	 */
	{ KGSL_PERFCOUNTER_BROKEN, 0, 0,
		A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_4_L,
		A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_4_H, -1,
		A6XX_GMU_CX_GMU_POWER_COUNTER_SELECT_1, },
	{ KGSL_PERFCOUNTER_NOT_USED, 0, 0,
	{ KGSL_PERFCOUNTER_BROKEN, 0, 0,
		A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_5_L,
		A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_5_H, -1,
		A6XX_GMU_CX_GMU_POWER_COUNTER_SELECT_1, },