Re: [PATCH RFC/RFT 2/5] dma-remap: Run alloc_pages() on failure

2019-03-26 Thread Nicolin Chen
On Tue, Mar 26, 2019 at 03:49:56PM -0700, Nicolin Chen wrote: > @@ -116,7 +116,7 @@ int __init dma_atomic_pool_init(gfp_t gfp, pgprot_t prot) > if (dev_get_cma_area(NULL)) > page = dma_alloc_from_contiguous(NULL, nr_pages, >pool_si

[PATCH RFC/RFT 2/5] dma-remap: Run alloc_pages() on failure

2019-03-26 Thread Nicolin Chen
The CMA allocation will skip allocations of single pages to save CMA resource. This requires its callers to rebound those page allocations from normal area. So this patch moves the alloc_pages() call to the fallback routines. Signed-off-by: Nicolin Chen --- kernel/dma/remap.c | 2 +- 1 file cha