]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
efi/runtime-map: Use efi.memmap directly instead of a copy
authorMatt Fleming <matt@codeblueprint.co.uk>
Tue, 1 Mar 2016 23:02:56 +0000 (23:02 +0000)
committerMatt Fleming <matt@codeblueprint.co.uk>
Fri, 9 Sep 2016 15:08:36 +0000 (16:08 +0100)
commit31ce8cc68180803aa481c0c1daac29d8eaceca9d
tree8c5310d53093e288169a193b1776ce33b4237589
parent816e76129ed5fadd28e526c43397c79775194b5c
efi/runtime-map: Use efi.memmap directly instead of a copy

Now that efi.memmap is available all of the time there's no need to
allocate and build a separate copy of the EFI memory map.

Furthermore, efi.memmap contains boot services regions but only those
regions that have been reserved via efi_mem_reserve(). Using
efi.memmap allows us to pass boot services across kexec reboot so that
the ESRT and BGRT drivers will now work.

Tested-by: Dave Young <dyoung@redhat.com> [kexec/kdump]
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [arm]
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Peter Jones <pjones@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
arch/x86/platform/efi/efi.c
drivers/firmware/efi/runtime-map.c
include/linux/efi.h