ARM: dts: exynos5422-odroidxu3: reduce total RAM by 22 MiB
Subsystems (2)
PATCH 1/1 ARM: dts: exynos5422-odroidxu3: reduce total RAM by 22 MiB
Last 22 MiB is RAM is reserved by secure monitor code and cannot be accessed from Linux kernel, so adjust total RAM size to 0x7EA00000 (2 GiB - 22 MiB). This fixes random 'imprecise kernel abort' kernel failures.
--- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/exynos5422-odroidxu3.dts +1 -1
@@ -18,7 +18,7 @@ compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5"; memory { - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7EA00000>; }; chosen {
Signature · 1 line
1.9.2
Quoted 16 lines · Marek Szyprowski
Last 22 MiB is RAM is reserved by secure monitor code and cannot be accessed from Linux kernel, so adjust total RAM size to
0x7EA00000(2 GiB - 22 MiB). This fixes random 'imprecise kernel abort' kernel failures.Signed-off-by Marek Szyprowski <[email protected]>--- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/exynos5422-odroidxu3.dts +0
-0
arch/arm/boot/dts/exynos5422-odroidxu3.dts
Quoted 9 lines
arch/arm/boot/dts/exynos5422-odroidxu3.dts +1
-2@@ -18,7 +18,7 @@ compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5"; memory { - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7EA00000>; }; chosen { --
Hi,
Maybe is it related to the SoC not only for odriodxu3 board. If so, following would be better?
---8<------------8<---
arch/arm/boot/dts/exynos5800.dtsi +2 -0
@@ -13,6 +13,8 @@ * published by the Free Software Foundation. */ +/memreserve/ 0x80000000 0x1600000; + #include "exynos5420.dtsi" / {
---8<------------8<---
- Kukjin
Hello,
Quoted 36 lines · Kukjin Kim
Quoted 15 lines · Marek Szyprowski
Last 22 MiB is RAM is reserved by secure monitor code and cannot be accessed from Linux kernel, so adjust total RAM size to
0x7EA00000(2 GiB - 22 MiB). This fixes random 'imprecise kernel abort' kernel failures.Signed-off-by Marek Szyprowski <[email protected]>--- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/exynos5422-odroidxu3.dts +0
-0arch/arm/boot/dts/exynos5422-odroidxu3.dts
Quoted 9 lines
arch/arm/boot/dts/exynos5422-odroidxu3.dts +1
-2@@ -18,7 +18,7 @@ compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5"; memory { - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7EA00000>; }; chosen { --Hi,
Maybe is it related to the SoC not only for odriodxu3 board. If so, following would be better?
---8<------------8<---
arch/arm/boot/dts/exynos5800.dtsi +0
-0
arch/arm/boot/dts/exynos5800.dtsi line 20
Quoted 8 lines
arch/arm/boot/dts/exynos5800.dtsi +2
-0@@ -13,6 +13,8 @@ * published by the Free Software Foundation. */ +/memreserve/ 0x80000000 0x1600000; + #include "exynos5420.dtsi" / {
I don't think so. It is related only to the setup done by the respective board's bootloader, not the SoC itself. It is already known that exynos 5800-based Chromebooks uses different bootloader setup (BL1+BL2+Trustzone) than Odroid XU3. Also please note that u-boot for Odroid XU3 limits the total memory passed to Linux kernel to 0x7EA00000, so we should not confuse the kernel about such 'reserved' regions. The same approach is used for Odroid X2/U3.
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Quoted 3 lines · Marek Szyprowski
Hello,
Hi,
Quoted 45 lines · Kukjin Kim
Quoted 6 lines
Quoted 5 lines · Marek Szyprowski
Last 22 MiB is RAM is reserved by secure monitor code and cannot be accessed from Linux kernel, so adjust total RAM size to
0x7EA00000(2 GiB - 22 MiB). This fixes random 'imprecise kernel abort' kernel failures.Quoted 6 lines
arch/arm/boot/dts/exynos5422-
Quoted 6 lines
Signed-off-by Marek Szyprowski <[email protected]>--- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/exynos5422- renamed from arch/arm/boot/dts/exynos5422-odroidxu3.dts +0
-0
odroidxu3.dtsQuoted 31 lines
arch/arm/boot/dts/exynos5422-odroidxu3.dts
Quoted 13 lines
index
f6fc9442f631..50843208860d100644arch/arm/boot/dts/exynos5422-odroidxu3.dts +1
-2@@ -18,7 +18,7 @@ compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5"; memory { - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7EA00000>; }; chosen { --Hi,
Maybe is it related to the SoC not only for odriodxu3 board. If so, following would be better?
---8<------------8<---
arch/arm/boot/dts/exynos5800.dtsi +2
-0@@ -13,6 +13,8 @@ * published by the Free Software Foundation. */ +/memreserve/ 0x80000000 0x1600000; + #include "exynos5420.dtsi"
Quoted 13 lines
arch/arm/boot/dts/exynos5800.dtsi line 20
Quoted 1 line
arch/arm/boot/dts/exynos5800.dtsi +0
-0/ {I don't think so. It is related only to the setup done by the respective board's bootloader,
not the SoC itself. It is already known that exynos 5800-based Chromebooks uses different
bootloader setup (BL1+BL2+Trustzone) than Odroid XU3. Also please note that u-boot for Odroid
XU3 limits the total memory passed to Linux kernel to0x7EA00000, so we should not confuse
the kernel about such 'reserved' regions. The same approach is used for Odroid X2/U3.
If the boot-loader passes limited memory, it makes sense. Thanks for the explanation.
Will apply.
- Kukjin
Sjoerd Simons
Reviewed-byQuoted 19 lines · Kukjin Kim
Quoted 18 lines · Marek Szyprowski
Last 22 MiB is RAM is reserved by secure monitor code and cannot be accessed from Linux kernel, so adjust total RAM size to
0x7EA00000(2 GiB - 22 MiB). This fixes random 'imprecise kernel abort' kernel failures.Signed-off-by Marek Szyprowski <[email protected]>--- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/exynos5422-odroidxu3.dts +0
-0@@ -18,7 +18,7 @@ compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5";
Quoted 7 lines
arch/arm/boot/dts/exynos5422-odroidxu3.dts
Quoted 7 lines
arch/arm/boot/dts/exynos5422-odroidxu3.dts +1
-2memory { - reg = <0x40000000 0x80000000>; + reg = <0x40000000 0x7EA00000>; }; chosen { --
Just checked hardkernels bootloader which defines:
#define CONFIG_TRUSTZONE_RESERVED_DRAM 0x1600000
So looks good,
Quoted 27 lines
Hi,
Maybe is it related to the SoC not only for odriodxu3 board. If so, following would be better?
---8<------------8<---
arch/arm/boot/dts/exynos5800.dtsi +2
-3@@ -13,6 +13,8 @@ * published by the Free Software Foundation. */ +/memreserve/ 0x80000000 0x1600000; + #include "exynos5420.dtsi" / { ---8<------------8<--- - Kukjin --To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html