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

Commit 85a13391 authored by Tarun Karra's avatar Tarun Karra
Browse files

msm: kgsl: Invalidate TLB and SMMU caches after GPU Power collapse



When gpu goes to power collapse we do not detach SMMU
on 8996 because of retention feature. When GPU comes out
of power collapse invalidate TLB and SMMU caches to reset
SMMU state as per recommendation of hardware team.

Change-Id: I53a67cdc2aad255b4f99f1708aae405542435e0c
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
parent eaa0f226
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1006,6 +1006,7 @@ static int kgsl_iommu_start(struct kgsl_mmu *mmu)
	kgsl_map_global_pt_entries(mmu->defaultpagetable);

	kgsl_iommu_enable_clk(mmu);
	KGSL_IOMMU_SET_CTX_REG(iommu, 0, TLBIALL, 1);

	/* Get the lsb value of pagetables set in the IOMMU ttbr0 register as
	 * that value should not change when we change pagetables, so while