[PATCH 0/2] arm64/efi: fix kernel allocation at base of DRAM

Ard Biesheuvel ard.biesheuvel at linaro.org
Wed Jul 29 03:04:17 PDT 2015

This series provides an alternative to 'arm64/efi: prefer AllocatePages() over
efi_low_alloc() for vmlinux', of which a v2 was sent out on July 24th.

This series updates efi_low_alloc() to support doing allocations that start
at a fixed offset from an aligned boundary, as is required for allocating the
arm64 kernel 512 KB above a 2 MB boundary.

With these changes, the arm64 placement code can be simplified, and will deal
better with the HiKey platform, whose DRAM starts at 0x0, and APM Mustang, whose
firmware occupies some memory at the base of DRAM, which is currently preventing
the arm64 kernel from using the bottom 2 MB.

Ard Biesheuvel (2):
  efi: add 'offset' param to efi_low_alloc()
  arm64/efi: use efi_low_alloc() with offset to allocate kernel

 arch/arm64/kernel/efi-stub.c                   | 11 ++++++-----
 arch/x86/boot/compressed/eboot.c               |  4 ++--
 drivers/firmware/efi/libstub/efi-stub-helper.c | 20 +++++++++++++++-----
 include/linux/efi.h                            |  2 +-
 4 files changed, 24 insertions(+), 13 deletions(-)


More information about the linux-arm-kernel mailing list