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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:29 +0000 (10:34 +0200)
commite8631d84c01ece34670af0d300a6f88d86d12f70
treea47169db1b788d2e1b529a80b1d2474791f08d13
parentb026755cc9a8920cc07ceca7d91c0597ba554a1e
arm64: efi: Use SMBIOS processor version to key off Ampere quirk

commit eb684408f3ea4856639675d6465f0024e498e4b1 upstream.

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>
Signed-off-by: Jeremi Piotrowski <jpiotrowski@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/libstub/arm64-stub.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/smbios.c