arm64: Add IOMMU dma_ops
authorRobin Murphy <robin.murphy@arm.com>
Thu, 1 Oct 2015 19:13:59 +0000 (20:13 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 15 Oct 2015 14:41:37 +0000 (16:41 +0200)
commit13b8629f651164d71f4d38b821925f93ba4236c8
tree58aad7d374242e7977cbf6f523d081ba6d89793f
parent0db2e5d18f76a66ca945447d9f610bed0a94ca5a
arm64: Add IOMMU dma_ops

Taking some inspiration from the arch/arm code, implement the
arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer.

Since there is still work to do elsewhere to make DMA configuration happen
in a more appropriate order and properly support platform devices in the
IOMMU core, the device setup code unfortunately starts out carrying some
workarounds to ensure it works correctly in the current state of things.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/arm64/mm/dma-mapping.c