gstreamer-imx
gstreamer-imx copied to clipboard
IMX8MM, DMA Heap and VPU issues
I tried to upgrade my 4.14 based system to linux 5.15. As I read in change logs here and there that gstreamer-imx and underlaying components (latest available versions from github) should support it but unfortunately it didn't:
0:00:00.641245125 3024 0xaaaadf66c240 ERROR imxvpuapi imxvpuapi2_imx8m_hantro_encoder.c:1114:imx_vpu_api_enc_push_raw_frame: could not map the raw frame's DMA buffer: Success (0)
0:00:00.641339125 3024 0xaaaadf66c240 ERROR imxvpuenc gstimxvpuenc.c:571:gst_imx_vpu_enc_handle_frame:<imxvpuench264-0> could not push raw frame into encoder: DMA memory access error
I did some research on my own and got it working somehow with the following patches
- https://github.com/Auterion/libimxdmabuffer/tree/extend-wrapped-buffer-api
- https://github.com/Auterion/gstreamer-imx/tree/fix-wrapped-dma-buffer-usage-2.2.0
There is still some random crash (Heisenbug) which couldn't be reproduced running under gdb. From the core dump I can say that it is because of memory corruption.
At this point I'd clarify what is official status of 5.15 with DMA Heap and how could I get it working?