linux/kernel/dma
Christoph Hellwig 0c3b3171ce dma-mapping: move the arm64 noncoherent alloc/free support to common code
The arm64 codebase to implement coherent dma allocation for architectures
with non-coherent DMA is a good start for a generic implementation, given
that is uses the generic remap helpers, provides the atomic pool for
allocations that can't sleep and still is realtively simple and well
tested.  Move it to kernel/dma and allow architectures to opt into it
using a config symbol.  Architectures just need to provide a new
arch_dma_prep_coherent helper to writeback an invalidate the caches
for any memory that gets remapped for uncached access.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
2018-12-01 18:07:11 +01:00
..
coherent.c
contiguous.c dma-mapping: fix panic caused by passing empty cma command line argument 2018-09-20 09:01:08 +02:00
debug.c dma-debug: Check for drivers mapping invalid addresses in dma_map_single() 2018-10-08 09:44:17 +02:00
direct.c dma-direct: reject highmem pages from dma_alloc_from_contiguous 2018-12-01 17:56:08 +01:00
Kconfig dma-mapping: move the arm64 noncoherent alloc/free support to common code 2018-12-01 18:07:11 +01:00
Makefile dma-mapping: move the remap helpers to a separate file 2018-12-01 17:58:34 +01:00
mapping.c dma-mapping: move the remap helpers to a separate file 2018-12-01 17:58:34 +01:00
remap.c dma-mapping: move the arm64 noncoherent alloc/free support to common code 2018-12-01 18:07:11 +01:00
swiotlb.c swiotlb: Skip cache maintenance on map error 2018-11-21 18:47:58 +01:00
virt.c