diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2019-08-02 15:19:38 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2019-08-15 12:58:59 +0300 |
commit | 17eae23b08207a8954f77ca74caeaeb72a04da67 (patch) | |
tree | 42969300b67d7c90bf9a0d68a5246c8a4383cd97 /drivers/gpu/drm/etnaviv/etnaviv_gem.c | |
parent | edb5ff07ef67962b81ea7abb716a74ef0a491ca1 (diff) | |
download | linux-17eae23b08207a8954f77ca74caeaeb72a04da67.tar.xz |
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_gem.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.c b/drivers/gpu/drm/etnaviv/etnaviv_gem.c index b9354f2297d4..8c62c5e0a494 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem.c @@ -308,7 +308,8 @@ struct etnaviv_vram_mapping *etnaviv_gem_mapping_get( mapping->use = 1; ret = etnaviv_iommu_map_gem(mmu_context, etnaviv_obj, - mmu_context->global->memory_base, mapping); + mmu_context->global->memory_base, + mapping, 0); if (ret < 0) { etnaviv_iommu_context_put(mmu_context); kfree(mapping); |