LF-1106 arm64: dts: imx8mq-evk: reduce cma reserved memory size to 896M
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 10 Mar 2020 09:19:04 +0000 (17:19 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:22:11 +0000 (11:22 +0800)
Currently the cma reserved memory allocation will fail due to conflict
with rpmsg reserved memory which results in a lot of VPU test failure.

e.g
rpmsg_reserved: rpmsg@0xb8000000 {
        no-map;
        reg = <0 0xb8000000 0 0x400000>;
};

This patch worked around this issue first by reducing the CMA size to 896M
from 960M.

We're still investigating a more sane approach to add back the correct
requirement CMA memory (per MM team, it may need 1060M).

Reviewed-by: ZHOU PENG <eagle.zhou@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
arch/arm64/boot/dts/freescale/imx8mq-evk.dts

index 1c8c8bf..698789b 100755 (executable)
@@ -50,8 +50,8 @@
                linux,cma {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0 0x3c000000>;
-                       alloc-ranges = <0 0x80000000 0 0x40000000>;
+                       size = <0 0x38000000>;
+                       alloc-ranges = <0 0x80000000 0 0x38000000>;
                        linux,cma-default;
                };
        };