]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/efi-bgrt: Use efi_mem_reserve() to avoid copying image data
authorMatt Fleming <matt@codeblueprint.co.uk>
Thu, 23 Jun 2016 10:36:32 +0000 (11:36 +0100)
committerMatt Fleming <matt@codeblueprint.co.uk>
Fri, 9 Sep 2016 15:08:38 +0000 (16:08 +0100)
commit4bc9f92e64c81192dcca1c495354bcc7c3b43e7d
tree1e8decb9bf86792cd280c4ee6bc976d3c0d5f096
parent8e80632fb23f021ce5a6957f2edcdae4645a7030
x86/efi-bgrt: Use efi_mem_reserve() to avoid copying image data

efi_mem_reserve() allows us to permanently mark EFI boot services
regions as reserved, which means we no longer need to copy the image
data out and into a separate buffer.

Leaving the data in the original boot services region has the added
benefit that BGRT images can now be passed across kexec reboot.

Reviewed-by: Josh Triplett <josh@joshtriplett.org>
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>
Cc: Josh Boyer <jwboyer@fedoraproject.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Môshe van der Sterre <me@moshe.nl>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
arch/x86/platform/efi/efi-bgrt.c