]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm64: dma-mapping: map sg lists into the SMMU as virtually contiguous
authorMitchel Humpherys <mitchelh@codeaurora.org>
Tue, 28 Oct 2014 20:45:02 +0000 (13:45 -0700)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:40 +0000 (09:54 +0000)
commitdb92e1b357e357ac3e9e4f6ec32054016dae9193
tree6a8777e1d0bd74d6e6fa8e5728783e71dcf96fc9
parentf332371e6ed08632f07ffb9dc7dde5321c2b327a
arm64: dma-mapping: map sg lists into the SMMU as virtually contiguous

In arm_iommu_map_sg, currently we map each individual link in the given
scatterlist into the SMMU individually such that they may or may not be
virtually contiguous.  However, in most (all?) of our use cases we
actually want the entire sg list mapped into the SMMU as a single
contiguous range.  Use iommu_map_range to accomplish this.

Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
[Forward Ported this from msm3.14]
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
[added iommu_map_range in generic dma code]
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
arch/arm64/mm/dma-mapping.c