1 From 0d5d8f373125e5bdf331d8fc579b2cf18171c1c0 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 3 Aug 2021 11:32:30 +0100
4 Subject: [PATCH] overlays: Reduce Pi 4 vc4 CMA size to 320MB
6 Reduce the default CMA allocation requested by the vc4-kms-v3d-pi4 and
7 vc4-fkms-v3d-pi4 overlays to 320MB.
9 Use magic values of the form (<n>*64 - 4)MB to encode default values
10 of <n>*64MB, allowing these defaults to be distinguished from values
11 set explicitly by the user with the usual overlay parameters (e.g.
12 "cma-384"). Only default values will be capped if the Pi RAM is too
13 small or the gpu_mem setting too large for it to be viable.
15 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
17 arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts | 2 +-
18 arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts | 2 +-
19 2 files changed, 2 insertions(+), 2 deletions(-)
21 --- a/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts
22 +++ b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts
24 #include "cma-overlay.dts"
27 - size = <(512*1024*1024)>;
28 + size = <((320-4)*1024*1024)>;
32 --- a/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
33 +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
35 #include "cma-overlay.dts"
38 - size = <(512*1024*1024)>;
39 + size = <((320-4)*1024*1024)>;