From 540c98a09004793d7f08bd73eeeb72cda9491f11 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 20 Jun 2021 23:22:49 +0200 Subject: [PATCH] RPi4: temporarily limit framebuffer size to HD RPi firmware allocates a 4k framebuffer in gpu mem when 4kp60 is enabled which leads to H264 decoding failing because it's running out of GPU memory. This framebuffer isn't used/needed in LE at all, so limit it's size to HD (which the firmware does in non-4kp60 setups) until the KMS driver and the firmware support freeing the orphaned framebuffer. Signed-off-by: Matthias Reichl --- projects/RPi/devices/RPi4/config/distroconfig.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/RPi/devices/RPi4/config/distroconfig.txt b/projects/RPi/devices/RPi4/config/distroconfig.txt index b7c599f427..6d2dd077f1 100644 --- a/projects/RPi/devices/RPi4/config/distroconfig.txt +++ b/projects/RPi/devices/RPi4/config/distroconfig.txt @@ -6,3 +6,6 @@ dtoverlay=vc4-kms-v3d,cma-512 dtoverlay=rpivid-v4l2 disable_overscan=1 disable_fw_kms_setup=1 +# temporarily limit framebuffer size to avoid gpu memory issues at 4kp60 +max_framebuffer_width=1920 +max_framebuffer_width=1080