How openbmc/smbios-mdr works
smbios-mdr provides two OpenBMC applications: an SMBIOS ingestion/parser that publishes inventory over D-Bus, and Intel CPU-information/SST discovery and control. The main workflow accepts host firmware data through MDRv2 or the optional IPMI blob API, parses SMBIOS, and publishes system and component inventory. The README documents the blob cache-and-synchronize route and the CPU app’s I2C/PECI and SST capabilities. Several implementation relationships are documented only at subsystem level; unverified parser-to-publisher links are dashed.
Main entry points: mdrv2.cpp SMBIOS Parser · cpuinfo_main.cpp CPU Info App · handler.cpp SMBIOS Blob Handler · speed_select.cpp SST Discovery and Control
Components 19
SMBIOS Ingestion
- MDRv2 Service
src/mdrv2.cpp - SMBIOS Blob Handler
src/smbios-ipmi-blobs/handler.cpp - SMBIOS Cache
SMBIOS Inventory
- SMBIOS Parser
src/mdrv2.cpp - System Inventory
src/system.cpp - CPU Inventory
src/cpu.cpp - Memory Inventory
src/dimm.cpp - PCIe Inventory
src/pcieslot.cpp - PCIe Devices
src/pciedevice.cpp - Firmware Inventory
src/firmware_inventory.cpp - TPM Inventory
src/tpm.cpp
CPU Information
- CPU Info App
src/cpuinfo_main.cpp - CPU Info Utilities
src/cpuinfo_utils.cpp
Speed Select
- SST Discovery and Control
src/speed_select.cpp - SST Mailbox
src/sst_mailbox.cpp
Other components
- Host Firmware
- IPMI Clients
- OpenBMC D-Bus
- I2C / PECI
Connections 24
- Host Firmware → MDRv2 Service: sends SMBIOS
README.md - IPMI Clients → SMBIOS Blob Handler: transfers blob
README.md - SMBIOS Blob Handler → SMBIOS Cache: writes table
README.md - SMBIOS Blob Handler → MDRv2 Service: requests synchronization
README.md - MDRv2 Service → SMBIOS Parser: supplies table
src/mdrv2.cpp - SMBIOS Parser → System Inventory: publishes system data
- SMBIOS Parser → CPU Inventory: publishes CPU data
- SMBIOS Parser → Memory Inventory: publishes memory data
- SMBIOS Parser → PCIe Inventory: publishes slot data
- SMBIOS Parser → PCIe Devices: publishes device data
- SMBIOS Parser → Firmware Inventory: publishes firmware data
- SMBIOS Parser → TPM Inventory: publishes TPM data
- System Inventory → OpenBMC D-Bus: exposes inventory
- CPU Inventory → OpenBMC D-Bus: exposes inventory
- Memory Inventory → OpenBMC D-Bus: exposes inventory
- PCIe Inventory → OpenBMC D-Bus: exposes inventory
- PCIe Devices → OpenBMC D-Bus: exposes inventory
- Firmware Inventory → OpenBMC D-Bus: exposes inventory
- TPM Inventory → OpenBMC D-Bus: exposes inventory
- CPU Info App → CPU Info Utilities: uses host-state utilities
src/cpuinfo_main.cpp - CPU Info App → I2C / PECI: gathers CPU details
README.md - CPU Info App → SST Discovery and Control: discovers and controls SST
README.md - SST Discovery and Control → SST Mailbox: uses mailbox
- SST Discovery and Control → OpenBMC D-Bus: publishes SST objects