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

From: Nicolin Chen
Date: Tue Mar 26 2019 - 18:53:29 EST


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_size_order, false);
> - else
> + if (!page)
> page = alloc_pages(gfp, pool_size_order);

Just realized a missing change in this patch, will send v2.
Please ignore this version.