summaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-11-04 14:29:28 -0500
committerChristoph Hellwig <hch@lst.de>2018-12-01 12:07:11 -0500
commit0c3b3171ceccb8830c2bb5adff1b4e9b204c1450 (patch)
treec7dbe5478677405c690334e59acc392c5db86858 /arch/arm64/Kconfig
parentf0edfea8ef93ed6cc5f747c46c85c8e53e0798a0 (diff)
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>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r--arch/arm64/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 5d065acb6d10..2e645ea693ea 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -82,7 +82,7 @@ config ARM64
82 select CRC32 82 select CRC32
83 select DCACHE_WORD_ACCESS 83 select DCACHE_WORD_ACCESS
84 select DMA_DIRECT_OPS 84 select DMA_DIRECT_OPS
85 select DMA_REMAP 85 select DMA_DIRECT_REMAP
86 select EDAC_SUPPORT 86 select EDAC_SUPPORT
87 select FRAME_POINTER 87 select FRAME_POINTER
88 select GENERIC_ALLOCATOR 88 select GENERIC_ALLOCATOR