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

Commit ca527091 authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: kgsl: Detach IOMMU after saving perfcounters



If IOMMU is detached before saving perfcounters then perfcounter
save can cause a crash since VBIF perfcounters cannot be saved
because of TZ locking the VBIF registers on detach.

Change-Id: I9a882f7da4efbbc4c500852eac1f6cf05afd0a02
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 2595f6cf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1266,8 +1266,6 @@ static int adreno_stop(struct kgsl_device *device)

	adreno_ringbuffer_stop(adreno_dev);

	kgsl_mmu_stop(&device->mmu);

	adreno_irqctrl(adreno_dev, 0);
	kgsl_pwrctrl_irq(device, KGSL_PWRFLAGS_OFF);
	del_timer_sync(&device->idle_timer);
@@ -1280,6 +1278,7 @@ static int adreno_stop(struct kgsl_device *device)
	/* Save physical performance counter values before GPU power down*/
	adreno_perfcounter_save(adreno_dev);

	kgsl_mmu_stop(&device->mmu);
	/* Power down the device */
	kgsl_pwrctrl_disable(device);