ARM: remove TEXT_OFFSET override for Axxia
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ARM: take memreserve FDT entries into account when discovering base of RAMarch/ arch/ | +36 | 0 replies | |
| 2/2 | ARM: axxia: remove TEXT_OFFSET override hackarch/ | +0 | 9 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] ARM: remove TEXT_OFFSET override for Axxia
Now that the minimum relative alignment of physical to linear virtual addresses has been reduced to 2 MiB (from 16 MiB), simply rounding up the lowest usable DRAM address is no longer as wasteful as before.
Combined with Geert's DT memory discovery patch [0], we can now also cross reference the decompressor's intended load address against DT memory reservations, and override it if it points into a reserved area.
By doing this, we remove the need for TEXT_OFFSET hacks that override the placement of the decompressed kernel on all platforms to accommodate a single platform that has decided to put reserved areas at the base of DRAM.
As a first step, apply this change to mach-axxia, which is the only platform that increments TEXT_OFFSET by 3 MiB, and defines this memory reservation as a /memreserve/ entry.
Future followup work could be done that takes the /reserved-memory node into account as well, which would allow us to remove another set of TEXT_OFFSET override hacks for a collection of Qualcomm platforms.
[0] https://lore.kernel.org/linux-arm-kernel/[email protected]/
Ard Biesheuvel (2):
ARM: take memreserve FDT entries into account when discovering base of
RAM
ARM: axxia: remove TEXT_OFFSET override hack
arch/arm/Makefile | 1 - arch/arm/boot/compressed/Makefile | 2 ++ .../arm/boot/compressed/fdt_check_mem_start.c | 35 ++++++++++++++++++- 3 files changed, 36 insertions(+), 2 deletions(-)
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel