diff options
| author | Ilias Apalodimas <[email protected]> | 2026-06-17 10:48:25 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-06-24 18:13:24 -0600 |
| commit | fb537c85bca0e3d29a62fe119181bf1744b8c91a (patch) | |
| tree | 1ece0528f796fb129f2a7d6b18cf14db130b1150 /doc/develop/memory.rst | |
| parent | aefd4a769bb6727978c408ff24b93ba9047d535d (diff) | |
doc: Add a warning about using RELOC_ADDR_TOP
Since devices that can't DMA above 4GiB will misbehave with this option
enabled add a warning on the documentation.
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Tested-by: Christophe Leroy (CS GROUP) <[email protected]>
Diffstat (limited to 'doc/develop/memory.rst')
| -rw-r--r-- | doc/develop/memory.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/develop/memory.rst b/doc/develop/memory.rst index 5177229630d..3da39bb6c66 100644 --- a/doc/develop/memory.rst +++ b/doc/develop/memory.rst @@ -111,6 +111,15 @@ U-Boot Proper Flow This follows the same as in SPL flow. In board_init_f(), a part of memory is reserved at the end of RAM (see reserve_* functions in init_sequence_f) + #. Relocation address + + By default U-Boot will try to relocate below the 4GiB boundary. If + RELOC_ADDR_TOP is enabled U-Boot will look into the dram bank config of + gd->dram[] and try to relocate to the highest available bank. Use this + with caution as devices that can only DMA below 4GiB will misbehave + since their buffers may be allocated above the 32-bit boundary. + Boards can override thre relocation address via board_get_usable_ram_top(). + #. Code Relocation relocate_code() is called which relocates U-Boot code from the current |
