arm64: Implement coherent DMA API based on swiotlb
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 21 May 2013 16:35:19 +0000 (17:35 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 16 Apr 2014 20:35:43 +0000 (21:35 +0100)
commit184fd2a86928754500ebdbf4b58fd5e3ea20128e
treee5e3bcd5130af688a9abb33d539bd99c29a9222b
parente816f573ecb2aeb35032cec7f57fe37f224fd979
arm64: Implement coherent DMA API based on swiotlb

This patch adds support for DMA API cache maintenance on SoCs without
hardware device cache coherency.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 7363590d2c4691593fd280f94b3deaeb5e83dbbd)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/arm64/include/asm/dma-mapping.h (due to Xen)
arch/arm64/include/asm/cacheflush.h
arch/arm64/include/asm/dma-mapping.h
arch/arm64/mm/cache.S
arch/arm64/mm/dma-mapping.c