Freescale / libimxdmabuffer

Library for allocating and managing physically contiguous memory ("DMA memory" or "DMA buffers") on i.MX devices
GNU Lesser General Public License v2.1
19 stars 12 forks source link

DWL allocation + imx8mp #10

Open CarlBarrIng opened 2 months ago

CarlBarrIng commented 2 months ago

Hi,

I'm trying to use gst-imx plugins from your other repo, but it has problems allocating memory. So i want to test this lib first. As I am trying to make it work on imx8mp device with hantro vpu with 5.10 kernel, i think i need to use DWL allocation. However, im compiling libs and program to test ION allocation and DWL allocation. That is what i get when i try to pass the "test-alloc" demo:

imagen

ION allocation passes, DWL allocation do not. Any idea why is this happening or how to solve this error? I think to use DWL allocation libimxdma uses libhantro.so.1 (Or at least simbols found there). This lib is included as well.

Im compiling the libs with the following config:

--with-dma-heap-allocator=no --with-ion-allocator=yes --with-dwl-allocator=yes --with-g2d-allocator=no --with-pxp-allocator=no --with-ipu-allocator=no

Greetings