Merge 4.14.24 into android-4.14
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / drivers / staging / android / ion / Kconfig
CommitLineData
c30707be 1menuconfig ION
968141d2 2 bool "Ion Memory Manager"
80dd7052 3 depends on HAVE_MEMBLOCK && HAS_DMA && MMU
c30707be 4 select GENERIC_ALLOCATOR
b892bf75 5 select DMA_SHARED_BUFFER
024789ae
JS
6 ---help---
7 Chose this option to enable the ION Memory Manager,
8 used by Android to efficiently allocate buffers
9 from userspace that can be shared between drivers.
10 If you're not using Android its probably safe to
11 say N here.
c30707be 12
2f87f50b
LA
13config ION_SYSTEM_HEAP
14 bool "Ion system heap"
15 depends on ION
16 help
17 Choose this option to enable the Ion system heap. The system heap
18 is backed by pages from the buddy allocator. If in doubt, say Y.
19
20config ION_CARVEOUT_HEAP
21 bool "Ion carveout heap support"
22 depends on ION
23 help
24 Choose this option to enable carveout heaps with Ion. Carveout heaps
25 are backed by memory reserved from the system. Allocation times are
26 typically faster at the cost of memory not being used. Unless you
27 know your system has these regions, you should say N here.
28
29config ION_CHUNK_HEAP
30 bool "Ion chunk heap support"
31 depends on ION
32 help
33 Choose this option to enable chunk heaps with Ion. This heap is
34 similar in function the carveout heap but memory is broken down
35 into smaller chunk sizes, typically corresponding to a TLB size.
36 Unless you know your system has these regions, you should say N here.
37
204f6722
LA
38config ION_CMA_HEAP
39 bool "Ion CMA heap support"
54c153a0 40 depends on ION && DMA_CMA
204f6722
LA
41 help
42 Choose this option to enable CMA heaps with Ion. This heap is backed
43 by the Contiguous Memory Allocator (CMA). If your system has these
44 regions, you should say Y here.