]> git.baikalelectronics.ru Git - kernel.git/commit
ARM/dma-mapping: use dma-direct unconditionally
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Apr 2022 08:28:28 +0000 (10:28 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 7 Jul 2022 16:18:57 +0000 (18:18 +0200)
commit80f7d969b0dfb8f934dee34e6dac905abca25a8a
tree214562bf07bea887ba1d78e67ff27835ac74e240
parentb3ddbe3cb55e8cbe53a51237324f706746d3d7d2
ARM/dma-mapping: use dma-direct unconditionally

Use dma-direct unconditionally on arm.  It has already been used for
some time for LPAE and nommu configurations.

This mostly changes the streaming mapping implementation and the (simple)
coherent allocator for device that are DMA coherent.  The existing
complex allocator for uncached mappings for non-coherent devices is still
used as is using the arch_dma_alloc/arch_dma_free hooks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Andre Przywara <andre.przywara@arm.com> [highbank]
Tested-by: Marc Zyngier <maz@kernel.org>
arch/arm/Kconfig
arch/arm/include/asm/dma-mapping.h [deleted file]
arch/arm/mach-highbank/highbank.c
arch/arm/mach-mvebu/coherency.c
arch/arm/mm/dma-mapping.c