Re: [PATCH v2] efistub/x86: Add fallback for SMBIOS record lookup

From: Francesco Pompo'
Date: Mon Nov 03 2025 - 09:45:57 EST


On Mon, Nov 03, 2025 at 02:47:22PM +0100, Ard Biesheuvel wrote:
> On Mon, 3 Nov 2025 at 13:33, Francesco Pompo <francescopompo2@xxxxxxxxx> wrote:
> >
> > 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@xxxxxxxxx>
> > ---
> > drivers/firmware/efi/libstub/x86-stub.c | 107 +++++++++++++++++++++++-
> > 1 file changed, 106 insertions(+), 1 deletion(-)
> >
>
> OK, I've pushed this to the efi/next branch now. I did apply some
> cosmetic tweaks, though, so please double check that I did not break
> anything.

Seems fine to me. I compiled it and it's working correctly on my
hardware.

Thank you! :)