We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5452

Summary: [KMS/DRM] Latest v2.0.15 Chgs Break RPi4
Product: SDL Reporter: bluestang2006
Component: videoAssignee: Manuel Alfayate Corchete <redwindwanderer>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 2.0.15   
Hardware: ARM   
OS: Linux   

Description bluestang2006 2021-01-08 21:05:10 UTC
Hello,

The latest KMS/DRM changes have broken the video for my RPi4. Here is a snippet of dmesg:

[   18.567586] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[   18.567618] vc4-drm gpu: [drm]                           dumb: 247068kb BOs (32)
[   18.584884] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[   18.584903] vc4-drm gpu: [drm]                           dumb: 247068kb BOs (32)
[   18.585098] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[   18.585104] vc4-drm gpu: [drm]                           dumb: 247068kb BOs (32)

This is for both OpenGLES and Vulkan, although I couldn't get Vulkan to work outside of RetroArch - which is a separate issue altogether.

I am using kernel 5.10.5 (rpi-update) and a recent build of the latest MESA drivers for the RPi4.
Comment 1 Sam Lantinga 2021-01-08 22:01:15 UTC
Is this happening with the very latest changes?
http://www.libsdl.org/tmp/SDL-2.0.zip
Comment 2 bluestang2006 2021-01-08 22:59:46 UTC
Looks like 352407eb17cb has fixed the issue.
Comment 3 Sam Lantinga 2021-01-08 23:55:10 UTC
Great, thanks!