rockchip-linux / mpp

Media Process Platform (MPP) module
466 stars 155 forks source link

使用rkmpp 编码初始化时 mpp_dma_heap: os_allocator_dma_heap_open open dma heap type 0 system-uncached failed! #626

Closed haozizhuimao closed 1 week ago

haozizhuimao commented 1 week ago

错误信息为:mpp[6698]: mpp_dma_heap: os_allocator_dma_heap_open open dma heap type 0 system-uncached failed! mpp[6698]: mpp_buffer: MppBufferService get_group failed to get allocater with mode 0 type 3

/dev/:

lubuntu@ubuntu:~/yuehao$ ls -lh /dev/dma_heap/ total 0 crw------- 1 root root 251, 4 Jun 25 05:41 cma crw------- 1 root root 251, 5 Jun 25 05:41 cma-uncached crw------- 1 root root 251, 0 Jun 25 05:41 system crw------- 1 root root 251, 1 Jun 25 05:41 system-dma32 crw------- 1 root root 251, 2 Jun 25 05:41 system-uncached crw------- 1 root root 251, 3 Jun 25 05:41 system-uncached-dma32

lubuntu@ubuntu:/sys/class/dma_heap$ ls -lh /sys/class/dma_heap/ total 0 lrwxrwxrwx 1 root root 0 Jun 25 05:41 cma -> ../../devices/virtual/dma_heap/cma lrwxrwxrwx 1 root root 0 Jun 25 05:41 cma-uncached -> ../../devices/virtual/dma_heap/cma-uncached lrwxrwxrwx 1 root root 0 Jun 25 05:41 system -> ../../devices/virtual/dma_heap/system lrwxrwxrwx 1 root root 0 Jun 25 05:41 system-dma32 -> ../../devices/virtual/dma_heap/system-dma32 lrwxrwxrwx 1 root root 0 Jun 25 05:41 system-uncached -> ../../devices/virtual/dma_heap/system-uncached lrwxrwxrwx 1 root root 0 Jun 25 05:41 system-uncached-dma32 -> ../../devices/virtual/dma_heap/system-uncached- lubuntu@ubuntu:/sys/class/dma_heap$

haozizhuimao commented 1 week ago

已经找到原因,是当前用户没有读取的权限