arm64: efi: Use SMBIOS processor version to key off Ampere quirk
authorArd Biesheuvel <ardb@kernel.org>
Tue, 28 Feb 2023 16:00:49 +0000 (17:00 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 18 Mar 2023 10:44:56 +0000 (11:44 +0100)
commiteb684408f3ea4856639675d6465f0024e498e4b1
treeadcb1ca4142650207836b4200bbd1c7ebc76d5b8
parent34343eb06afc04af9178a9883d9354dc12beede0
arm64: efi: Use SMBIOS processor version to key off Ampere quirk

Instead of using the SMBIOS type 1 record 'family' field, which is often
modified by OEMs, use the type 4 'processor ID' and 'processor version'
fields, which are set to a small set of probe-able values on all known
Ampere EFI systems in the field.

Fixes: 550b33cfd4452968 ("arm64: efi: Force the use of ...")
Tested-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/arm64.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/smbios.c