• Christoph Hellwig's avatar
    parisc: don't set ARCH_NO_COHERENT_DMA_MMAP · 5128da32
    Christoph Hellwig authored
    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: default avatarChristoph Hellwig <hch@lst.de>
    5128da32
ccio-dma.c 46.6 KB