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

Commit 8a4b3ccb authored by Pankaj Gupta's avatar Pankaj Gupta Committed by Jordan Crouse
Browse files

msm: kgsl: Configure IFPC perf counter in platform_setup



Currently ifpc counter is not enabled because gmu core is
disabled during probe.
This patch updates the check for configuring perfctr_ifpc_lo
during platform_setup.

Change-Id: Icebfba2bef89a6411f350c230b54d67f372de132
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent 171b7a49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2319,7 +2319,7 @@ static void a6xx_platform_setup(struct adreno_device *adreno_dev)
	adreno_dev->perfctr_pwr_lo = A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_0_L;

	/* Set the counter for IFPC */
	if (gmu_core_isenabled(KGSL_DEVICE(adreno_dev)))
	if (ADRENO_FEATURE(adreno_dev, ADRENO_IFPC))
		adreno_dev->perfctr_ifpc_lo =
			A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_4_L;
}