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

Commit 4b67db12 authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Don't use GMU for bandwidth voting on legacy targets



Legacy target's GMU firmware doesn't support bandwidth voting.
Add a check to make sure GMU is used for bandwidth voting only
on those targets where GMU firmware supports it.

Change-Id: I96ffdafe489bcb85caefbaa1fe980838fdce9cf2
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent 8d3e53c3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -117,7 +117,9 @@ bool gmu_core_scales_bandwidth(struct kgsl_device *device)
	if (device->gmu_core.type == GMU_CORE_TYPE_PCC)
		return false;
	else
		return gmu_core_gpmu_isenabled(device);
		return gmu_core_gpmu_isenabled(device) &&
		(adreno_is_a640(ADRENO_DEVICE(device)) ||
			adreno_is_a680(ADRENO_DEVICE(device)));
}

int gmu_core_start(struct kgsl_device *device)