drm/tegra: Support kernel mappings with IOMMU
authorArto Merilainen <amerilainen@nvidia.com>
Tue, 8 Nov 2016 17:51:34 +0000 (19:51 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 11 Nov 2016 14:34:49 +0000 (15:34 +0100)
commit7ecada3cc44798c88d2c3deed38746b9a7a9b746
treecaf41e782c5b52fbd45dc3ca4d8cb0e24180c122
parentd4b5781890b9329b9e7720f14d3eeb5661348535
drm/tegra: Support kernel mappings with IOMMU

host1x command buffer patching requires that the buffer object can be
mapped into kernel address space. However, the recent addition of IOMMU
support did not account for this requirement. Therefore host1x engines
cannot be used if IOMMU is enabled.

This patch implements kmap, kunmap, mmap and munmap functions to host1x
buffer objects.

Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c