Skip to contentSkip to conversation

arm64: meson-g12a: Add CMA reserved memory

PATCH In review Neil Armstrong 2 participants 2 messages Mar 27, 2019 – Mar 29, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: meson-g12a: Add CMA reserved memory

In order to handle Video Output and later on Video decoding, add a reserved CMA pool with a similar 256MiB size as other SoCs.

---
 arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +8 -0
index 8f6f72e9825c..58176b525004 100644
@@ -82,6 +82,14 @@
 			reg = <0x0 0x05000000 0x0 0x300000>;
 			no-map;
 		};
+
+		linux,cma {
+			compatible = "shared-dma-pool";
+			reusable;
+			size = <0x0 0x10000000>;
+			alignment = <0x0 0x400000>;
+			linux,cma-default;
+		};
 	};
 
 	sm: secure-monitor {
Signature · 1 line
2.21.0
maintainer
#1 lore raw
Quoted 4 lines · Neil Armstrong

In order to handle Video Output and later on Video decoding, add a reserved CMA pool with a similar 256MiB size as other SoCs.

Queued for v5.2,

Thanks,

Kevin