]> git.baikalelectronics.ru Git - kernel.git/commit
efi: Clear EFI_RUNTIME_SERVICES rather than EFI_BOOT by "noefi" boot parameter
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Thu, 14 Feb 2013 00:12:52 +0000 (09:12 +0900)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 14 Feb 2013 01:24:11 +0000 (17:24 -0800)
commitfb65e0dc7767b2a2408f91a39cdcd0f9dc1eeb8f
tree336e5e18d14b139bfa43f51f667214e14219053f
parentdeeb31444950d81df9494254cefd0a0bf688b2ad
efi: Clear EFI_RUNTIME_SERVICES rather than EFI_BOOT by "noefi" boot parameter

There was a serious problem in samsung-laptop that its platform driver is
designed to run under BIOS and running under EFI can cause the machine to
become bricked or can cause Machine Check Exceptions.

    Discussion about this problem:
    https://bugs.launchpad.net/ubuntu-cdimage/+bug/1040557
    https://bugzilla.kernel.org/show_bug.cgi?id=47121

    The patches to fix this problem:
    efi: Make 'efi_enabled' a function to query EFI facilities
    c285ff050870b3ad9eb4b9b56cd9a5103bdbe71b

    samsung-laptop: Disable on EFI hardware
    d68c9e06d778cb1bef8d5db4d34937d110dd91b4

Unfortunately this problem comes back again if users specify "noefi" option.
This parameter clears EFI_BOOT and that driver continues to run even if running
under EFI. Refer to the document, this parameter should clear
EFI_RUNTIME_SERVICES instead.

Documentation/kernel-parameters.txt:
===============================================================================
...
noefi [X86] Disable EFI runtime services support.
...
===============================================================================

Documentation/x86/x86_64/uefi.txt:
===============================================================================
...
- If some or all EFI runtime services don't work, you can try following
  kernel command line parameters to turn off some or all EFI runtime
  services.
noefi turn off all EFI runtime services
...
===============================================================================

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Link: http://lkml.kernel.org/r/511C2C04.2070108@jp.fujitsu.com
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/platform/efi/efi.c