hc
2024-08-16 a24a44ff9ca902811b99aa9663d697cf452e08ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SPDX-License-Identifier: GPL-2.0-only
menuconfig DMABUF_HEAPS_ROCKCHIP
   bool "DMA-BUF Userland Memory Heaps for RockChip"
   select DMA_SHARED_BUFFER
   help
     Choose this option to enable the RockChip DMA-BUF userland memory heaps.
     This options creates per heap chardevs in /dev/rk_dma_heap/ which
     allows userspace to allocate dma-bufs that can be shared
     between drivers.
 
config DMABUF_HEAPS_ROCKCHIP_CMA_HEAP
   tristate "DMA-BUF RockChip CMA Heap"
   depends on DMABUF_HEAPS_ROCKCHIP
   help
     Choose this option to enable dma-buf RockChip CMA heap. This heap is backed
     by the Contiguous Memory Allocator (CMA). If your system has these
     regions, you should say Y here.
 
config DMABUF_HEAPS_ROCKCHIP_CMA_ALIGNMENT
   int "Maximum PAGE_SIZE order of alignment for RockChip CMA Heap"
   range 0 12
   depends on DMABUF_HEAPS_ROCKCHIP_CMA_HEAP
   default 8
   help
     DMA mapping framework by default aligns all buffers to the smallest
     PAGE_SIZE order which is greater than or equal to the requested buffer
     size. This works well for buffers up to a few hundreds kilobytes, but
     for larger buffers it just a memory waste. With this parameter you can
     specify the maximum PAGE_SIZE order for contiguous buffers. Larger
     buffers will be aligned only to this specified order. The order is
     expressed as a power of two multiplied by the PAGE_SIZE.
 
     For example, if your system defaults to 4KiB pages, the order value
     of 8 means that the buffers will be aligned up to 1MiB only.
 
     If unsure, leave the default value "8".
 
config DMABUF_RK_HEAPS_DEBUG
   bool "DMA-BUF RockChip Heap Debug"
   depends on DMABUF_HEAPS_ROCKCHIP
   help
     Choose this option to enable dma-buf RockChip heap debug.
 
config DMABUF_RK_HEAPS_DEBUG_PRINT
   bool "DMA-BUF RockChip Heap Debug print log enable"
   depends on DMABUF_HEAPS_ROCKCHIP
   help
     Choose this option to enable dma-buf RockChip heap debug.