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

Commit b607f427 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Vote GPU bandwidth and frequency together"

parents 1c587de1 3c704847
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -436,6 +436,7 @@ int gmu_dcvs_set(struct gmu_device *gmu,
	struct kgsl_device *device = container_of(gmu, struct kgsl_device, gmu);
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);
	struct adreno_gpudev *gpudev = ADRENO_GPU_DEVICE(adreno_dev);
	struct kgsl_pwrctrl *pwr = &device->pwrctrl;
	int perf_idx = INVALID_DCVS_IDX, bw_idx = INVALID_DCVS_IDX;

	if (gpu_pwrlevel < gmu->num_gpupwrlevels)
@@ -448,6 +449,10 @@ int gmu_dcvs_set(struct gmu_device *gmu,
		(bw_idx == INVALID_DCVS_IDX))
		return -EINVAL;

	if (bw_idx == INVALID_DCVS_IDX)
		/* Use default BW, algorithm changes on V2 */
		bw_idx = pwr->pwrlevels[gpu_pwrlevel].bus_freq;

	if (ADRENO_QUIRK(adreno_dev, ADRENO_QUIRK_HFI_USE_REG))
		return gpudev->rpmh_gpu_pwrctrl(adreno_dev,
			GMU_DCVS_NOHFI, perf_idx, bw_idx);