Skip to content
Snippets Groups Projects
Commit d98849af authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code


DMA_ATTR_NO_KERNEL_MAPPING is generally implemented by allocating
normal cacheable pages or CMA memory, and then returning the page
pointer as the opaque handle.  Lift that code from the xtensa and
generic dma remapping implementations into the generic dma-direct
code so that we don't even call arch_dma_alloc for these allocations.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent c2f2124e
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment