Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. menuconfig DMABUF_HEAPS_DEFERRED_FREE
  2. bool "DMA-BUF heaps deferred-free library"
  3. help
  4. Choose this option to enable the DMA-BUF heaps deferred-free library.
  5. menuconfig DMABUF_HEAPS_PAGE_POOL
  6. bool "DMA-BUF heaps page-pool library"
  7. help
  8. Choose this option to enable the DMA-BUF heaps page-pool library.
  9. config DMABUF_HEAPS_SYSTEM
  10. tristate "DMA-BUF System Heap"
  11. depends on DMABUF_HEAPS
  12. select DMABUF_HEAPS_PAGE_POOL
  13. help
  14. Choose this option to enable the system dmabuf heap. The system heap
  15. is backed by pages from the buddy allocator. If in doubt, say Y.
  16. config DMABUF_HEAPS_CMA
  17. tristate "DMA-BUF CMA Heap"
  18. depends on DMABUF_HEAPS && DMA_CMA
  19. help
  20. Choose this option to enable dma-buf CMA heap. This heap is backed
  21. by the Contiguous Memory Allocator (CMA). If your system has these
  22. regions, you should say Y here.
  23. config QCOM_DMABUF_HEAPS
  24. tristate "QCOM DMA-BUF Heaps"
  25. depends on DMABUF_HEAPS
  26. help
  27. Choose this option to build the dma-buf heap module. Other
  28. heaps can subsequently be compiled into this module by enabling
  29. the appropriate defconfig option.
  30. If in doubt, say M here.
  31. config QCOM_DMABUF_HEAPS_SYSTEM
  32. bool "QCOM DMA-BUF System Heap"
  33. depends on QCOM_DMABUF_HEAPS
  34. help
  35. Choose this option to build the QCOM DMA-BUF system
  36. heap. This heap combines the built-in system heap
  37. along with other optimizatons. If in doubt, say Y
  38. here.
  39. config QCOM_DMABUF_HEAPS_PAGE_POOL_REFILL
  40. bool "QCOM DMA-BUF Page Pool Refill"
  41. depends on QCOM_DMABUF_HEAPS_SYSTEM
  42. help
  43. Choose this option to enable the page pool auto refill
  44. feature for the system heap's page pools. When enabled,
  45. a thread is created which wakes up to refill the page pools
  46. when they fall below a particular threshold, which in turn
  47. results in smaller allocation latencies. If in doubt, say Y
  48. here.
  49. config QCOM_DMABUF_HEAPS_SYSTEM_SECURE
  50. bool "QCOM DMA-BUF System Secure Heap"
  51. depends on QCOM_DMABUF_HEAPS && QCOM_SECURE_BUFFER
  52. depends on QCOM_DMABUF_HEAPS_SYSTEM
  53. help
  54. Choose this option to build the QCOM DMA-BUF system
  55. secure heap. This heap, which combines the built-in
  56. system heap along with other optimizations, assigns
  57. memory that is secure by default. If in doubt, say Y
  58. here.
  59. config QCOM_DMABUF_HEAPS_SYSTEM_UNCACHED
  60. bool "QCOM DMA-BUF Uncached System Heap"
  61. depends on QCOM_DMABUF_HEAPS && QCOM_DMABUF_HEAPS_SYSTEM
  62. help
  63. Choose this option to create an uncached QCOM DMA-BUF
  64. system heap. This heap is equivalent to our system heap,
  65. such that the memory is mapped as uncached. If in doubt,
  66. say Y here.
  67. config QCOM_DMABUF_HEAPS_CMA
  68. bool "QCOM DMA-BUF CMA Heap"
  69. depends on QCOM_DMABUF_HEAPS && DMA_CMA
  70. help
  71. Choose this option to build the QCOM DMA-BUF CMA heap.
  72. If in doubt, say Y here.
  73. config QCOM_DMABUF_HEAPS_CARVEOUT
  74. bool "QCOM dma-buf Carveout Heap"
  75. depends on QCOM_DMABUF_HEAPS
  76. depends on ARCH_SPARSEMEM_ENABLE
  77. help
  78. Choose this option to build the QCOM DMA-BUF Carveout heap.
  79. If in doubt, say Y here.
  80. config QCOM_DMABUF_HEAPS_UBWCP
  81. bool "QCOM dma-buf UBWC-P Heap"
  82. depends on QCOM_DMABUF_HEAPS_SYSTEM
  83. help
  84. Choose this option to build the QCOM DMA-BUF UBWC-P heap.
  85. The heap itself is backed by system heap memory and works
  86. in tandem with the UBWC-P driver.
  87. If in doubt, say Y here.
  88. config QCOM_DMABUF_HEAPS_UBWCP_MOVABLE
  89. bool "QCOM dma-buf UBWC-P Movable Heap"
  90. depends on QCOM_DMABUF_HEAPS_UBWCP
  91. depends on QCOM_DMABUF_HEAPS_SYSTEM_MOVABLE
  92. help
  93. Choose this option to build the QCOM DMA-BUF UBWC-P
  94. movable heap. The heap is backed by qcom,system-movable
  95. which itself is backed by the system heap memory and works
  96. in tandem with the UBWC-P driver.
  97. If in doubt, say N here.
  98. config QCOM_DMABUF_HEAPS_TUI_CARVEOUT
  99. bool "QCOM DMA-BUF TUI Carveout Heap"
  100. depends on QCOM_DMABUF_HEAPS
  101. help
  102. Choose this option to build the QCOM Trusted UI carvout heap.
  103. This heap is controlled from an ioctl, and memory is transferred
  104. to it from the Primary VM. Not GKI-Compatible as it cannot
  105. be built as a module.
  106. config QCOM_DMABUF_HEAPS_SYSTEM_MOVABLE
  107. bool "QCOM dma-buf system-movable heap"
  108. depends on QCOM_DMABUF_HEAPS_SYSTEM
  109. help
  110. Choose this option to build QCOM DMA-BUF SYSTEM-MOVABLE heap.
  111. This heap itself is backed by the system heap memory and
  112. works in tandem with the system-movable driver to be able to
  113. lend memory from the movable zone.
  114. If in doubt, say N here.
  115. config RBIN
  116. bool "DMA-BUF RBIN Samsung Heap"
  117. depends on DMABUF_HEAPS && CLEANCACHE
  118. default m
  119. help
  120. Choose this option to enable dma-buf rbin heap for samsung.
  121. This heap supports both dmabuf allocation for camera and
  122. operations for cleancache backend.