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

Commit 136a5c29 authored by Jeremy Gebben's avatar Jeremy Gebben
Browse files

msm: kgsl: fix soft reset sequence



We need to trigger soft reset before writing registers
rather than after.

Change-Id: If7bc5b1b846d8a5a8f25d336d2ca63bb215e3124
Signed-off-by: default avatarJeremy Gebben <jgebben@codeaurora.org>
parent 4112deb8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1387,6 +1387,10 @@ static int _adreno_start(struct adreno_device *adreno_dev)
	/* Set the bit to indicate that we've just powered on */
	set_bit(ADRENO_DEVICE_PWRON, &adreno_dev->priv);

	/* Soft reset the GPU if a regulator is stuck on*/
	if (regulator_left_on)
		_soft_reset(adreno_dev);

	status = kgsl_mmu_start(device);
	if (status)
		goto error_pwr_off;
@@ -1412,10 +1416,6 @@ static int _adreno_start(struct adreno_device *adreno_dev)
		goto error_mmu_off;
	}

	/* Soft reset GPU if regulator is stuck on*/
	if (regulator_left_on)
		_soft_reset(adreno_dev);

	if (adreno_dev->perfctr_pwr_lo == 0) {
		int ret = adreno_perfcounter_get(adreno_dev,
			KGSL_PERFCOUNTER_GROUP_PWR, 1,