diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2019-08-02 14:19:38 +0200 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2019-08-15 11:58:59 +0200 |
commit | 17eae23b08207a8954f77ca74caeaeb72a04da67 (patch) | |
tree | 42969300b67d7c90bf9a0d68a5246c8a4383cd97 /drivers/gpu/drm/etnaviv/etnaviv_mmu.h | |
parent | edb5ff07ef67962b81ea7abb716a74ef0a491ca1 (diff) | |
download | lwn-17eae23b08207a8954f77ca74caeaeb72a04da67.tar.gz lwn-17eae23b08207a8954f77ca74caeaeb72a04da67.zip |
drm/etnaviv: allow to request specific virtual address for gem mapping
Allow the mapping code to request a specific virtual address for the gem
mapping. If the virtual address is zero we fall back to the old mode of
allocating a virtual address for the mapping.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_mmu.h')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_mmu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_mmu.h b/drivers/gpu/drm/etnaviv/etnaviv_mmu.h index c01491a6c4d8..d1d6902fd13b 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_mmu.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_mmu.h @@ -88,7 +88,7 @@ struct etnaviv_gem_object; int etnaviv_iommu_map_gem(struct etnaviv_iommu_context *context, struct etnaviv_gem_object *etnaviv_obj, u32 memory_base, - struct etnaviv_vram_mapping *mapping); + struct etnaviv_vram_mapping *mapping, u64 va); void etnaviv_iommu_unmap_gem(struct etnaviv_iommu_context *context, struct etnaviv_vram_mapping *mapping); |