Hi,
I've upgraded my Pi 4 from bookworm to trixie using apt - I have a lot of things running and this is usually a much faster method than reinstalling a fresh ISO. Overall the system works as before, but I've found out that I can no longer use hardware acceleration to play video in Kodi. Disabling DRM PRIME in kodi makes video playback work, but using lots of CPU. As soon as it's enabled (no matter what other related settings I use), the video playback does not work, although the sound starts playing. What i see on the screen is the Kodi menu system staying there, with a "waiting" symbol, and some weird flickering.
Looking at logs, I see this:
And the last error gets repeated.... a lot.
It looks like a problem to access the codec, then, and possibly related with CMA - I don't really know what CMA is but searching around I found these commands to help diagnostic:
But I'm not sure how to investigate further.
My questions would be:
- are my issues unique or something known to the community?
- is there a solution, or something to investigate further?
- would a fresh install solve the problem, i.e. is Kodi suppose to still work out of the box with HW acceleration on a Pi4?
Thanks in advance!
Pierric.
I've upgraded my Pi 4 from bookworm to trixie using apt - I have a lot of things running and this is usually a much faster method than reinstalling a fresh ISO. Overall the system works as before, but I've found out that I can no longer use hardware acceleration to play video in Kodi. Disabling DRM PRIME in kodi makes video playback work, but using lots of CPU. As soon as it's enabled (no matter what other related settings I use), the video playback does not work, although the sound starts playing. What i see on the screen is the Kodi menu system staying there, with a "waiting" symbol, and some weird flickering.
Looking at logs, I see this:
Code:
2025-12-09 12:07:28.954 T:807602 info <general>: CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem H.264 decoder wrapper2025-12-09 12:07:28.955 T:807602 error <general>: ffmpeg[0x55d34f5790]: [h264_v4l2m2m] Can't open dmabuf provider 'cma'2025-12-09 12:07:28.955 T:807602 info <general>: CDVDVideoCodecDRMPRIME::Open - unable to open codec2025-12-09 12:07:28.955 T:807602 info <general>: CDVDVideoCodecDRMPRIME::Open - using decoder H.264 / AVC / MPEG-4 AVC / MPEG-4 part 102025-12-09 12:07:29.251 T:807607 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)2025-12-09 12:07:29.252 T:807607 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)2025-12-09 12:07:29.255 T:807607 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)2025-12-09 12:07:29.256 T:807607 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)It looks like a problem to access the codec, then, and possibly related with CMA - I don't really know what CMA is but searching around I found these commands to help diagnostic:
Code:
[I] pierric@pi4 ~> ls -l /dev/dma_heap/total 0crw------- 1 root root 253, 1 Dec 8 12:15 linux,cmacrw------- 1 root root 253, 0 Dec 8 12:15 system[I] pierric@pi4 ~> dmesg | grep -i cma[ 0.000000] Reserved memory: created CMA memory pool at 0x000000000e400000, size 512 MiB[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool[ 0.000000] OF: reserved mem: 0x000000000e400000..0x000000002e3fffff (524288 KiB) map reusable linux,cma[ 0.009509] Memory: 7271324K/8060928K available (14336K kernel code, 2406K rwdata, 4824K rodata, 2048K init, 577K bss, 246456K reserved, 524288K cma-reserved)[ 6.951322] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.[ 7.047834] bcm2835_vc_sm_cma_probe: Videocore shared memory driver[I] pierric@pi4 ~ [0|1]> lsmod|grep -E "dma|cma|heap"vc_sm_cma 32768 2 bcm2835_mmal_vchiq,bcm2835_ispvideobuf2_dma_contig 20480 3 bcm2835_codec,rpi_hevc_dec,bcm2835_ispvideobuf2_memops 12288 2 videobuf2_vmalloc,videobuf2_dma_contigvideobuf2_common 73728 9 bcm2835_codec,videobuf2_vmalloc,rpi_hevc_dec,videobuf2_dma_contig,videobuf2_v4l2,bcm2835_v4l2,v4l2_mem2mem,videobuf2_memops,bcm2835_ispsnd_pcm_dmaengine 16384 1 snd_soc_coresnd_pcm 151552 5 snd_bcm2835,snd_soc_hdmi_codec,snd_compress,snd_soc_core,snd_pcm_dmaenginedrm_dma_helper 24576 2 vc4drm_kms_helper 229376 3 drm_dma_helper,vc4,drm_shmem_helperdrm 675840 8 gpu_sched,drm_kms_helper,drm_dma_helper,v3d,vc4,drm_shmem_helper,drm_display_helperMy questions would be:
- are my issues unique or something known to the community?
- is there a solution, or something to investigate further?
- would a fresh install solve the problem, i.e. is Kodi suppose to still work out of the box with HW acceleration on a Pi4?
Thanks in advance!
Pierric.
Statistics: Posted by pierric — Thu Dec 11, 2025 3:22 pm — Replies 0 — Views 18