History log of /openbmc/google-ipmi-sys/cpu_config.cpp (Results 1 – 1 of 1)
Revision Date Author Comments
# 4134c74b 11-Jan-2026 Vikram Gara <vikramgara@google.com>

Added IPMI handler to support core count request

This change introduces a new OEM IPMI command (#30 - SysGetCoreCount)
to allow the BIOS or host to query the number of CPU cores as reported
by the B

Added IPMI handler to support core count request

This change introduces a new OEM IPMI command (#30 - SysGetCoreCount)
to allow the BIOS or host to query the number of CPU cores as reported
by the BMC.

The core count is read from /run/cpu_config.json on the BMC. If the file
is not found or invalid, the command will return an error or 0 cores.

This is needed for the BIOS to dynamically adjust settings based on the
CPU configuration .

Tested:
{
  "cpu_core_count": 255
}
root@ddcgq3-nfd01:/# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x1a
 79 2b 00 1a ff 00

 79 2b 00 1a 00 01
{
  "cpu_core_count": 256
}

cat /run/cpu_config.json
{
  "cpu_core_count": 320
}
 79 2b 00 1a 40 01

Change-Id: I946d5ac918a2dae8a94e1b348446075e72007e3e
Signed-off-by: Vikram Gara <vikramgara+bmc@google.com>

show more ...