diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2016-08-17 14:57:51 +0200 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2016-09-15 15:29:37 +0200 |
commit | e07c0db5e84a5f1a16af8567d5fdde2ca6d2c80e (patch) | |
tree | 781ad8eeff8ea21269672fdc6ab958f49afcb21e /drivers/gpu/drm/etnaviv/etnaviv_mmu.h | |
parent | 47cf62b8e0cc19b7cf7d77f218cac0fac36289f0 (diff) | |
download | op-kernel-dev-e07c0db5e84a5f1a16af8567d5fdde2ca6d2c80e.zip op-kernel-dev-e07c0db5e84a5f1a16af8567d5fdde2ca6d2c80e.tar.gz |
drm/etnaviv: move gpu_va() to etnaviv mmu
The GPU virtual address for the command buffers differs depending on
the IOMMU version. Move the calculation of the iova into etnaviv
mmu, to enable proper dispatch.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_mmu.h')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_mmu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_mmu.h b/drivers/gpu/drm/etnaviv/etnaviv_mmu.h index 70ff1e4..0d34325 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_mmu.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_mmu.h @@ -62,6 +62,9 @@ void etnaviv_iommu_unmap_gem(struct etnaviv_iommu *mmu, struct etnaviv_vram_mapping *mapping); void etnaviv_iommu_destroy(struct etnaviv_iommu *iommu); +u32 etnaviv_iommu_get_cmdbuf_va(struct etnaviv_gpu *gpu, + struct etnaviv_cmdbuf *buf); + size_t etnaviv_iommu_dump_size(struct etnaviv_iommu *iommu); void etnaviv_iommu_dump(struct etnaviv_iommu *iommu, void *buf); |