From df2b18bae9d73c1b854df365bc4b95a506cff572 Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Tue, 3 Mar 2020 16:31:41 +0800 Subject: [PATCH] LF-531-2 arm64: dts: imx8mn: add cma setting Fix GPU AXI bus error when run WebGL 2.0 CTS, The original CMA size is 320MB, set with 640MB, This patch will align 8MN CMA size with L4.14. Signed-off-by: Xianzhong Reviewed-by: Dong Aisheng Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index dbdad5652fc0..ffc63a41f311 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -147,6 +147,21 @@ }; }; + resmem: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0 0x28000000>; + alloc-ranges = <0 0x40000000 0 0x60000000>; + linux,cma-default; + }; + }; + osc_32k: clock-osc-32k { compatible = "fixed-clock"; #clock-cells = <0>; -- 2.17.1