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

Commit 2c8ea993 authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Fix GPU busy value conversion when GMU is disabled



On A6XX, the power counters are sourced from XO clock instead
of GFX3D clock irrespective of whether GMU is enabled or
disabled.

This change makes sure that correct GPU busy conversion method
is used.

Change-Id: Idf276f7207352414204d1ee2ff95cd7757ffa5e6
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent a134670c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2870,7 +2870,7 @@ static void adreno_power_stats(struct kgsl_device *device,
			gpu_busy += adj;
		}

		if (kgsl_gmu_isenabled(device)) {
		if (adreno_is_a6xx(adreno_dev)) {
			/* clock sourced from XO */
			stats->busy_time = gpu_busy * 10 / 192;
		} else {