v19 RPi4B cannot play some video: CDRMAtomic::DrmAtomicCommit - test commit failed
#1
Using @popcornmix gbm branch of kodi (either the current commit which is RC1 or rebasing against xbmc master gives the same result), on RPi4B, I am unable to play back some video content.

Confirmed with:
* 720p 10bit x265 video
* 1080p h264 video

All the jellyfish test clips (hevc, hevc-10bit, h264) play fine.

The debug.log shows many lines like this:
Code:
2021-02-21 11:36:20.950 T:1114 ERROR <general>: CDRMAtomic::DrmAtomicCommit - test commit failed: (Invalid argument) - falling back to last successful atomic request
2021-02-21 11:36:20.950 T:1114 DEBUG <general>: CDRMAtomicRequest::LogAtomicDiff - DRM Atomic Request Diff:
2021-02-21 11:36:20.950 T:1114 ERROR <general>:
Object: plane ID: 89
Property: FB_ID ID: 17 Value: 226
Object: plane ID: 68
Property: SRC_X ID: 9 Value: 0
Property: SRC_Y ID: 10 Value: 0
Property: SRC_W ID: 11 Value: 125436177
Property: SRC_H ID: 12 Value: 52428800
Property: CRTC_X ID: 13 Value: 0
Property: CRTC_Y ID: 14 Value: 138
Property: CRTC_W ID: 15 Value: 1918
Property: CRTC_H ID: 16 Value: 802
Property: FB_ID ID: 17 Value: 228
Property: CRTC_ID ID: 20 Value: 74
Property: COLOR_ENCODING ID: 72 Value: 1
Property: COLOR_RANGE ID: 73 Value: 0
Object: crtc ID: 74
Property: MODE_ID ID: 23 Value: 229
Object: connector ID: 32
Property: HDR_OUTPUT_METADATA ID: 7 Value: 0
2021-02-21 11:36:20.950 T:1114 ERROR <general>: CDRMAtomic::DrmAtomicCommit - atomic commit failed: Invalid argument
2021-02-21 11:36:20.980 T:1114 DEBUG <general>: CDRMUtils::DrmFbDestroyCallback - removing framebuffer: 224
2021-02-21 11:36:20.980 T:1114 ERROR <general>: CDRMAtomic::DrmAtomicCommit - test commit failed: (No space left on device) - falling back to last successful atomic request
2021-02-21 11:36:20.980 T:1114 DEBUG <general>: CDRMAtomicRequest::LogAtomicDiff - DRM Atomic Request Diff:

Kernel is rpi-5.10.y branch (commit 7f09832bc5).
/etc/config.txt contains:
Code:
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
Need help programming a Streamzap remote?
Reply
#2
2021-02-21 11:36:20.980 T:1114 ERROR <general>: CDRMAtomic:Big GrinrmAtomicCommit - test commit failed: (No space left on device) - falling back to last successful atomic request

^^ sounds strange
Kodi 18.6 @ openSUSE 13.1 x86_64 - Asus E35M1-I DELUXE | 8GB Ram | 240G 2.5" SSD
Kodi 20.2 on 1st Raspberry Pi B @ XBian | Kodi 20.2 on Raspberry Pi 3B+ @ XBian | Kodi 21a2 on Raspberry Pi4B @ XBian | Kodi 19.0 on SolidRun i.MX6 @ XBian
VDR 2.4.5 & Tvheadend4.3-1917 (for recording) on Cubieboard2 @ Debian Buster
Reply
#3
Does this commit help?
Reply
#4
(2021-02-21, 22:01)popcornmix Wrote: Does this commit help?

Solves the problem.  Thank you!
Need help programming a Streamzap remote?
Reply
#5
@popcornmix - I am encountering a flicker when playing back some content using different zoom levels.  The kodi.log is full of similar entries:
Code:
% tail -f /var/lib/kodi/.kodi/temp/kodi.log
...
2021-02-22 07:47:18.694 T:366     ERROR <general>: CDRMAtomic::DrmAtomicCommit - atomic commit failed: Invalid argument
2021-02-22 07:47:18.711 T:366     ERROR <general>: CDRMAtomic::DrmAtomicCommit - test commit failed: (Invalid argument) - falling back to last successful atomic request
2021-02-22 07:47:18.711 T:366     ERROR <general>:
                                                   Object: plane   ID: 68
                                                     Property: SRC_X   ID: 9   Value: 0
                                                     Property: SRC_Y   ID: 10   Value: 0
                                                     Property: SRC_W   ID: 11   Value: 251527168
                                                     Property: SRC_H   ID: 12   Value: 141557760
                                                     Property: CRTC_X   ID: 13   Value: 4294966336
                                                     Property: CRTC_Y   ID: 14   Value: 18446744073709551076
                                                     Property: CRTC_W   ID: 15   Value: 3838
                                                     Property: CRTC_H   ID: 16   Value: 2160
                                                     Property: FB_ID   ID: 17   Value: 228
                                                     Property: CRTC_ID   ID: 20   Value: 74
2021-02-22 07:47:18.711 T:366     ERROR <general>: CDRMAtomic::DrmAtomicCommit - atomic commit failed: Invalid argument
2021-02-22 07:47:18.728 T:366     ERROR <general>: CDRMAtomic::DrmAtomicCommit - test commit failed: (Invalid argument) - falling back to last successful atomic request
For example, Big Buck Bunny plays back in all zoom levels (cycled with the 'Z' key) fine except "Original size."  That causes the flicker.

Complete debug.log.

* Kodi is your gbm branch I rebased against master for 19.0.
* Kernel is rpi-5.10.y built from 623ca2ba45 and applying your vc4_place-dont-reject-fractional-source-coords commit.
Need help programming a Streamzap remote?
Reply
#6
Hi,

I have the same issue as @graysky. Here is the log i get (this is the same as above). There is some flickering when a zoom in a video.

Code:

2021-02-27 06:36:10.992 T:1849    ERROR <general>: CDRMAtomic::DrmAtomicCommit - atomic commit failed: Invalid argument
2021-02-27 06:36:11.024 T:1849    ERROR <general>: CDRMAtomic::DrmAtomicCommit - test commit failed: (Invalid argument) - falling back to la>
2021-02-27 06:36:11.024 T:1849    ERROR <general>:
                                                   Object: plane        ID: 31
                                                     Property: SRC_X    ID: 9   Value: 0
                                                     Property: SRC_Y    ID: 10  Value: 0
                                                     Property: SRC_W    ID: 11  Value: 125700592
                                                     Property: SRC_H    ID: 12  Value: 53477376
                                                     Property: CRTC_X   ID: 13  Value: 4294967278
                                                     Property: CRTC_Y   ID: 14  Value: 124
                                                     Property: CRTC_W   ID: 15  Value: 1956
                                                     Property: CRTC_H   ID: 16  Value: 832
                                                     Property: FB_ID    ID: 17  Value: 105
                                                     Property: CRTC_ID  ID: 20  Value: 87
                                                   Object: plane        ID: 38
                                                     Property: FB_ID    ID: 17  Value: 98
2021-02-27 06:36:11.026 T:1849    ERROR <general>: CDRMAtomic::DrmAtomicCommit - atomic commit failed: Invalid argument


Each time i zoom in a video (h264 or h265 whatever), i got one block like this. There is no issue when i zoom out (say 0.99 or 0.98), but i have it with 'Z' key or if i zoom in manually to specify the ratio (from 1.1 and above).
Reply

Logout Mark Read Team Forum Stats Members Help
RPi4B cannot play some video: CDRMAtomic::DrmAtomicCommit - test commit failed0