LF-665-18 arm64: dts: imx8mq: make sure cma do not overlap dma zone
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 24 Dec 2019 10:29:50 +0000 (18:29 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:21:52 +0000 (11:21 +0800)
After commit 1a8e1cef7603 ("arm64: use both ZONE_DMA and ZONE_DMA32"),
ZONE_DMA will contain the lower 1G of memory.
Change the CMA range start or size to ensure it's not overlapped
with dma zone.

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

index 6976fb5..de1683d 100755 (executable)
@@ -51,7 +51,7 @@
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0 0x3c000000>;
-                       alloc-ranges = <0 0x40000000 0 0x40000000>;
+                       alloc-ranges = <0 0x80000000 0 0x40000000>;
                        linux,cma-default;
                };
        };