Skip to content

Commit 784c93e

Browse files
refractionwarearndb
authored andcommitted
ARM: dts: samsung: exynos4412: decrease memory to account for unusable region
The last 4 MiB of RAM on those devices is likely used by trustzone firmware, and is unusable under Linux. Change the device tree memory node accordingly. The proprietary bootloader (S-BOOT) passes these memory ranges through ATAG_MEM; this change allows us to have the correct memory ranges without relying on ATAG_MEM. Tested-by: Henrik Grimler <henrik@grimler.se> # i9300, i9305 Signed-off-by: Artur Weber <aweber.kernel@gmail.com> Link: https://lore.kernel.org/r/20240217-exynos4-memsize-fix-v1-1-7858e9c5f844@gmail.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent cceac3f commit 784c93e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm/boot/dts/samsung/exynos4412-i9300.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
memory@40000000 {
2020
device_type = "memory";
21-
reg = <0x40000000 0x40000000>;
21+
reg = <0x40000000 0x3fc00000>;
2222
};
2323
};
2424

arch/arm/boot/dts/samsung/exynos4412-i9305.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
memory@40000000 {
1313
device_type = "memory";
14-
reg = <0x40000000 0x80000000>;
14+
reg = <0x40000000 0x7fc00000>;
1515
};
1616
};
1717

arch/arm/boot/dts/samsung/exynos4412-n710x.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
memory@40000000 {
1111
device_type = "memory";
12-
reg = <0x40000000 0x80000000>;
12+
reg = <0x40000000 0x7fc00000>;
1313
};
1414

1515
/* bootargs are passed in by bootloader */

arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
memory@40000000 {
2525
device_type = "memory";
26-
reg = <0x40000000 0x80000000>;
26+
reg = <0x40000000 0x7fc00000>;
2727
};
2828

2929
aliases {

0 commit comments

Comments
 (0)