LF-665-16 arm64: dts: imx8mn: make sure cma do not overlap dma zone
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 3 Mar 2020 09:01:02 +0000 (17:01 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:22:08 +0000 (11:22 +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>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk-root.dts
arch/arm64/boot/dts/freescale/imx8mn.dtsi

index 9e71421..5388f8f 100644 (file)
@@ -22,7 +22,7 @@ TODO: need uncomment when linux ready
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0 0x28000000>;
-                       alloc-ranges = <0 0x40000000 0 0x93c00000>;
+                       alloc-ranges = <0 0x40000000 0 0x40000000>;
                        linux,cma-default;
                };
 
index 598e608..633cdcb 100644 (file)
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0 0x28000000>;
-                       alloc-ranges = <0 0x40000000 0 0x60000000>;
+                       alloc-ranges = <0 0x40000000 0 0x40000000>;
                        linux,cma-default;
                };
        };