]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
efistub/x86: Add fallback for SMBIOS record lookup
authorFrancesco Pompo <francescopompo2@gmail.com>
Mon, 3 Nov 2025 12:25:39 +0000 (13:25 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 6 Nov 2025 22:27:06 +0000 (23:27 +0100)
commit4f90742d4a09a8253861b0d5fd0984e3cd399c9b
tree47c1eac08d9284627960210f1dae4853eec97480
parent3a8660878839faadb4f1a6dd72c3179c1df56787
efistub/x86: Add fallback for SMBIOS record lookup

Some Apple EFI firmwares do not provide the SMBIOS Protocol,
causing efi_get_smbios_record() to fail. This prevents retrieval of
system information such as product name, which is needed by
apple_set_os() to enable the integrated GPU on dual-graphics Intel
MacBooks.

Add a fallback that directly parses the SMBIOS entry point table when
the protocol is unavailable.

Signed-off-by: Francesco Pompo <francescopompo2@gmail.com>
[ardb: cosmetic tweaks]
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/x86-stub.c