summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_gpummu.c
diff options
context:
space:
mode:
authorJordan Crouse <jcrouse@codeaurora.org>2020-08-17 15:01:39 -0700
committerRob Clark <robdclark@chromium.org>2020-09-12 10:48:32 -0700
commitb145c6e65eb05e123097d726aa9d4f5b8f11c401 (patch)
tree478b366a15f9131e45b4bb07c61e14b13250bc77 /drivers/gpu/drm/msm/msm_gpummu.c
parente3c64c7221f6d85a3ba4db39a220432933d99a64 (diff)
downloadlinux-stable-b145c6e65eb05e123097d726aa9d4f5b8f11c401.tar.gz
linux-stable-b145c6e65eb05e123097d726aa9d4f5b8f11c401.tar.bz2
linux-stable-b145c6e65eb05e123097d726aa9d4f5b8f11c401.zip
drm/msm: Add support to create a local pagetable
Add support to create a io-pgtable for use by targets that support per-instance pagetables. In order to support per-instance pagetables the GPU SMMU device needs to have the qcom,adreno-smmu compatible string and split pagetables enabled. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpummu.c')
-rw-r--r--drivers/gpu/drm/msm/msm_gpummu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpummu.c b/drivers/gpu/drm/msm/msm_gpummu.c
index 310a31b05faa..aab121f4beb7 100644
--- a/drivers/gpu/drm/msm/msm_gpummu.c
+++ b/drivers/gpu/drm/msm/msm_gpummu.c
@@ -102,7 +102,7 @@ struct msm_mmu *msm_gpummu_new(struct device *dev, struct msm_gpu *gpu)
}
gpummu->gpu = gpu;
- msm_mmu_init(&gpummu->base, dev, &funcs);
+ msm_mmu_init(&gpummu->base, dev, &funcs, MSM_MMU_GPUMMU);
return &gpummu->base;
}