linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Early use of boot service memory
@ 2013-11-12  2:15 Jerry Hoemann
  2013-11-12  2:15 ` [PATCH 1/3] efi: " Jerry Hoemann
                   ` (4 more replies)
  0 siblings, 5 replies; 46+ messages in thread
From: Jerry Hoemann @ 2013-11-12  2:15 UTC (permalink / raw)
  To: rob, tglx, mingo, hpa, x86, matt.fleming, yinghai, penberg, akpm,
	linux-doc, linux-efi, vgoyal
  Cc: linux-kernel, jerry.hoemann

Some platform have firmware that violates UEFI spec and access boot service
code or data segments after the system has called Exit Boot Services.
The call to efi_reserve_boot_services in setup_arch is a work around to
avoid using boot service memory until after the kernel has done
Set Virtual Map.

However, this reservation fragments memory which can cause
large allocations early in boot (e.g. crash kernel) to fail.

This patch set extends the add_efi_memmap with an optional
argument to specify that firmware "correctly" doesn't resuse
boot services memory after Exit Boot Services.

With this information, setup_arch avoids calling
efi_reserve_boot_services and fragmenting memory.


Jerry Hoemann (3):
  efi: Early use of boot service memory
  x86: avoid efi_reserve_boot_services
  x86, efi: Early use of boot service memory

 Documentation/kernel-parameters.txt |  8 ++++++++
 arch/x86/kernel/setup.c             |  2 +-
 arch/x86/platform/efi/efi.c         | 13 +++++++++++--
 include/linux/efi.h                 |  1 +
 4 files changed, 21 insertions(+), 3 deletions(-)

-- 
1.7.11.3


^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2014-08-01  9:59 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-12  2:15 [PATCH 0/3] Early use of boot service memory Jerry Hoemann
2013-11-12  2:15 ` [PATCH 1/3] efi: " Jerry Hoemann
2013-11-12  2:15 ` [PATCH 2/3] x86: avoid efi_reserve_boot_services Jerry Hoemann
2013-11-12  2:15 ` [PATCH 3/3] x86, efi: Early use of boot service memory Jerry Hoemann
2013-11-12 10:37 ` [PATCH 0/3] " Pekka Enberg
2013-11-12 17:55   ` jerry.hoemann
2013-11-12 18:48     ` Pekka Enberg
2013-11-12 21:52       ` jerry.hoemann
2013-11-12 18:58 ` H. Peter Anvin
2013-11-13 22:45   ` jerry.hoemann
2013-11-13 22:49     ` H. Peter Anvin
2013-11-13 23:57       ` jerry.hoemann
2013-11-14  0:05         ` H. Peter Anvin
2013-11-14  1:40           ` jerry.hoemann
2014-08-01  9:54           ` Yuhong Bao
2013-11-14  8:24         ` Pekka Enberg
2013-11-14 18:04           ` jerry.hoemann
2013-11-14 18:44             ` Pekka Enberg
2013-11-14 18:45               ` H. Peter Anvin
2013-11-15  0:50               ` jerry.hoemann
2013-11-15  6:24                 ` Ingo Molnar
2013-11-15  6:55                   ` Yinghai Lu
2013-11-15  6:59                     ` H. Peter Anvin
2013-11-15 14:07                       ` Vivek Goyal
2013-11-15 17:33                         ` Yinghai Lu
2013-11-15 17:40                           ` H. Peter Anvin
2013-11-15 18:30                             ` Vivek Goyal
2013-11-15 18:46                               ` H. Peter Anvin
2013-11-15 19:16                                 ` H. Peter Anvin
2013-11-18 15:22                                   ` Vivek Goyal
2013-11-18 18:29                                     ` H. Peter Anvin
2013-11-18 18:52                                       ` Vivek Goyal
2013-11-19  1:32                               ` H. Peter Anvin
2013-11-19  3:02                                 ` Yinghai Lu
2013-11-15 18:03                           ` Vivek Goyal
2013-11-15 22:24                             ` Yinghai Lu
2013-11-15 22:55                               ` jerry.hoemann
2013-11-15 23:43                                 ` Yinghai Lu
2013-11-18 15:32                               ` Vivek Goyal
2013-11-18 19:34                                 ` Yinghai Lu
2013-11-18 19:39                                   ` Vivek Goyal
2013-11-15 18:16                       ` jerry.hoemann
2013-11-15 19:13                   ` jerry.hoemann
2013-11-18 15:42                     ` Vivek Goyal
2013-11-15  8:36                 ` Pekka Enberg
2013-11-14 15:26       ` Vivek Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).