LF-531-2 arm64: dts: imx8mn: add cma setting
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 3 Mar 2020 08:31:41 +0000 (16:31 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:22:07 +0000 (11:22 +0800)
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 <xianzhong.li@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm64/boot/dts/freescale/imx8mn.dtsi

index dbdad56..ffc63a4 100644 (file)
                };
        };
 
+       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>;