Merge tag 'efi-changes-for-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorIngo Molnar <mingo@kernel.org>
Mon, 25 May 2020 13:11:14 +0000 (15:11 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 25 May 2020 13:11:14 +0000 (15:11 +0200)
More EFI changes for v5.8:

 - Rename pr_efi/pr_efi_err to efi_info/efi_err, and use them consistently
 - Simplify and unify initrd loading
 - Parse the builtin command line on x86 (if provided)
 - Implement printk() support, including support for wide character strings
 - Some fixes for issues introduced by the first batch of v5.8 changes
 - Fix a missing prototypes warning
 - Simplify GDT handling in early mixed mode thunking code
 - Some other minor fixes and cleanups

Conflicts:
drivers/firmware/efi/libstub/efistub.h

Signed-off-by: Ingo Molnar <mingo@kernel.org>
1  2 
drivers/firmware/efi/libstub/efi-stub.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/tpm.c
drivers/firmware/efi/libstub/x86-stub.c
include/linux/efi.h

@@@ -102,19 -114,16 +114,29 @@@ void efi_set_u64_split(u64 data, u32 *l
  #define EFI_LOCATE_BY_REGISTER_NOTIFY         1
  #define EFI_LOCATE_BY_PROTOCOL                        2
  
+ /*
+  * boottime->stall takes the time period in microseconds
+  */
+ #define EFI_USEC_PER_SEC              1000000
+ /*
+  * boottime->set_timer takes the time in 100ns units
+  */
+ #define EFI_100NSEC_PER_USEC  ((u64)10)
 +/*
 + * An efi_boot_memmap is used by efi_get_memory_map() to return the
 + * EFI memory map in a dynamically allocated buffer.
 + *
 + * The buffer allocated for the EFI memory map includes extra room for
 + * a minimum of EFI_MMAP_NR_SLACK_SLOTS additional EFI memory descriptors.
 + * This facilitates the reuse of the EFI memory map buffer when a second
 + * call to ExitBootServices() is needed because of intervening changes to
 + * the EFI memory map. Other related structures, e.g. x86 e820ext, need
 + * to factor in this headroom requirement as well.
 + */
 +#define EFI_MMAP_NR_SLACK_SLOTS       8
 +
  struct efi_boot_memmap {
        efi_memory_desc_t       **map;
        unsigned long           *map_size;
Simple merge
Simple merge