HomeFreeBSD

ipmi: support getting address from EFI

Description

ipmi: support getting address from EFI

The original implementation only supports getting the address from legacy
BIOS (by searching for the SMBIOS_SIG pattern in a fixed address space).

Try to get the SMBIOS table from EFI through efirt (EFI Runtime Services)
firstly. Continue to search in the legacy BIOS if a NULL address is
returned from EFI.

By this way the ipmi function supports both legacy BIOS and UEFI systems.

Reviewed by: dab, vangyzen
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D30007

(cherry picked from commit ee8b757a949a9575c7355ea01f0475e0c526b9e5)

Details

Provenance
yinlong.lu_dell.comAuthored on Apr 29 2021, 10:04 AM
vangyzenCommitted on Mar 3 2022, 2:20 PM
Reviewer
dab
Differential Revision
D30007: ipmi: support getting address from EFI
Parents
rG0ea19e39ff05: ipmi,smbios: move smbios_walk_table to smbios.h
Branches
Unknown
Tags
Unknown