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