aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-06 07:12:37 -0400
committerChristoph Hellwig <hch@lst.de>2019-09-04 05:13:18 -0400
commit5128da323514d1e4260a26f8284c26bc09f97f40 (patch)
tree1ba917cc0875f2aba48809d3264f5926941bc11e /arch/parisc
parent07d841a625bc5faee167adc296d04cbca7779703 (diff)
parisc: don't set ARCH_NO_COHERENT_DMA_MMAP
parisc is the only architecture that sets ARCH_NO_COHERENT_DMA_MMAP when an MMU is enabled. AFAIK this is because parisc CPUs use VIVT caches, which means exporting normally cachable memory to userspace is relatively dangrous due to cache aliasing. But normally cachable memory is only allocated by dma_alloc_coherent on parisc when using the sba_iommu or ccio_iommu drivers, so just remove the .mmap implementation for them so that we don't have to set ARCH_NO_COHERENT_DMA_MMAP, which I plan to get rid of. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/Kconfig1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 6d732e451071..e9dd88b7f81e 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
@@ -52,7 +52,6 @@ config PARISC
52 select GENERIC_SCHED_CLOCK 52 select GENERIC_SCHED_CLOCK
53 select HAVE_UNSTABLE_SCHED_CLOCK if SMP 53 select HAVE_UNSTABLE_SCHED_CLOCK if SMP
54 select GENERIC_CLOCKEVENTS 54 select GENERIC_CLOCKEVENTS
55 select ARCH_NO_COHERENT_DMA_MMAP
56 select CPU_NO_EFFICIENT_FFS 55 select CPU_NO_EFFICIENT_FFS
57 select NEED_DMA_MAP_STATE 56 select NEED_DMA_MAP_STATE
58 select NEED_SG_DMA_LENGTH 57 select NEED_SG_DMA_LENGTH