Skip to content

Commit 453dfce

Browse files
ardbiesheuvelwilldeacon
authored andcommitted
arm64: booting: Require placement within 48-bit addressable memory
Some configurations (i.e., 64k + LVA/LPA) can tolerate a physical placement of the kernel image outside of the 48-bit addressable region, but given that the loader has no way of knowing whether or not the image in question supports LVA/LPA, it currently has no choice but to place it below the 48-bit mark. Once we add support for LPA2, which allows 52-bit physical and virtual addressing when using 4k or 16k pages, but in way that relies on increasing the number of paging levels, there will be more variety in the configurations that may or may not support this. So redefine bit #3 in the Image header as 'must be placed within 48-bit addressable memory', as this is the current de facto meaning. Signed-off-by: Ard Biesheuvel <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 0bb1fbf commit 453dfce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/arm64/booting.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ Header notes:
121121
to the base of DRAM, since memory below it is not
122122
accessible via the linear mapping
123123
1
124-
2MB aligned base may be anywhere in physical
125-
memory
124+
2MB aligned base such that all image_size bytes
125+
counted from the start of the image are within
126+
the 48-bit addressable range of physical memory
126127
Bits 4-63 Reserved.
127128
============= ===============================================================
128129

0 commit comments

Comments
 (0)