summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eichenberger <stefan.eichenberger@toradex.com>2024-02-23 14:52:22 +0100
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2024-02-23 14:24:18 +0000
commit167b8e8e0f8bb7638eb065d72012a2fd76a19a21 (patch)
tree94d2301ee0e55451073122d15d30cef6e30ee6da
parente63f274c8b6ecab8d94cfc53aa58744ffac97f8c (diff)
arm64: dts: imx8mm-verdin: overwrite alloc-ranges property
With commit 757e132269ec ("arm64: dts: imx8mm-verdin: fix cma memory region") we introduced a new problem for modules with more than 3GB of RAM. The VPU driver Hantro is currently unable to cross 32bit boundaries. However, since the cma region is located at the end of the RAM, we have crossed the boundary for modules with more than 3GB of RAM. The Verdin iMX8MM modules are not yet affected by this issue as there is no module with more than 2GB of RAM. However, to be consistent with the Verdin iMX8MP and to be future proof in case there is a module with more RAM, we overwrite the alloc-ranges property here as well. We cannot use the default alloc-ranges property from imx8mm.dtsi because it starts at 1GB of RAM and therefore does not work with modules that only have 1GB of RAM. That is why we deleted this property in the first place. Upstream-Status: Inappropriate [other] We use the kernel configuration to define the CMA size and don't use the linux,cma node in the device tree. However, we need to verify that the upstream hantro driver can handle 64 bit addresses. Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
-rw-r--r--arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
index 334d937dfe74..a723d666fdd4 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
@@ -160,7 +160,7 @@
linux,cma {
size = <0 0x20000000>;
- /delete-property/ alloc-ranges;
+ alloc-ranges = <0 0x40000000 0 0xC0000000>;
};
};
};