[BUG] dmi_scan_machine uses uninitialized address on x86 / EFI

From: Thomas Jourdan
Date: Mon Feb 23 2009 - 06:57:34 EST


Hi

On x86/EFI platforms, if efi_enabled is true, the dmi_scan_machine function
fails, even if valid DMI table is present. In the setup_arch function,
efi_init is called after dmi_scan_machine. But this is efi_init which will
initialize the smbios address, needed by dmi_scan_machine.

This leads to dmi_scan_machine ioremapping physical address 0, instead of
the address provided by the EFI system table. The following patch fixes the
problem.

Regards,
Thomas

Attachment: dmi_scan.patch
Description: Binary data