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

Commit f53c187c authored by Kyle Piefer's avatar Kyle Piefer Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Conditionally disable SPTPRAC



We should only disable the SPTPRAC domain if the
GMU idle level is less than SPTP power collapse.
If the idle level is SPTP power collapse or higher,
the GMU owns this domain.

CRs-Fixed: 2085877
Change-Id: Ib24a2cfafdf2766c3bd9bd377fc660e9f2907374
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent 4033f562
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1366,7 +1366,8 @@ static int a6xx_notify_slumber(struct kgsl_device *device)
	/* Disable the power counter so that the GMU is not busy */
	kgsl_gmu_regwrite(device, A6XX_GMU_CX_GMU_POWER_COUNTER_ENABLE, 0);

	/* Turn off SPTPRAC before GMU turns off GX */
	/* Turn off SPTPRAC if we own it */
	if (gmu->idle_level < GPU_HW_SPTP_PC)
		a6xx_sptprac_disable(adreno_dev);

	if (!ADRENO_QUIRK(adreno_dev, ADRENO_QUIRK_HFI_USE_REG)) {