drm/etnaviv: mmuv2: don't map zero page
authorLucas Stach <l.stach@pengutronix.de>
Mon, 15 Oct 2018 12:02:40 +0000 (14:02 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 11 Feb 2019 10:49:35 +0000 (11:49 +0100)
Keep the page at address 0 as faulting to catch any potential state
setup issues early.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c

index f1c88d8..f794e04 100644 (file)
@@ -320,8 +320,8 @@ etnaviv_iommuv2_domain_alloc(struct etnaviv_gpu *gpu)
        domain = &etnaviv_domain->base;
 
        domain->dev = gpu->dev;
-       domain->base = 0;
-       domain->size = (u64)SZ_1G * 4;
+       domain->base = SZ_4K;
+       domain->size = (u64)SZ_1G * 4 - SZ_4K;
        domain->ops = &etnaviv_iommuv2_ops;
 
        ret = etnaviv_iommuv2_init(etnaviv_domain);