Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: exynos4212-tab3: limit usable memory range

The stock bootloader on the Samsung Galaxy Tab 3 8.0 provides an
incorrect available memory range over ATAG_MEM. Limit the usable
memory in the DTS to prevent it from doing so, without having to
disable ATAG support.

Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Reviewed-by: Henrik Grimler <henrik@grimler.se>
Link: https://lore.kernel.org/r/20240217-tab3-limit-usable-memory-range-v1-1-49cc9c86a5cc@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Artur Weber and committed by
Krzysztof Kozlowski
7bff1d35 d2c81a9b

+6
+6
arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi
··· 45 45 /* Default S-BOOT bootloader loads initramfs here */ 46 46 linux,initrd-start = <0x42000000>; 47 47 linux,initrd-end = <0x42800000>; 48 + 49 + /* 50 + * Stock bootloader provides incorrect memory size in ATAG_MEM; 51 + * override it here 52 + */ 53 + linux,usable-memory-range = <0x40000000 0x3fc00000>; 48 54 }; 49 55 50 56 firmware@204f000 {