]> asedeno.scripts.mit.edu Git - linux.git/commit
parisc: don't set ARCH_NO_COHERENT_DMA_MMAP
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2019 11:12:37 +0000 (14:12 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Sep 2019 09:13:18 +0000 (11:13 +0200)
commit5128da323514d1e4260a26f8284c26bc09f97f40
tree1ba917cc0875f2aba48809d3264f5926941bc11e
parent07d841a625bc5faee167adc296d04cbca7779703
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>
arch/parisc/Kconfig
drivers/parisc/ccio-dma.c
drivers/parisc/sba_iommu.c