msm: kgsl: LPAC is using incorrect pagetable

We are incorrectly using the default pagetable for LPAC when per-process
page tables are disabled. Create a separate pagetable for LPAC.

Change-Id: I93b9c764fe91260b8b27c9b2d847429d1595a839
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
This commit is contained in:
Raghu Ananya Arabolu 2020-03-24 11:55:26 -07:00
commit 803861c144

View file

@ -1383,7 +1383,8 @@ static struct kgsl_pagetable *kgsl_iommu_getpagetable(struct kgsl_mmu *mmu,
{
struct kgsl_pagetable *pt;
if (!kgsl_mmu_is_perprocess(mmu) && (name != KGSL_MMU_SECURE_PT)) {
if (!kgsl_mmu_is_perprocess(mmu) && (name != KGSL_MMU_SECURE_PT) &&
(name != KGSL_MMU_GLOBAL_LPAC_PT)) {
name = KGSL_MMU_GLOBAL_PT;
if (mmu->defaultpagetable != NULL)
return mmu->defaultpagetable;