Lines Matching full:cma
25 #include <linux/cma.h>
67 static struct cma *fadump_cma;
70 * fadump_cma_init() - Initialize CMA area from a fadump reserved memory
72 * This function initializes CMA area from fadump reserved memory.
75 * Initialize only the area equivalent to boot memory size for CMA use.
77 * to CMA and pages for those will stay reserved. boot memory size is
78 * aligned per CMA requirement to satisy cma_init_reserved_mem() call.
91 * Do not use CMA if user has provided fadump=nocma kernel parameter. in fadump_cma_init()
100 * Here we give the aligned chunk of this reserved memory to CMA. in fadump_cma_init()
111 pr_warn("%s: Too less memory to give to CMA\n", __func__); in fadump_cma_init()
117 pr_err("Failed to init cma area for firmware-assisted dump,%d\n", rc); in fadump_cma_init()
119 * Though the CMA init has failed we still have memory in fadump_cma_init()
128 * If CMA activation fails, keep the pages reserved, instead of in fadump_cma_init()
134 * So we now have successfully initialized cma area for fadump. in fadump_cma_init()
136 pr_info("Initialized [0x%llx, %luMB] cma area from [0x%lx, %luMB] " in fadump_cma_init()