rk3588 用dma方式使用librga库出现内存不足问题:RK_DMA_HEAP_ALLOC_BUFFER failed cma_heap_fd:4 width:640 height:640 format:512 error:12 errorMsg:Cannot allocate memory复制代码使用dmesg -T查看具体原因:cma: cma_alloc: cma: alloc failed, req-size: 2700 pages, ret: -12复制代码大概知道就是预留...
ROS_ERROR_THROTTLE(5,"GstCam::%s(): alloc dst dma_heap buffer failed!", __FUNCTION__); dma_buf_free(src_buf_size,&src_dma_fd,src_buf); returnfalse; } // /* 将CPU缓存中的数据同步到DMA缓冲区*/ // if (dma_path == 1 || dma_path == 3) { // dma_sync_cpu_to_device(sr...
# rk dma_buf heaps/dev/dma_heap/cma u:object_r:dmabuf_system_heap_device:s0/dev/dma_heap/system-dma32 u:object_r:dmabuf_system_heap_device:s0 Index: device/rockchip/common/sepolicy/vendor/fsck.te=== --- device/rockchip/common/sepolicy/vendor/fsck.te (revision2461)+++ device/rockc...
[ 0.000000] ion heap(cma): base(0) size(800000) align(0) [ 0.000000] ion heap(vmalloc): base(0) size(0) align(0) [ 0.000000] cma: CMA: reserved 8 MiB at 9f800000 [ 0.000000] ion_reserve: cma reserved base 9f800000 size 8388608 [ 0.000000] cma: CMA: reserved 16 MiB at 8e8...
ion heap(cma): base(0) size(28000000) align(0) <6>[ 0.000000] ion heap(vmalloc): base(0) size(0) align(0) <6>[ 0.000000] cma: cma: reserved 640 mib at 58000000 <6>[ 0.000000] ion_reserve: cma reserved base 58000000 size 671088640 <6>[ 0.000000] cma: cma: reserved 16 mib ...
<6>[ 0.000000] ion heap(cma): base(0) size(28000000) align(0) <6>[ 0.000000] ion heap(vmalloc): base(0) size(0) align(0) <6>[ 0.000000] cma: CMA: reserved 640 MiB at 55c00000 <6>[ 0.000000] ion_reserve: cma reserved base 55c00000 size 671088640 <6>[ 0.000000] cma: CMA...
obj-$(CONFIG_DMABUF_HEAPS_SYSTEM) += system_heap.o obj-$(CONFIG_DMABUF_HEAPS_CMA) += cma_heap.o 247 changes: 247 additions & 0 deletions 247 drivers/dma-buf/heaps/page_pool.c Original file line numberDiff line numberDiff line change @@ -0,0 +1,247 @@ // SPDX-License-Identif...
[ 0.000000] ion heap(cma): base(40000000) size(28000000) align(0) [ 0.000000] ion heap(vmalloc): base(0) size(0) align(0) [ 0.000000] cma: CMA: reserved 640 MiB at 40000000 [ 0.000000] ion_reserve: cma reserved base 40000000 size 671088640 [ 0.000000] cma: CMA: reserved 16...
I enabledCONFIG_DMABUF_HEAPS_SYSTEM=yandCONFIG_DMABUF_HEAPS_CMA=y, still only kernel cmdlinecma=256Mworks with rkvdec2. Setting cma 256M in dts won't work. Sorry, something went wrong. amazingfateforce-pushedtherkvdec2-rk356xbranch 3 times, most recently fromff15ff6tob072b85CompareJuly ...
dma-controller@ff6e0000 { compatible = "arm,pl330\0arm,primecell"; reg = <0x00 0xff6e0000 0x00 0x4000>; interrupts = <0x00 0x07 0x04 0x00 0x00 0x08 0x04 0x00>; #dma-cells = <0x01>; clocks = <0x08 0xd4>; clock-names = "apb_pclk"; peripherals-req-type-burst; phandle...