]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
doc: Add a warning about using RELOC_ADDR_TOP
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 17 Jun 2026 07:48:25 +0000 (10:48 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 25 Jun 2026 00:13:24 +0000 (18:13 -0600)
Since devices that can't DMA above 4GiB will misbehave with this option
enabled add a warning on the documentation.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
doc/develop/memory.rst

index 5177229630d1ddbf066034a4994d29b852ae4264..3da39bb6c6644612eba71a28f3e35d577c5e9428 100644 (file)
@@ -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