]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm64: dma-mapping: add support for IOMMU mapper
authorMitchel Humpherys <mitchelh@codeaurora.org>
Tue, 12 Aug 2014 22:47:23 +0000 (15:47 -0700)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:39 +0000 (09:54 +0000)
commit8cebdb769b7c07b2a94adcbe3b6ef5c1ea7e9362
tree0124937d85f939f5a674bb2126d57ae4974e77e6
parent133e1f612ee39bbc7c062a79f5f17d7dd3ad1eda
arm64: dma-mapping: add support for IOMMU mapper

On systems with IOMMUs, it's useful to handle IOMMU mappings in the
dma-mapping layer. This is currently supported on arm but not arm64. Add
support in arm64 by gratuitously lifting most of the IOMMU-related stuff
from dma-mapping.c in arm.

The original arm work was done by Marek Szyprowski in [4ce63fcd919c32:
"ARM: dma-mapping: add support for IOMMU mapper"].

Change-Id: I1c3c8fe15049fe456751074398fd179ebd2ec64e
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
[forward ported from 3.14 tree]
Signed-off-by: R Sricharan <sricharan@codeaurora.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
arch/arm64/Kconfig
arch/arm64/include/asm/device.h
arch/arm64/include/asm/dma-iommu.h [new file with mode: 0644]
arch/arm64/mm/dma-mapping.c