Skip to contentSkip to conversation

tegra: Stop disabling device tree relocation

PATCH In review Tom Rini 2 participants 3 messages Nov 19, 2025 – Nov 20, 2025 Tegra architecture support

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 tegra: Stop disabling device tree relocation

Remove setting of fdt_high to ~0, which disables device tree relocation, from the default environment. Doing so prevents U-Boot from correcting problems such as having an unaligned device tree and leads to various failure modes in the OS.

---
If there is some window of memory that must be used for where the device tree is relocated to, bootm_low + bootm_size (or often just bootm_size) or bootm_mapsize are the correct way do this. Please see doc/usage/environment.rst for more details.

Cc Svyatoslav Ryhel <[email protected]>
Cc Thierry Reding <[email protected]>
---
 include/configs/tegra-common-post.h | 3 ---
 1 file changed, 3 deletions(-)
include/configs/tegra-common-post.h +0 -3
index 2f08dfed020f..a9c0cea4e149 100644
@@ -50,17 +50,14 @@
 #endif
 
 #ifdef CONFIG_ARM64
-#define FDT_HIGH "ffffffffffffffff"
 #define INITRD_HIGH "ffffffffffffffff"
 #else
-#define FDT_HIGH "ffffffff"
 #define INITRD_HIGH "ffffffff"
 #endif
 
 #define CFG_EXTRA_ENV_SETTINGS \
 	TEGRA_DEVICE_SETTINGS \
 	MEM_LAYOUT_ENV_SETTINGS \
-	"fdt_high=" FDT_HIGH "\0" \
 	"initrd_high=" INITRD_HIGH "\0" \
 	"boot_targets=" BOOT_TARGETS "\0" \
 	BOARD_EXTRA_ENV_SETTINGS
Signature · 1 line
2.43.0
#1 lore raw

ср, 19 лист. 2025 р. о 16:55 Tom Rini <[email protected]> пише:

Quoted 42 lines

Remove setting of fdt_high to ~0, which disables device tree relocation, from the default environment. Doing so prevents U-Boot from correcting problems such as having an unaligned device tree and leads to various failure modes in the OS.

---
If there is some window of memory that must be used for where the device tree is relocated to, bootm_low + bootm_size (or often just bootm_size) or bootm_mapsize are the correct way do this. Please see doc/usage/environment.rst for more details.

Cc Svyatoslav Ryhel <[email protected]>
Cc Thierry Reding <[email protected]>
---
 include/configs/tegra-common-post.h | 3 ---
 1 file changed, 3 deletions(-)
include/configs/tegra-common-post.h +0 -4
index 2f08dfed020f..a9c0cea4e149 100644
@@ -50,17 +50,14 @@
 #endif
 
 #ifdef CONFIG_ARM64
-#define FDT_HIGH "ffffffffffffffff"
 #define INITRD_HIGH "ffffffffffffffff"
 #else
-#define FDT_HIGH "ffffffff"
 #define INITRD_HIGH "ffffffff"
 #endif
 
 #define CFG_EXTRA_ENV_SETTINGS \
        TEGRA_DEVICE_SETTINGS \
        MEM_LAYOUT_ENV_SETTINGS \
-       "fdt_high=" FDT_HIGH "\0" \
        "initrd_high=" INITRD_HIGH "\0" \
        "boot_targets=" BOOT_TARGETS "\0" \
        BOARD_EXTRA_ENV_SETTINGS
--
Quoted 2 lines

2.43.0

Thank you! Overall change seems to be valid and should not break anything. Unfortunately, ATM I have some major technical difficulties with testing and PC access overall. I try to find an opportunity to test and verify it ASAP. Would you mind if I include note after --- into commit message? (no additional actions needed from you).

Best regards,
Svyatoslav R.

author
#2 lore raw
Quoted 35 lines · Svyatoslav Ryhel

ср, 19 лист. 2025 р. о 16:55 Tom Rini <[email protected]> пише:

Quoted 34 lines

Remove setting of fdt_high to ~0, which disables device tree relocation, from the default environment. Doing so prevents U-Boot from correcting problems such as having an unaligned device tree and leads to various failure modes in the OS.

---
If there is some window of memory that must be used for where the device tree is relocated to, bootm_low + bootm_size (or often just bootm_size) or bootm_mapsize are the correct way do this. Please see doc/usage/environment.rst for more details.

Cc Svyatoslav Ryhel <[email protected]>
Cc Thierry Reding <[email protected]>
---
 include/configs/tegra-common-post.h | 3 ---
 1 file changed, 3 deletions(-)
include/configs/tegra-common-post.h +0 -2
index 2f08dfed020f..a9c0cea4e149 100644
@@ -50,17 +50,14 @@
 #endif
 
 #ifdef CONFIG_ARM64
-#define FDT_HIGH "ffffffffffffffff"
 #define INITRD_HIGH "ffffffffffffffff"
 #else
-#define FDT_HIGH "ffffffff"
 #define INITRD_HIGH "ffffffff"
 #endif
 
Quoted 16 lines
Quoted 10 lines
include/configs/tegra-common-post.h +0 -2
 #define CFG_EXTRA_ENV_SETTINGS \
        TEGRA_DEVICE_SETTINGS \
        MEM_LAYOUT_ENV_SETTINGS \
-       "fdt_high=" FDT_HIGH "\0" \
        "initrd_high=" INITRD_HIGH "\0" \
        "boot_targets=" BOOT_TARGETS "\0" \
        BOARD_EXTRA_ENV_SETTINGS
--

2.43.0

Thank you! Overall change seems to be valid and should not break anything. Unfortunately, ATM I have some major technical difficulties with testing and PC access overall. I try to find an opportunity to test and verify it ASAP. Would you mind if I include note after --- into commit message? (no additional actions needed from you).

Yes, please feel free to amend the commit message when you take this to your tree. It's not urgently needed (this is for v2026.04) and will be preceded in the tree by the patch that warns users that fdt_high is set like this and so may cause problems.

Signature · 1 line
Tom