.. | .. |
---|
| 1 | +# SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | menuconfig ION |
---|
2 | | - tristate "Ion Memory Manager" |
---|
3 | | - depends on HAVE_MEMBLOCK && HAS_DMA && MMU |
---|
| 3 | + bool "Ion Memory Manager" |
---|
| 4 | + depends on HAS_DMA && MMU |
---|
4 | 5 | select GENERIC_ALLOCATOR |
---|
5 | 6 | select DMA_SHARED_BUFFER |
---|
6 | 7 | help |
---|
.. | .. |
---|
10 | 11 | If you're not using Android its probably safe to |
---|
11 | 12 | say N here. |
---|
12 | 13 | |
---|
13 | | -config ION_PROTECTED_HEAP |
---|
14 | | - bool "Ion protected heap" |
---|
15 | | - depends on ION |
---|
16 | | - help |
---|
17 | | - Choose this option to enable the Ion protected heap. The protected |
---|
18 | | - heap is backed by pages from the gen pool allocator. |
---|
19 | | - If in doubt, say Y. |
---|
20 | | - |
---|
21 | | -config ION_SYSTEM_HEAP |
---|
22 | | - bool "Ion system heap" |
---|
23 | | - depends on ION |
---|
24 | | - help |
---|
25 | | - Choose this option to enable the Ion system heap. The system heap |
---|
26 | | - is backed by pages from the buddy allocator. If in doubt, say Y. |
---|
27 | | - |
---|
28 | | -config ION_CARVEOUT_HEAP |
---|
29 | | - bool "Ion carveout heap support" |
---|
30 | | - depends on ION |
---|
31 | | - help |
---|
32 | | - Choose this option to enable carveout heaps with Ion. Carveout heaps |
---|
33 | | - are backed by memory reserved from the system. Allocation times are |
---|
34 | | - typically faster at the cost of memory not being used. Unless you |
---|
35 | | - know your system has these regions, you should say N here. |
---|
36 | | - |
---|
37 | | -config ION_CHUNK_HEAP |
---|
38 | | - bool "Ion chunk heap support" |
---|
39 | | - depends on ION |
---|
40 | | - help |
---|
41 | | - Choose this option to enable chunk heaps with Ion. This heap is |
---|
42 | | - similar in function the carveout heap but memory is broken down |
---|
43 | | - into smaller chunk sizes, typically corresponding to a TLB size. |
---|
44 | | - Unless you know your system has these regions, you should say N here. |
---|
45 | | - |
---|
46 | | -config ION_CMA_HEAP |
---|
47 | | - bool "Ion CMA heap support" |
---|
48 | | - depends on ION && DMA_CMA |
---|
49 | | - help |
---|
50 | | - Choose this option to enable CMA heaps with Ion. This heap is backed |
---|
51 | | - by the Contiguous Memory Allocator (CMA). If your system has these |
---|
52 | | - regions, you should say Y here. |
---|
53 | | - |
---|
54 | | -config ION_FORCE_DMA_SYNC |
---|
55 | | - bool "Force ION to always DMA sync buffer memory" |
---|
56 | | - depends on ION |
---|
57 | | - help |
---|
58 | | - Force ION to DMA sync buffer memory when it is allocated and to |
---|
59 | | - always DMA sync the buffer memory on calls to begin/end cpu |
---|
60 | | - access. This makes ION DMA sync behavior similar to that of the |
---|
61 | | - older version of ION. |
---|
62 | | - We generally don't want to enable this config as it breaks the |
---|
63 | | - cache maintenance model. |
---|
64 | | - If you're not sure say N here. |
---|
| 14 | +source "drivers/staging/android/ion/heaps/Kconfig" |
---|