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

Commit 7623476a authored by Hareesh Gundu's avatar Hareesh Gundu Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Skip oob_perfcntr in slumber sequence



oob_perfcntr is bounded by the oob_gpu in slumber entry
sequnce. There is no impact by removing the oob_perfcntr
in this sequence. For oob_gpu and oob_perfcntr request
firmware just turns on the GX head switch. Hence skip the
oob_perfcntr request in slumber sequence, because perf
counters save will happen with the oob_gpu request.

Change-Id: I842f47a95dbb9a0bc5baf008c659d16c57c18594
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent bb143f24
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ void adreno_perfcounter_restore(struct adreno_device *adreno_dev)
 * Save the performance counter values before GPU power collapse.
 * The saved values are restored on restart.
 * This ensures physical counters are coherent across power-collapse.
 * This function must be called with the oob_gpu set request.
 */
inline void adreno_perfcounter_save(struct adreno_device *adreno_dev)
{
@@ -170,9 +171,6 @@ inline void adreno_perfcounter_save(struct adreno_device *adreno_dev)
	if (counters == NULL)
		return;

	if (gmu_core_dev_oob_set(KGSL_DEVICE(adreno_dev), oob_perfcntr))
		goto done;

	for (groupid = 0; groupid < counters->group_count; groupid++) {
		group = &(counters->groups[groupid]);

@@ -192,9 +190,6 @@ inline void adreno_perfcounter_save(struct adreno_device *adreno_dev)
								counter);
		}
	}

done:
	gmu_core_dev_oob_clear(KGSL_DEVICE(adreno_dev), oob_perfcntr);
}

static int adreno_perfcounter_enable(struct adreno_device *adreno_dev,