aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nds32/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-28 14:28:38 -0500
committerChristoph Hellwig <hch@lst.de>2019-06-25 14:28:06 +0200
commit6309513c1be47cd3805a6ceae60ab70285df36ae (patch)
treee65fe2b1df76a1a5c2ea8a126c7cc4d143136d90 /arch/nds32/Kconfig
parentarc: use the generic remapping allocator for coherent DMA allocations (diff)
downloadlinux-dev-6309513c1be47cd3805a6ceae60ab70285df36ae.tar.xz
linux-dev-6309513c1be47cd3805a6ceae60ab70285df36ae.zip
nds32: use the generic remapping allocator for coherent DMA allocations
Replace the code that sets up uncached PTEs with the generic vmap based remapping code. It also provides an atomic pool for allocations from non-blocking context, which we not properly supported by the existing nds32 code. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Greentime Hu <greentime@andestech.com> Reviewed-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32/Kconfig')
-rw-r--r--arch/nds32/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig
index 3299e287a477..643ea6b4bfa2 100644
--- a/arch/nds32/Kconfig
+++ b/arch/nds32/Kconfig
@@ -7,12 +7,14 @@
config NDS32
def_bool y
select ARCH_32BIT_OFF_T
+ select ARCH_HAS_DMA_PREP_COHERENT
select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_WANT_FRAME_POINTERS if FTRACE
select CLKSRC_MMIO
select CLONE_BACKWARDS
select COMMON_CLK
+ select DMA_DIRECT_REMAP
select GENERIC_ATOMIC64
select GENERIC_CPU_DEVICES
select GENERIC_CLOCKEVENTS