Freescale / gstreamer-imx

GStreamer 1.0 plugins for i.MX platforms
Other
182 stars 127 forks source link

IMX8MM, DMA Heap and VPU issues #324

Open andrewvoznytsa opened 8 months ago

andrewvoznytsa commented 8 months ago

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

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?