• Christoph Hellwig's avatar
    sh: use the generic dma coherent remap allocator · 6dfdf673
    Christoph Hellwig authored
    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: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarRich Felker <dalias@libc.org>
    6dfdf673
dma-coherent.c 786 Bytes