diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2016-06-13 19:28:42 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2016-06-15 12:18:39 +0300 |
commit | 13c34fe518624e27589827aa49f68f5f38c95f11 (patch) | |
tree | 589f158dc32bf34acee4827e5d9d2bbf01e96d05 /drivers/gpu/drm/etnaviv/etnaviv_iommu.c | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) | |
download | linux-13c34fe518624e27589827aa49f68f5f38c95f11.tar.xz |
drm/etnaviv: initialize iommu domain page size
Since d16e0faab91 (iommu: Allow selecting page sizes per domain) the
iommu core demands the page size to be set per domain, otherwise any
mapping attempts will be dropped. Make sure to set a valid page size
for the etnaviv iommu.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_iommu.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_iommu.c b/drivers/gpu/drm/etnaviv/etnaviv_iommu.c index 522cfd447892..16353ee81651 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_iommu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_iommu.c @@ -225,6 +225,7 @@ struct iommu_domain *etnaviv_iommu_domain_alloc(struct etnaviv_gpu *gpu) etnaviv_domain->domain.type = __IOMMU_DOMAIN_PAGING; etnaviv_domain->domain.ops = &etnaviv_iommu_ops.ops; + etnaviv_domain->domain.pgsize_bitmap = SZ_4K; etnaviv_domain->domain.geometry.aperture_start = GPU_MEM_START; etnaviv_domain->domain.geometry.aperture_end = GPU_MEM_START + PT_ENTRIES * SZ_4K - 1; |