bcm27xx: switch to 5.15
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.10 / 950-0730-overlays-Reduce-Pi-4-vc4-CMA-size-to-320MB.patch
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
5
6 Reduce the default CMA allocation requested by the vc4-kms-v3d-pi4 and
7 vc4-fkms-v3d-pi4 overlays to 320MB.
8
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.
14
15 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
16 ---
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(-)
20
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
23 @@ -8,7 +8,7 @@
24 #include "cma-overlay.dts"
25
26 &frag0 {
27 - size = <(512*1024*1024)>;
28 + size = <((320-4)*1024*1024)>;
29 };
30
31 / {
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
34 @@ -10,7 +10,7 @@
35 #include "cma-overlay.dts"
36
37 &frag0 {
38 - size = <(512*1024*1024)>;
39 + size = <((320-4)*1024*1024)>;
40 };
41
42 / {