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: Pankaj Gupta <[email protected]>
This commit is contained in:
Pankaj Gupta 2019-11-26 19:42:32 +05:30 • committed by Jordan Crouse
commit 8a4b3ccb98

View file

@ -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;
}