summaryrefslogtreecommitdiff
path: root/arch/sh/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-14 15:18:56 +0300
committerRich Felker <dalias@libc.org>2020-08-15 05:05:18 +0300
commit6dfdf673ccb24dccc95b342235cac3e585c5af34 (patch)
tree4e71ae9c3bc684cf86ceea9c9626291b0e19d9e1 /arch/sh/Kconfig
parentcd57d07b1e4e08f95a27b59253b5c8a46abf4f29 (diff)
downloadlinux-6dfdf673ccb24dccc95b342235cac3e585c5af34.tar.xz
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/Kconfig2
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