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

Commit 6e1e2b19 authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: kgsl: Fix global pagetable use case



When using global pagetables allow the secure pagetable
to be created as a seperate table. Secure table should
always be different since it has special attributes. This
allows the system to boot up when global pagetable is used.

Change-Id: I1dee50019744594bac1875282c9727891647253b
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 7e314d1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -642,7 +642,7 @@ struct kgsl_pagetable *kgsl_mmu_getpagetable(struct kgsl_mmu *mmu,
	if (KGSL_MMU_TYPE_NONE == kgsl_mmu_type)
		return (void *)(-1);

	if (!kgsl_mmu_is_perprocess(mmu))
	if (!kgsl_mmu_is_perprocess(mmu) && (KGSL_MMU_SECURE_PT != name))
		name = KGSL_MMU_GLOBAL_PT;

	pt = kgsl_get_pagetable(name);