drm/etnaviv: move gpu_va() to etnaviv mmu
commite07c0db5e84a5f1a16af8567d5fdde2ca6d2c80e
authorLucas Stach <l.stach@pengutronix.de>
Wed, 17 Aug 2016 12:57:51 +0000 (17 14:57 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 15 Sep 2016 13:29:37 +0000 (15 15:29 +0200)
tree781ad8eeff8ea21269672fdc6ab958f49afcb21e
parent47cf62b8e0cc19b7cf7d77f218cac0fac36289f0
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>
drivers/gpu/drm/etnaviv/etnaviv_buffer.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_mmu.c
drivers/gpu/drm/etnaviv/etnaviv_mmu.h