FROMLIST: iommu: dma-iommu: use common implementation also on ARM architecture
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 19 Feb 2016 08:22:44 +0000 (09:22 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 18 Mar 2016 12:43:24 +0000 (20:43 +0800)
commite11b4aa8cdcf11c21d194e8adb7dc0819ed26bad
tree1e783530b5cebf2948fbcdcb08528eaa407ad545
parent7178c0f93e5fad7b2300e535839aecfa3b4e7ce2
FROMLIST: iommu: dma-iommu: use common implementation also on ARM architecture

This patch replaces ARM-specific IOMMU-based DMA-mapping implementation
with generic IOMMU DMA-mapping code shared with ARM64 architecture. The
side-effect of this change is a switch from bitmap-based IO address space
management to tree-based code. There should be no functional changes
for drivers, which rely on initialization from generic arch_setup_dna_ops()
interface. Code, which used old arm_iommu_* functions must be updated to
new interface.

To avoid build failed on ARCH arm,we mannually fix the following two files that
to use arch_set_dma_ops API

arch/arm/mach-highbank/highbank.c
arch/arm/mach-mvebu/coherency.c

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Conflicts:
arch/arm/mm/dma-mapping.c

Change-Id: Iffad16a7a511d50cc8e422bc61497f117279c66d
Signed-off-by: Simon <xxm@rock-chips.com>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
(am from https://patchwork.freedesktop.org/patch/74409/)
arch/arm/Kconfig
arch/arm/include/asm/device.h
arch/arm/include/asm/dma-iommu.h [deleted file]
arch/arm/include/asm/dma-mapping.h
arch/arm/mach-highbank/highbank.c
arch/arm/mach-mvebu/coherency.c
arch/arm/mm/dma-mapping.c
drivers/gpu/drm/rockchip/Kconfig
drivers/iommu/Kconfig
drivers/media/platform/Kconfig