Skip to content

Commit dd78af9

Browse files
committed
Merge tag 'efi-fixes-for-v6.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
Pull EFI fix from Ard Biesheuvel: "A fix from Darren to widen the SMBIOS match for detecting Ampere Altra machines with problematic firmware. In the mean time, we are working on a more precise check, but this is still work in progress" * tag 'efi-fixes-for-v6.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: arm64: efi: Force the use of SetVirtualAddressMap() on eMAG and Altra Max machines
2 parents 49a0bdb + 1902331 commit dd78af9

File tree

1 file changed

+6
-3
lines changed
  • drivers/firmware/efi/libstub

1 file changed

+6
-3
lines changed

drivers/firmware/efi/libstub/arm64.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ static bool system_needs_vamap(void)
1919
const u8 *type1_family = efi_get_smbios_string(1, family);
2020

2121
/*
22-
* Ampere Altra machines crash in SetTime() if SetVirtualAddressMap()
23-
* has not been called prior.
22+
* Ampere eMAG, Altra, and Altra Max machines crash in SetTime() if
23+
* SetVirtualAddressMap() has not been called prior.
2424
*/
25-
if (!type1_family || strcmp(type1_family, "Altra"))
25+
if (!type1_family || (
26+
strcmp(type1_family, "eMAG") &&
27+
strcmp(type1_family, "Altra") &&
28+
strcmp(type1_family, "Altra Max")))
2629
return false;
2730

2831
efi_warn("Working around broken SetVirtualAddressMap()\n");

0 commit comments

Comments
 (0)