rockchip-linux / mpp

Media Process Platform (MPP) module
467 stars 156 forks source link

mpp_dma_heap: dma-heap open /dev/dma_heap/system-uncached No such file or directory #556

Open pan1024 opened 3 months ago

pan1024 commented 3 months ago

在RK3588运行yolov5视频识别demo时爆出这样的错误

mpp_dma_heap: dma-heap open /dev/dma_heap/system-uncached No such file or directory mpp_dma_heap: Assertion fd > 0 failed at heap_fd_open:139 mpp_dma_heap: os_allocator_dma_heap_open open dma heap type 0 failed! mpp_allocator: mpp_allocator_get type 1 failed mpp_buffer: Assertion p->allocator failed at get_group:936 mpp_buffer: Assertion p->alloc_api failed at get_group:937 mpp_dma_heap: dma-heap open /dev/dma_heap/system-uncached No such file or directory mpp_dma_heap: Assertion fd > 0 failed at heap_fd_open:139 mpp_dma_heap: os_allocator_dma_heap_open open dma heap type 0 failed! mpp_allocator: mpp_allocator_get type 1 failed mpp_buffer: Assertion p->allocator failed at get_group:936 mpp_buffer: Assertion p->alloc_api failed at get_group:937 Segmentation fault

HermanChen commented 2 months ago

内核的 dma-heap dts 是不是没有打开?

scottlamb commented 2 months ago
  1. it commits to an allocator that is unavailable; the patch in https://github.com/rockchip-linux/mpp/issues/535 would fix this.
  2. then the Segmentation fault happens because of poor error handling; https://github.com/rockchip-linux/mpp/pull/571 would fix this.