Skip to content
Commit 9420139f authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-pool: fix coherent pool allocations for IOMMU mappings



When allocating coherent pool memory for an IOMMU mapping we don't care
about the DMA mask.  Move the guess for the initial GFP mask into the
dma_direct_alloc_pages and pass dma_coherent_ok as a function pointer
argument so that it doesn't get applied to the IOMMU case.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent a1d21081
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