drm/msm/dpu: set geometry for iommu domain
authorJeykumar Sankaran <jsanka@codeaurora.org>
Tue, 27 Nov 2018 23:58:13 +0000 (15:58 -0800)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:05:27 +0000 (13:05 -0500)
Specify geometry for DPU iommu domain which sets
the address space for gem allocations.

Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Suggested-by: Jordan Crouse <jcrouse@codeaurora.org>
Suggested-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Acked-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c

index 985c855796ae0b3a7eb62e61562db7af51507177..b57977f30274ac939804ca5cba6c9da4b8ff455d 100644 (file)
@@ -788,6 +788,9 @@ static int _dpu_kms_mmu_init(struct dpu_kms *dpu_kms)
        if (!domain)
                return 0;
 
+       domain->geometry.aperture_start = 0x1000;
+       domain->geometry.aperture_end = 0xffffffff;
+
        aspace = msm_gem_address_space_create(dpu_kms->dev->dev,
                        domain, "dpu1");
        if (IS_ERR(aspace)) {