From: Anson Huang Date: Tue, 3 Mar 2020 08:31:41 +0000 (+0800) Subject: LF-531-2 arm64: dts: imx8mn: add cma setting X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~577^2~2^2~494 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=df2b18bae9d73c1b854df365bc4b95a506cff572;p=linux.git 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 --- 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>;