diff options
author | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-11-21 00:08:24 +0100 |
---|---|---|
committer | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-11-21 00:11:09 +0100 |
commit | 2878a35c1dbf11ecbfcc9097bd08b111f796d86e (patch) | |
tree | fce5c49eac2b5c4144aa673945178aae494ecb13 | |
parent | 9e85a514b37ea586b04dd5fcbe6b7ba2d9ea5f07 (diff) | |
download | enea-kernel-cache-2878a35c1dbf11ecbfcc9097bd08b111f796d86e.tar.gz |
Add config fragment that enables CMA
Change-Id: Ib2f4ae8eceab2db951aaa3c8946d4a83273776df
Signed-off-by: Adrian Mangeac <Adrian.Mangeac@enea.com>
-rw-r--r-- | cfg/cma/cma_y.cfg | 21 | ||||
-rw-r--r-- | cfg/cma/cma_y.scc | 4 |
2 files changed, 25 insertions, 0 deletions
diff --git a/cfg/cma/cma_y.cfg b/cfg/cma/cma_y.cfg new file mode 100644 index 0000000..f502d05 --- /dev/null +++ b/cfg/cma/cma_y.cfg | |||
@@ -0,0 +1,21 @@ | |||
1 | CONFIG_MEMORY_ISOLATION=y | ||
2 | CONFIG_CMA=y | ||
3 | CONFIG_CMA_DEBUG=y | ||
4 | CONFIG_CMA_AREAS=7 | ||
5 | CONFIG_ZSMALLOC=m | ||
6 | # CONFIG_CMA_DEBUGFS is not set | ||
7 | # CONFIG_PGTABLE_MAPPING is not set | ||
8 | # CONFIG_ZSMALLOC_STAT is not set | ||
9 | # CONFIG_ZRAM is not set | ||
10 | CONFIG_ARCH_HAS_GIGANTIC_PAGE=y | ||
11 | CONFIG_DMA_CMA=y | ||
12 | # | ||
13 | # Default contiguous memory area size: | ||
14 | # | ||
15 | CONFIG_CMA_SIZE_MBYTES=256 | ||
16 | CONFIG_CMA_SIZE_SEL_MBYTES=y | ||
17 | # CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set | ||
18 | # CONFIG_CMA_SIZE_SEL_MIN is not set | ||
19 | # CONFIG_CMA_SIZE_SEL_MAX is not set | ||
20 | CONFIG_CMA_ALIGNMENT=8 | ||
21 | |||
diff --git a/cfg/cma/cma_y.scc b/cfg/cma/cma_y.scc new file mode 100644 index 0000000..be4797f --- /dev/null +++ b/cfg/cma/cma_y.scc | |||
@@ -0,0 +1,4 @@ | |||
1 | define KFEATURE_DESCRIPTION "Enable CMA" | ||
2 | define KFEATURE_COMPATIBILITY all | ||
3 | |||
4 | kconf non-hardware cma_y.cfg | ||