Skip to content
Snippets Groups Projects
Commit a9bf6e0c authored by Laura Abbott's avatar Laura Abbott Committed by Stephen Boyd
Browse files

cma: use MEMBLOCK_ALLOC_ANYWHERE for placing CMA regions


MEMBLOCK_ALLOC_ANYWHERE allocates blocks from anywhere,
including highmem. Use this flag to allow CMA regions to
be placed in highmem as opposed to lowmem.

Change-Id: Id5fa36a96e46d60f0e898d764a1f4c8a0a37f5f8
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 3f352c04
No related branches found
No related tags found
No related merge requests found
...@@ -224,7 +224,7 @@ int __init cma_fdt_scan(unsigned long node, const char *uname, ...@@ -224,7 +224,7 @@ int __init cma_fdt_scan(unsigned long node, const char *uname,
pr_info("Found %s, memory base %lx, size %ld MiB\n", uname, pr_info("Found %s, memory base %lx, size %ld MiB\n", uname,
(unsigned long)base, (unsigned long)size / SZ_1M); (unsigned long)base, (unsigned long)size / SZ_1M);
dma_contiguous_reserve_area(size, &base, 0, name); dma_contiguous_reserve_area(size, &base, MEMBLOCK_ALLOC_ANYWHERE, name);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment