Browse Source

hw/arm/aspeed: catalina: add HMC FRU EEPROM

Use ipmitool/frugen tool to generate a HMC image based on a
sanitized set of data from a real device EEPROM.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251217-catalina-eeproms-v1-9-dc7b276efd57@stwcx.xyz
Signed-off-by: Cédric Le Goater <clg@redhat.com>
pull/316/head
Patrick Williams 3 months ago
committed by Cédric Le Goater
parent
commit
6b160e218a
  1. 42
      hw/arm/aspeed_ast2600_catalina.c

42
hw/arm/aspeed_ast2600_catalina.c

@ -341,6 +341,46 @@ static const uint8_t gb200io_eeprom[] = {
};
static const size_t gb200io_eeprom_len = sizeof(gb200io_eeprom);
/*
* HMC ("HGX Management Controller") FRU data. Generated with frugen.
*
* {
* "board": {
* "mfg": "NVIDIA",
* "pname": "P4764-A02 (QEMU)",
* "pn": "000-00000-0000-000",
* "serial": "0000000000000",
* "date": "01/12/2025 00:00",
* "custom": ["Version: G", "Rework: R0"]
* },
* "product": {
* "mfg": "NVIDIA",
* "pname": "HMC for GB200 NVL72",
* "pn": "100-00000-0000-001",
* "ver": "A1",
* "serial": "1000000000001",
* "atag": "QEMU"
* }
* }
*/
static const uint8_t hmc_eeprom[] = {
0x01, 0x00, 0x00, 0x01, 0x0b, 0x00, 0x00, 0xf3, 0x01, 0x0a, 0x19, 0x8c,
0x19, 0xf0, 0x85, 0xae, 0x9d, 0x92, 0x69, 0x08, 0x8c, 0x30, 0x75, 0x59,
0x54, 0x13, 0x42, 0x12, 0x80, 0xc4, 0x65, 0x5b, 0x27, 0x8a, 0x10, 0x04,
0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x8e, 0x10, 0x04, 0x35,
0x10, 0x04, 0x41, 0x50, 0x03, 0x41, 0x10, 0xd4, 0x40, 0x10, 0x04, 0xc0,
0xca, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x47, 0xca,
0x52, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x3a, 0x20, 0x52, 0x30, 0xc1, 0x00,
0x00, 0x00, 0x00, 0x81, 0x01, 0x09, 0x19, 0x85, 0xae, 0x9d, 0x92, 0x69,
0x08, 0xd3, 0x48, 0x4d, 0x43, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x47, 0x42,
0x32, 0x30, 0x30, 0x20, 0x4e, 0x56, 0x4c, 0x37, 0x32, 0x8e, 0x11, 0x04,
0x35, 0x10, 0x04, 0x41, 0x50, 0x03, 0x41, 0x10, 0xd4, 0x40, 0x50, 0x04,
0x82, 0x61, 0x04, 0x8a, 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04,
0x41, 0x11, 0x83, 0x71, 0xd9, 0xd6, 0xc0, 0xc1, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x65
};
static const size_t hmc_eeprom_len = sizeof(hmc_eeprom);
static void catalina_bmc_i2c_init(AspeedMachineState *bmc)
{
/* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */
@ -493,7 +533,7 @@ static void catalina_bmc_i2c_init(AspeedMachineState *bmc)
/* eeprom@55 */
at24c_eeprom_init(i2c[13], 0x55, 256);
/* eeprom@57 */
at24c_eeprom_init(i2c[13], 0x57, 256);
at24c_eeprom_init_rom(i2c[13], 0x57, 256, hmc_eeprom, hmc_eeprom_len);
/* &i2c14 */
/* io_expander9 - pca9555@10 */

Loading…
Cancel
Save