Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e5d621

Browse files
committed
overlays: Reduce Pi 4 vc4 CMA size to 320MB
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 <[email protected]>
1 parent c835587 commit 4e5d621

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "cma-overlay.dts"
99

1010
&frag0 {
11-
size = <(512*1024*1024)>;
11+
size = <((320-4)*1024*1024)>;
1212
};
1313

1414
/ {

arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "cma-overlay.dts"
1111

1212
&frag0 {
13-
size = <(512*1024*1024)>;
13+
size = <((320-4)*1024*1024)>;
1414
};
1515

1616
/ {

0 commit comments

Comments
 (0)