Commit 1de63d60 authored by Satoru Takeuchi's avatar Satoru Takeuchi Committed by H. Peter Anvin
Browse files

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:

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

    samsung-laptop: Disable on EFI hardware

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

	noefi		[X86] Disable EFI runtime services support.

- 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
	noefi		turn off all EFI runtime services
Signed-off-by: default avatarSatoru Takeuchi <>

Cc: Matt Fleming <>
Cc: <>
Signed-off-by: default avatarH. Peter Anvin <>
parent 323a72d8
...@@ -87,7 +87,7 @@ EXPORT_SYMBOL(efi_enabled); ...@@ -87,7 +87,7 @@ EXPORT_SYMBOL(efi_enabled);
static int __init setup_noefi(char *arg) static int __init setup_noefi(char *arg)
{ {
clear_bit(EFI_BOOT, &x86_efi_facility); clear_bit(EFI_RUNTIME_SERVICES, &x86_efi_facility);
return 0; return 0;
} }
early_param("noefi", setup_noefi); early_param("noefi", setup_noefi);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment