arm64: efi: Use SMBIOS processor version to key off Ampere quirk

[ Upstream commit eb684408f3 ]

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: 550b33cfd4 ("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: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Ard Biesheuvel 2023-02-28 17:00:49 +01:00 • committed by Greg Kroah-Hartman
commit b824efafca
3 changed files with 80 additions and 13 deletions