On Thu, Apr 21, 2022 at 9:42 AM Christoph Hellwig <hch@xxxxxx> wrote: > > 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@xxxxxx> > --- > arch/arm/Kconfig | 4 +- > arch/arm/include/asm/dma-mapping.h | 24 -- > arch/arm/mach-highbank/highbank.c | 2 +- > arch/arm/mach-mvebu/coherency.c | 2 +- > arch/arm/mm/dma-mapping.c | 365 ++--------------------------- > 5 files changed, 19 insertions(+), 378 deletions(-) > delete mode 100644 arch/arm/include/asm/dma-mapping.h The diffstat looks really nice! I can't really tell from looking at the code if this is an equivalent conversion, so I have to trust you on that. I did make sure this passes the basic tests on kernelci.org, which tests a large number of machines, which is a good sign. Tested-by: Arnd Bergmann <arnd@xxxxxxxx>