diff options
author | Christoph Hellwig | 2020-07-14 14:18:56 +0200 |
---|---|---|
committer | Rich Felker | 2020-08-14 22:05:18 -0400 |
commit | 6dfdf673ccb24dccc95b342235cac3e585c5af34 (patch) | |
tree | 4e71ae9c3bc684cf86ceea9c9626291b0e19d9e1 /arch/sh/Kconfig | |
parent | cd57d07b1e4e08f95a27b59253b5c8a46abf4f29 (diff) |
sh: use the generic dma coherent remap allocator
This switches to using common code for the DMA allocations, including
potential use of the CMA allocator if configured.
Switching to the generic code enables DMA allocations from atomic
context, which is required by the DMA API documentation, and also
adds various other minor features drivers start relying upon. It
also makes sure we have on tested code base for all architectures
that require uncached pte bits for coherent DMA allocations.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 7082a4a499fd..c315cc3d7017 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -137,7 +137,9 @@ config DMA_COHERENT config DMA_NONCOHERENT def_bool !NO_DMA && !DMA_COHERENT + select ARCH_HAS_DMA_PREP_COHERENT select ARCH_HAS_SYNC_DMA_FOR_DEVICE + select DMA_DIRECT_REMAP config PGTABLE_LEVELS default 3 if X2TLB |