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


Some platform have firmware that violates the UEFI spec and access boot
service code or data segments after the system has called ExitBootServices().
The call to efi_reserve_boot_services in setup_arch is a workaround to
avoid using boot service memory until after the kernel has done
SetVirtualAddressMap.  However, this reservation fragments memory
which can cause large allocations early in boot (e.g. crash kernel)
to fail.

This patch set creates a quirk list that governs whether
efi_reserve_boot_services is called.

A new kernel parameter is added that overrides the quirk list
and allows engineers developing new platforms to test whether
they need to have the quirk applied or not.

With this information, setup_arch avoids calling efi_reserve_boot_services
when it doesn't need to, thus avoiding fragmenting memory.


ChangeLog

V1 => v2)

In version 1 the control of the workaround was only by command line argument.
In version 2, the quirk list is the primary control of the whether
the workaround is applied.  This allows for seamless integration with
tools and doesn't require any special knowledge from the user.

The command line argument is retained for platform developers to
be able to test whether their platforms require the workaround.

Jerry Hoemann (2):
  efi: Early use of boot service memory
  x86, efi: Early use of boot service memory

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

-- 
1.7.11.3


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

end of thread, other threads:[~2013-12-16 18:43 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-21 21:01 [RFC v2 0/2] Early use of boot service memory Jerry Hoemann
2013-11-21 21:01 ` [RFC v2 1/2] efi: " Jerry Hoemann
2013-11-21 21:01 ` [RFC v2 2/2] x86, " Jerry Hoemann
2013-11-21 22:19   ` Borislav Petkov
     [not found] ` <1385067686-73500-1-git-send-email-jerry.hoemann-VXdhtT5mjnY@public.gmane.org>
2013-11-21 23:07   ` [RFC v2 0/2] " Matthew Garrett
     [not found]     ` <20131121230744.GA31592-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2013-11-21 23:18       ` H. Peter Anvin
2013-11-21 23:37         ` Matthew Garrett
2013-11-22  1:12           ` H. Peter Anvin
2013-11-22  1:25             ` jerry.hoemann
     [not found]               ` <20131122012524.GA5627-dMAi7lA+vBPDUbYHzcRnttBPR1lH4CV8@public.gmane.org>
2013-11-22  1:29                 ` Yinghai Lu
     [not found]                   ` <CAE9FiQUx5rnA0kpqXRQYtpj9Qk-4bPGaUKEbbF=XHsZbnSd6Rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-22  1:31                     ` H. Peter Anvin
2013-11-22  2:34                       ` Vivek Goyal
     [not found]                         ` <20131122023406.GG31921-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-11-22  2:42                           ` H. Peter Anvin
2013-11-22  2:32                     ` Vivek Goyal
2013-11-22  2:29                   ` Vivek Goyal
     [not found]                     ` <20131122022957.GE31921-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-11-22  3:32                       ` HATAYAMA Daisuke
2013-11-21 23:31       ` jerry.hoemann-VXdhtT5mjnY
2013-11-21 23:38         ` Matthew Garrett
     [not found]           ` <20131121233831.GB32121-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2013-11-22  1:05             ` jerry.hoemann-VXdhtT5mjnY
2013-11-22  1:16               ` Matthew Garrett
2013-12-16 18:43                 ` jerry.hoemann

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).