Skip to content

efi/libstub: arm32: Remove dependency on dram_base

Ard Biesheuvel linux-arm-kernel linux-efi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3efi/libstub: Export efi_low_alloc_above() to other unitsdrivers/firmware/efi/libstub/efistub.h drivers/firmware/efi/libstub/relocate.c+5 -20 replies
2/3efi/libstub: Use low allocation for the uncompressed kerneldrivers/firmware/efi/libstub/arm32-stub.c+37 -1400 replies
3/3efi/libstub: base FDT and initrd placement on image address not DRAM basearch/arm/include/asm/efi.h arch/arm64/include/asm/efi.h drivers/firmware/efi/libstub/efi-stub.c+5 -50 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchMaxim Uvarov
SeriesReviewed-and-Tested-by
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RFC/RFT 0/3] efi/libstub: arm32: Remove dependency on dram_base

Maxim reports boot failures on platforms that describe reserved memory regions in DT that are disjoint from system DRAM, and which are converted to EfiReservedMemory regions by the EFI subsystem in u-boot.

As it turns out, the whole notion of discovering the base of DRAM is problematic, and it would be better to simply rely on the EFI memory allocation routines instead, and derive the FDT and initrd allocation limits from the actual placement of the kernel (which is what defines the start of the linear region anyway)

Finally, we should be able to get rid of get_dram_base() entirely. However, as RISC-V only just started using it, we will need to address that at a later time.

Cc Maxim Uvarov <[email protected]>
Cc Heinrich Schuchardt <[email protected]>
Cc Atish Patra <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Jens Wiklander <[email protected]>
Cc Francois Ozog <[email protected]>
Cc Etienne CARRIERE <[email protected]>
Cc Takahiro Akashi <[email protected]>
Cc Patrice CHOTARD <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Grant Likely <[email protected]>
Cc Ilias Apalodimas <[email protected]>
Cc Christophe Priouzeau <[email protected]>
Cc Rouven Czerwinski <[email protected]>
Cc Patrick DELAUNAY <[email protected]>

Ard Biesheuvel (3):
efi/libstub: Export efi_low_alloc_above() to other units efi/libstub: Use low allocation for the uncompressed kernel efi/libstub: base FDT and initrd placement on image address not DRAM
base

 arch/arm/include/asm/efi.h                |   6 +-
 arch/arm64/include/asm/efi.h              |   2 +-
 drivers/firmware/efi/libstub/arm32-stub.c | 177 ++++----------------
 drivers/firmware/efi/libstub/efi-stub.c   |   2 +-
 drivers/firmware/efi/libstub/efistub.h    |   3 +
 drivers/firmware/efi/libstub/relocate.c   |   4 +-
 6 files changed, 47 insertions(+), 147 deletions(-)
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel