[PATCH 0/7] arm: add UEFI support

2014-07-18 Thread Leif Lindholm
This set adds support for UEFI platforms 32-bit ARM platforms, consisting of: - UEFI stub support Turns the kernel into a UEFI executable, able to launch without a dedicated bootloader. - UEFI runtime services Lets the kernel interact with services provided by firmware. (Used by

[PATCH 1/7] arm: break part of __soft_restart out into separate function

2014-07-18 Thread Leif Lindholm
Certain operations can be considered mandatory for any piece of code preparing to switch off the MMU. Break this out into separate function idmap_prepare(). Signed-off-by: Leif Lindholm leif.lindh...@linaro.org Suggested-by: Will Deacon will.dea...@arm.com Acked-by: Will Deacon

[PATCH 5/7] arm: efi: use strcmp instead of strncmp for fdt parsing

2014-07-18 Thread Leif Lindholm
The existing shared EFI arm/arm64 stub code uses strncmp when parsing the device tree. Since this function is missing from arm zImage, use strcmp instead, rather than growing the zImage further. Signed-off-by: Leif Lindholm leif.lindh...@linaro.org --- drivers/firmware/efi/libstub/fdt.c |5

[PATCH 4/7] arm: Disable stack protection for decompressor/stub

2014-07-18 Thread Leif Lindholm
From: Roy Franz roy.fr...@linaro.org The ARM decompressor/EFI stub do not implement the functions (__stack_chk_guard_setup, etc) that are required for support of stack protection. The actual enablement of stack protection is controlled by heuristics in GCC, which the code added for the EFI stub

[PATCH 7/7] init: efi: arm: enable (U)EFI runtime services on arm

2014-07-18 Thread Leif Lindholm
Since the efi_set_virtual_address_map call has strict init ordering requirements, add an explicit hook in the required place. Signed-off-by: Leif Lindholm leif.lindh...@linaro.org Acked-by: Grant Likely grant.lik...@linaro.org --- init/main.c |4 1 file changed, 4 insertions(+) diff

[PATCH 2/7] arm: add new asm macro update_sctlr

2014-07-18 Thread Leif Lindholm
A new macro for setting/clearing bits in the SCTLR. Signed-off-by: Leif Lindholm leif.lindh...@linaro.org Suggested-by: Will Deacon will.dea...@arm.com Acked-by: Will Deacon will.dea...@arm.com --- arch/arm/include/asm/assembler.h | 14 ++ 1 file changed, 14 insertions(+) diff

[PATCH 6/7] arm: add [U]EFI support

2014-07-18 Thread Leif Lindholm
From: Roy Franz roy.fr...@linaro.org This patch adds EFI stub support for the ARM Linux kernel. The EFI stub operates similarly to the x86 stub: it is a shim between the EFI firmware and the normal zImage entry point, and sets up the environment that the zImage is expecting. This includes

[PATCH 3/7] arm: add strstr to compressed string.c

2014-07-18 Thread Leif Lindholm
From: Roy Franz roy.fr...@linaro.org The shared efi-stub-helper.c functions require a strstr implementation. The EFI stub is part of the decompressor, so it does not use the kernel strstr() implementation. This patch adds a strstr() implementation to the string.c file for the decompressor, with

Re: [PATCH v3] efi/arm64: handle missing virtual mapping for UEFI System Table

2014-07-18 Thread Ard Biesheuvel
On 7 July 2014 22:38, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 7 July 2014 22:11, Matt Fleming m...@console-pimps.org wrote: On Sat, 05 Jul, at 08:25:35AM, Catalin Marinas wrote: OK, I’ll leave it to Matt then together with the other EFI patches he’s already queuing. Thanks guys.

Re: [PATCH v3] efi/arm64: handle missing virtual mapping for UEFI System Table

2014-07-18 Thread Matt Fleming
On Fri, 18 Jul, at 08:42:27PM, Ard Biesheuvel wrote: Hey Matt, I was wondering if you're on track to queue up your -next branch for 3.17? If so, could you please include $subject? And if you don't mind, could you squash the following fixup into efi: efistub: Convert into static library

Re: [PATCH v3] efi/arm64: handle missing virtual mapping for UEFI System Table

2014-07-18 Thread Ard Biesheuvel
On 18 July 2014 21:31, Matt Fleming m...@console-pimps.org wrote: On Fri, 18 Jul, at 08:42:27PM, Ard Biesheuvel wrote: Hey Matt, I was wondering if you're on track to queue up your -next branch for 3.17? If so, could you please include $subject? And if you don't mind, could you squash the

[GIT PULL] EFI changes for v3.17

2014-07-18 Thread Matt Fleming
Hi guys, please queue up the following changes for v3.17. The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f: Linux 3.16-rc1 (2014-06-15 17:45:28 -1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git

Re: [PATCH v3] efi/arm64: handle missing virtual mapping for UEFI System Table

2014-07-18 Thread Matt Fleming
On Fri, 18 Jul, at 10:11:13PM, Ard Biesheuvel wrote: Thanks, looks lovely. The only thing I notice now is that the commit message from the patch below is missing the second line, which used to read #including .c files to building the or something to that effect. Obviously, the leading