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

Revert "cma: use MEMBLOCK_ALLOC_ANYWHERE for placing CMA regions"


This reverts commit 6308fd5399ae93e35ac381825a279996264a5f78.

As an optimization for kmap/kunmap, the page table entries may
not be completely removed on kunmap. This causes a problem
when memory is XPU protected and the CPU speculates into the
virtual address map. There are functions to remove zero
count entries for kmap calls but kmap_atomic is handled separately.
Remove CMA from highmem until an effective strategy for removing
these entries is found.

Change-Id: Ic60a34401244182442fc6d11dd0cdf986be7a335
CRs-Fixed: 467508
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 16b29b39
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,
pr_info("Found %s, memory base %lx, size %ld MiB\n", uname,
(unsigned long)base, (unsigned long)size / SZ_1M);
dma_contiguous_reserve_area(size, &base, MEMBLOCK_ALLOC_ANYWHERE, name);
dma_contiguous_reserve_area(size, &base, 0, name);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment