Skip to content

ARM: remove TEXT_OFFSET override for Axxia

Ard Biesheuvel linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: take memreserve FDT entries into account when discovering base of RAMarch/arm/boot/compressed/Makefile arch/arm/boot/compressed/fdt_check_mem_start.c+36 -10 replies
2/2ARM: axxia: remove TEXT_OFFSET override hackarch/arm/Makefile+0 -19 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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]/

Cc Arnd Bergmann <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Russell King - ARM Linux <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Alexander Sverdlin <[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