From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH 00/14] EFI capsule update support for IOT2000 devices Date: Wed, 30 Aug 2017 21:13:42 +0200 Message-ID: Return-path: Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ben Hutchings Cc: cip-dev-Y7OTERR3vatcpJa9FCkz6gFcV7zePqp5@public.gmane.org, Andy Lutomirski , Andy Lutomirski , Ard Biesheuvel , Borislav Petkov , Brian Gerst , Bryan O'Donoghue , Denys Vlasenko , "H . Peter Anvin" , joeyli , Josh Poimboeuf , Kweh Hock Leong , Linus Torvalds , linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Salter , Matt Fleming , Peter Jones , Peter Zijlstra , Sam Protsenko , stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Gleixner List-Id: linux-efi@vger.kernel.org Last chunk: This backports EFI capsule updates, primarily for the use with the IOT2020 and IOT2040, the latter with Quark-proprietary security header format. The feature should also work for the Galileo Gen 2 and, at least conceptually, for any EFI capsule update compatible firmware. Jan Cc: Andy Lutomirski Cc: Andy Lutomirski Cc: Ard Biesheuvel Cc: Borislav Petkov Cc: Brian Gerst Cc: Bryan O'Donoghue Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: joeyli Cc: Josh Poimboeuf Cc: Kweh Hock Leong Cc: Linus Torvalds Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Mark Salter Cc: Matt Fleming Cc: Peter Jones Cc: Peter Zijlstra Cc: Sam Protsenko Cc: # v4.7 Cc: Thomas Gleixner Ard Biesheuvel (3): efi/capsule-loader: Use a cached copy of the capsule header efi/capsule-loader: Redirect calls to efi_capsule_setup_info() via weak alias efi/capsule-loader: Use page addresses rather than struct page pointers Austin Christ (1): efi/capsule: Allocate whole capsule into virtual memory Jan Kiszka (5): efi/capsule: Fix return code on failing kmap/vmap efi/capsule: Remove pr_debug() on ENOMEM or EFAULT efi/capsule: Clean up pr_err/_info() messages efi/capsule: Adjust return type of efi_capsule_setup_info() efi/capsule: Add support for Quark security header Kweh, Hock Leong (1): efi: Add misc char driver interface to update EFI firmware Matt Fleming (4): efi: Move efi_status_to_err() to drivers/firmware/efi/ efi: Add 'capsule' update support x86/efi: Force EFI reboot to process pending capsules efi/capsule: Move 'capsule' to the stack in efi_capsule_supported() arch/x86/kernel/reboot.c | 9 + arch/x86/platform/efi/quirks.c | 137 ++++++++++++++ drivers/firmware/efi/Kconfig | 19 ++ drivers/firmware/efi/Makefile | 2 + drivers/firmware/efi/capsule-loader.c | 330 ++++++++++++++++++++++++++++++++++ drivers/firmware/efi/capsule.c | 294 ++++++++++++++++++++++++++++++ drivers/firmware/efi/efi.c | 33 ++++ drivers/firmware/efi/reboot.c | 12 +- drivers/firmware/efi/vars.c | 33 ---- include/linux/efi.h | 34 ++++ 10 files changed, 869 insertions(+), 34 deletions(-) create mode 100644 drivers/firmware/efi/capsule-loader.c create mode 100644 drivers/firmware/efi/capsule.c -- 2.12.3