Skip to content

Commit

Permalink
overlays: Reduce Pi 4 vc4 CMA size to 320MB
Browse files Browse the repository at this point in the history
Reduce the default CMA allocation requested by the vc4-kms-v3d-pi4 and
vc4-fkms-v3d-pi4 overlays to 320MB.

Use magic values of the form (<n>*64 - 4)MB to encode default values
of <n>*64MB, allowing these defaults to be distinguished from values
set explicitly by the user with the usual overlay parameters (e.g.
"cma-384"). Only default values will be capped if the Pi RAM is too
small or the gpu_mem setting too large for it to be viable.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Aug 3, 2021
1 parent c835587 commit 4e5d621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "cma-overlay.dts"

&frag0 {
size = <(512*1024*1024)>;
size = <((320-4)*1024*1024)>;
};

/ {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "cma-overlay.dts"

&frag0 {
size = <(512*1024*1024)>;
size = <((320-4)*1024*1024)>;
};

/ {
Expand Down

0 comments on commit 4e5d621

Please sign in to comment.