Hello, I'm running an application that plays video on an embedded device. It uses Qt5.4 and qt-gstreamer plugin and it runs on imx6q processor with yocto based linux (kernel version 3.19.5). When I built a sample from this qt-gstreamer package called qmlplayer2 and used it to play video I came across following problem: 1. When video reaches it's end I start receiving kernel ringbuffer message: # [ 1371.618854] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1372.618713] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1373.618653] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1374.618872] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1375.618712] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1376.618707] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1377.618860] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1378.738700] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1379.738632] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1380.828872] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1381.828697] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1382.828875] coda 2040000.vpu: CODA PIC_RUN timeout # [ 1383.938704] coda 2040000.vpu: CODA PIC_RUN timeout The video is stopped but I can see last frame on the screen although in qt application it should receive end-of-stream message and stop the video (resulting with black screen). 2. If I don't terminate the application and several times press "stop" and "play" video I get message: # [ 3041.650483] coda 2040000.vpu: dma_alloc_coherent of size 3133440 failed # [ 3044.205362] coda 2040000.vpu: dma_alloc_coherent of size 3133440 failed # [ 3044.214711] coda 2040000.vpu: dma_alloc_coherent of size 3133440 failed # [ 3047.189317] coda 2040000.vpu: dma_alloc_coherent of size 3133440 failed # [ 3047.196056] coda 2040000.vpu: dma_alloc_coherent of size 3133440 failed and finally # [ 3049.161708] coda 2040000.vpu: dma_alloc_coherent of size 3133440 failed # "Failed to allocate required memory." Video is not playing here and CODA PIC_RUN timeout message shows up every second. - Depending on the type of video I'm playing the step 2 differs. What I wrote above is true for playing matroska format (mkv) file. When I use h264 I receive: # [ 322.610658] coda 2040000.vpu: Failed to allocate fb2 buffer of size 537600 # [ 322.619083] coda 2040000.vpu: failed to allocate framebuffers # [ 327.656542] coda 2040000.vpu: Failed to allocate fb0 buffer of size 537600 # [ 327.663513] coda 2040000.vpu: failed to allocate framebuffers Or # [ 723.496813] coda 2040000.vpu: Failed to allocate workbuf buffer of size 606208 # [ 723.504122] coda 2040000.vpu: failed to allocate 0 byte context buffer # [ 731.524607] coda 2040000.vpu: Failed to allocate slicebuf buffer of size 480512 # [ 731.532018] coda 2040000.vpu: failed to allocate 0 byte slice buffer # [ 734.793931] coda 2040000.vpu: dma_alloc_coherent of size 462848 failed # [ 734.800771] coda 2040000.vpu: dma_alloc_coherent of size 462848 failed # "Failed to allocate required memory." Or # [ 2793.514984] coda 2040000.vpu: Failed to allocate fb0 buffer of size 537600 # [ 2793.521961] coda 2040000.vpu: failed to allocate framebuffers # [ 2793.596919] coda 2040000.vpu: failed to allocate bitstream ringbuffer 3. One more "stop" and "play" outputs with: # [ 3050.530538] coda 2040000.vpu: failed to allocate bitstream ringbuffer But here the video starts playing again and when it reaches the end- the end-of-stream message is received in the Qt application. Ocasionally after playing many videos this way and shutting down the application I receive kernel oops or probable deadlock warning (both attached in this mail). I'm pretty sure that the problem resides in the coda driver but unfortunately I'm newbie in kernel drivers development area and cannot resolve it myself. Have you ever came across similar problem? Do you think you could help me with that? Best regards, Piotr Lewicki