linux/arch/x86/platform/efi
Dave Young 5f35eb0e29 x86/efi: earlyprintk=efi,keep fix
earlyprintk=efi,keep will cause kernel hangs while freeing initmem like
below:

  VFS: Mounted root (ext4 filesystem) readonly on device 254:2.
  devtmpfs: mounted
  Freeing unused kernel memory: 880K (ffffffff817d4000 - ffffffff818b0000)

It is caused by efi earlyprintk use __init function which will be freed
later.  Such as early_efi_write is marked as __init, also it will use
early_ioremap which is init function as well.

To fix this issue, I added early initcall early_efi_map_fb which maps
the whole efi fb for later use. OTOH, adding a wrapper function
early_efi_map which calls early_ioremap before ioremap is available.

With this patch applied efi boot ok with earlyprintk=efi,keep console=efi

Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2014-05-03 06:39:06 +01:00
..
Makefile x86/efi: Add mixed runtime services support 2014-03-04 21:43:14 +00:00
early_printk.c x86/efi: earlyprintk=efi,keep fix 2014-05-03 06:39:06 +01:00
efi-bgrt.c x86/efi: Check status field to validate BGRT header 2014-02-14 10:07:15 +00:00
efi.c x86/efi: Rip out phys_efi_get_time() 2014-03-17 21:54:28 +00:00
efi_32.c x86/efi: Make efi virtual runtime map passing more robust 2014-03-04 16:17:18 +00:00
efi_64.c x86/efi: Restore 'attr' argument to query_variable_info() 2014-03-17 21:55:04 +00:00
efi_stub_32.S
efi_stub_64.S x86/efi: Preserve segment registers in mixed mode 2014-03-17 21:54:17 +00:00
efi_thunk_64.S x86/efi: Add mixed runtime services support 2014-03-04 21:43:14 +00:00