Openwrt/target/linux/bcm27xx/patches-5.4/950-0970-overlays-Add-extra-CMA-sizes-up-to-512M.patch
Álvaro Fernández Rojas f07e572f64 bcm27xx: import latest patches from the RPi foundation
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 3B v1.2 and RPi 4B v1.1 4G
bcm2710: boot tested on RPi 3B v1.2
bcm2711: boot tested on RPi 4B v1.1 4G

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-18 23:42:32 +01:00

79 lines
3.6 KiB
Diff

From 43d90a5beafa788c629c41a22623d82c10a9bbb9 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Mon, 21 Sep 2020 22:00:10 +0100
Subject: [PATCH] overlays: Add extra CMA sizes (up to 512M)
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/overlays/README | 24 ++++++++++++++++++----
arch/arm/boot/dts/overlays/cma-overlay.dts | 4 ++++
2 files changed, 24 insertions(+), 4 deletions(-)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -582,7 +582,11 @@ Name: cma
Info: Set custom CMA sizes, only use if you know what you are doing, might
clash with other overlays like vc4-fkms-v3d and vc4-kms-v3d.
Load: dtoverlay=cma,<param>=<val>
-Params: cma-256 CMA is 256MB (needs 1GB)
+Params: cma-512 CMA is 512MB (needs 1GB)
+ cma-448 CMA is 448MB (needs 1GB)
+ cma-384 CMA is 384MB (needs 1GB)
+ cma-320 CMA is 320MB (needs 1GB)
+ cma-256 CMA is 256MB (needs 1GB)
cma-192 CMA is 192MB (needs 1GB)
cma-128 CMA is 128MB
cma-96 CMA is 96MB
@@ -2892,7 +2896,11 @@ Name: vc4-fkms-v3d
Info: Enable Eric Anholt's DRM VC4 V3D driver on top of the dispmanx
display stack.
Load: dtoverlay=vc4-fkms-v3d,<param>
-Params: cma-256 CMA is 256MB (needs 1GB)
+Params: cma-512 CMA is 512MB (needs 1GB)
+ cma-448 CMA is 448MB (needs 1GB)
+ cma-384 CMA is 384MB (needs 1GB)
+ cma-320 CMA is 320MB (needs 1GB)
+ cma-256 CMA is 256MB (needs 1GB)
cma-192 CMA is 192MB (needs 1GB)
cma-128 CMA is 128MB
cma-96 CMA is 96MB
@@ -2911,7 +2919,11 @@ Params: <None>
Name: vc4-kms-v3d
Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver.
Load: dtoverlay=vc4-kms-v3d,<param>
-Params: cma-256 CMA is 256MB (needs 1GB)
+Params: cma-512 CMA is 512MB (needs 1GB)
+ cma-448 CMA is 448MB (needs 1GB)
+ cma-384 CMA is 384MB (needs 1GB)
+ cma-320 CMA is 320MB (needs 1GB)
+ cma-256 CMA is 256MB (needs 1GB)
cma-192 CMA is 192MB (needs 1GB)
cma-128 CMA is 128MB
cma-96 CMA is 96MB
@@ -2925,7 +2937,11 @@ Params: cma-256 CMA is 2
Name: vc4-kms-v3d-pi4
Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver for Pi4.
Load: dtoverlay=vc4-kms-v3d-pi4,<param>
-Params: cma-256 CMA is 256MB
+Params: cma-512 CMA is 512MB
+ cma-448 CMA is 448MB
+ cma-384 CMA is 384MB
+ cma-320 CMA is 320MB
+ cma-256 CMA is 256MB
cma-192 CMA is 192MB
cma-128 CMA is 128MB
cma-96 CMA is 96MB
--- a/arch/arm/boot/dts/overlays/cma-overlay.dts
+++ b/arch/arm/boot/dts/overlays/cma-overlay.dts
@@ -21,6 +21,10 @@
};
__overrides__ {
+ cma-512 = <&frag0>,"size:0=",<0x20000000>;
+ cma-448 = <&frag0>,"size:0=",<0x1c000000>;
+ cma-384 = <&frag0>,"size:0=",<0x18000000>;
+ cma-320 = <&frag0>,"size:0=",<0x14000000>;
cma-256 = <&frag0>,"size:0=",<0x10000000>;
cma-192 = <&frag0>,"size:0=",<0xC000000>;
cma-128 = <&frag0>,"size:0=",<0x8000000>;