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

Commit 71b7c9e1 authored by Deepak Kumar's avatar Deepak Kumar Committed by Raghu Ananya Arabolu
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>
Signed-off-by: default avatarRaghu Ananya Arabolu <rarabolu@codeaurora.org>
parent 9ef527fa
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -104,8 +104,12 @@ 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);
	else {
		struct adreno_device *adreno_dev = ADRENO_DEVICE(device);

		return gmu_core_gpmu_isenabled(device) &&
			   (ADRENO_GPUREV(adreno_dev) >= ADRENO_REV_A640);
	}
}

int gmu_core_start(struct kgsl_device *device)