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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux