Re: [rfc 3/6] dma-remap: wire up the atomic pools depending on gfp mask

2020-03-05 Thread Christoph Hellwig
On Sun, Mar 01, 2020 at 04:05:16PM -0800, David Rientjes wrote: > > When allocating non-blockable memory, determine the optimal gfp mask of > the device and use the appropriate atomic pool. > > The coherent DMA mask will remain the same between allocation and free > and, thus, memory will be

[rfc 3/6] dma-remap: wire up the atomic pools depending on gfp mask

2020-03-01 Thread David Rientjes via iommu
When allocating non-blockable memory, determine the optimal gfp mask of the device and use the appropriate atomic pool. The coherent DMA mask will remain the same between allocation and free and, thus, memory will be freed to the same atomic pool it was allocated from. Signed-off-by: David