]> git.baikalelectronics.ru Git - kernel.git/commit
efi/x86: Disallow efi=old_map in mixed mode
authorArd Biesheuvel <ardb@kernel.org>
Sat, 18 Jan 2020 16:57:05 +0000 (17:57 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 22 Jan 2020 07:01:13 +0000 (08:01 +0100)
commit8f024d590303614fd520c620c38a239ac5334ec7
tree068409381d3468e4d0d6f3f7df1027eb47a4c36c
parentdd0d37e9ffd34d61575267ac159dbdc9c3c2d14f
efi/x86: Disallow efi=old_map in mixed mode

Before:

  f0d53f3aea69: ("efi/x86: Limit EFI old memory map to SGI UV machines")

enabling the old EFI memory map on mixed mode systems
disabled EFI runtime services altogether.

Given that efi=old_map is a debug feature designed to work around
firmware problems related to EFI runtime services, and disabling
them can be achieved more straightforwardly using 'noefi' or
'efi=noruntime', it makes more sense to ignore efi=old_map on
mixed mode systems.

Currently, we do neither, and try to use the old memory map in
combination with mixed mode routines, which results in crashes,
so let's fix this by making efi=old_map functional on native
systems only.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/uv/bios_uv.c