Skip to content

arm64: Add EFI stub and runtime services support

Mark Salter linux-arm-kernel linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Changes since v1 from the cover letter

* Added Acks (well, one anyway)

* The first 3 patches are new for v2 and provide more generic support for for following EFI patches.

* Lots of changes based on feedback from Catalin mostly. I think I addressed all of his comments.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6efi: create memory map iteration helperinclude/linux/efi.h+6 -02 replies
2/6arm64: Add function to create identity mappingsarch/arm64/include/asm/mmu.h arch/arm64/mm/mmu.c+25 -101 reply
3/6efi: add helper function to get UEFI params from FDTdrivers/firmware/efi/Kconfig drivers/firmware/efi/efi.c include/linux/efi.h+95 -00 replies
4/6arm64: add EFI stubarch/arm64/Kconfig arch/arm64/kernel/Makefile arch/arm64/kernel/efi-entry.S +2 more+399 -04 replies
5/6doc: arm64: add description of EFI stub supportDocumentation/arm64/booting.txt Documentation/efi-stub.txt+13 -30 replies
6/6arm64: add EFI runtime servicesarch/arm64/Kconfig arch/arm64/include/asm/efi.h arch/arm64/kernel/Makefile +3 more+389 -11 reply

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchGrant Likely
1/6
2/6
3/6
4/6
5/6A-b
6/6

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 0/6] arm64: Add EFI stub and runtime services support

This patch series adds EFI support to the arm64 kernel. This support has two main parts: an EFI stub and runtime support. The EFI stub support has the kernel masquerade as a PE/COFF application which can be directly booted by EFI firmware (or by secondary loaders with EFI support). The runtime services support provides access to various EFI firmware services such as reboot, real-time clock, boot variables, and others.

Changes since v1:

* Added Acks (well, one anyway)

* The first 3 patches are new for v2 and provide more generic support for for following EFI patches.

* Lots of changes based on feedback from Catalin mostly. I think I addressed all of his comments.

These patches have dependencies on other patches which are not yet in the kernel but have been posted and are currently under review. In particular:

- Generic fixmap support being discussed here:
http://lkml.org/lkml/2013/11/25/474
This is now in the akpm tree

- early_ioremap support being discussed here:

      https://lkml.org/lkml/2014/1/9/708

- shared EFI update_fdt() function in this series:
http://news.gmane.org/gmane.linux.kernel.efi

A repo with this patch series and the prerequisite patches is at:

git://github.com/mosalter/linux.git (arm64-efi-patches-v2 branch)

Mark Salter (6):
efi: create memory map iteration helper
arm64: Add function to create identity mappings
efi: add helper function to get UEFI params from FDT
arm64: add EFI stub
doc: arm64: add description of EFI stub support
arm64: add EFI runtime services

 Documentation/arm64/booting.txt |   4 +
 Documentation/efi-stub.txt      |  12 +-
 arch/arm64/Kconfig              |  26 +++
 arch/arm64/include/asm/efi.h    |  12 ++
 arch/arm64/include/asm/mmu.h    |   1 +
 arch/arm64/kernel/Makefile      |   4 +
 arch/arm64/kernel/efi-entry.S   |  93 +++++++++++
 arch/arm64/kernel/efi-stub.c    | 181 ++++++++++++++++++++
 arch/arm64/kernel/efi.c         | 353 ++++++++++++++++++++++++++++++++++++++++
 arch/arm64/kernel/head.S        | 112 +++++++++++++
 arch/arm64/kernel/setup.c       |   6 +
 arch/arm64/mm/mmu.c             |  34 ++--
 drivers/firmware/efi/Kconfig    |   7 +
 drivers/firmware/efi/efi.c      |  79 +++++++++
 include/linux/efi.h             |  17 +-
 15 files changed, 927 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm64/include/asm/efi.h
 create mode 100644 arch/arm64/kernel/efi-entry.S
 create mode 100644 arch/arm64/kernel/efi-stub.c
 create mode 100644 arch/arm64/kernel/efi.c
Signature · 1 line
1.8.3.1