Trigger VPD recollection at standby
This commit implement changes to trigger VPD collection at
standby for FRUs which can be replaced at standby.
The recollection is trigerred when the Host current state is
set to "TransitioningToRunning". Implies the state between
Bmc standby state and Host running state.
signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I9296c80df856afe9a9b1c64a5a01cb3727af5e3c
diff --git a/examples/sample_vpd_inventory_for_recollcetion.json b/examples/sample_vpd_inventory_for_recollcetion.json
new file mode 100644
index 0000000..164c52f
--- /dev/null
+++ b/examples/sample_vpd_inventory_for_recollcetion.json
@@ -0,0 +1,1440 @@
+{
+ "commonInterfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "PartNumber": {
+ "recordName": "VINI",
+ "keywordName": "PN"
+ },
+ "SerialNumber": {
+ "recordName": "VINI",
+ "keywordName": "SN"
+ },
+ "SparePartNumber": {
+ "recordName": "VINI",
+ "keywordName": "FN"
+ },
+ "Model": {
+ "recordName": "VINI",
+ "keywordName": "CC"
+ },
+ "BuildDate": {
+ "recordName": "VR10",
+ "keywordName": "DC",
+ "encoding": "DATE"
+ }
+ },
+ "xyz.openbmc_project.Inventory.Item": {
+ "PrettyName": {
+ "recordName": "VINI",
+ "keywordName": "DR"
+ },
+ "Present": true
+ }
+ },
+ "frus": {
+ "/sys/bus/i2c/drivers/at24/8-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard",
+ "isSystemVpd": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Board.Motherboard": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system",
+ "inherit": false,
+ "isSystemVpd": true,
+ "copyRecords": ["VSYS"],
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.System": null,
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "SerialNumber": {
+ "recordName": "VSYS",
+ "keywordName": "SE"
+ },
+ "Model": {
+ "recordName": "VSYS",
+ "keywordName": "TM"
+ },
+ "SubModel": {
+ "recordName": "VSYS",
+ "keywordName": "BR"
+ }
+ },
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Umts"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis",
+ "isSystemVpd": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Chassis": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot0",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot1",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C1"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot2",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C2"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot3",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C3"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot4",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C4"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot5",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C5"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot6",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C6"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot7",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C7"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot8",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C8"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot9",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C9"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot10",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C10"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcieslot11",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C11"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/powersupply0",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-E0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/powersupply1",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-E1"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/fan0",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-A0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/fan1",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-A1"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/fan2",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-A2"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/fan3",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-A3"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/fan4",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-A4"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/fan5",
+ "inherit": false,
+ "extraInterfaces": {
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-A5"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/tod_battery",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Battery": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-E0"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/8-0051/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/ebmc_card_bmc",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Bmc": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C5"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/ebmc_card_bmc/ethernet0",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Ethernet": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C5-T0"
+ },
+ "xyz.openbmc_project.Inventory.Item.NetworkInterface": {
+ "MACAddress": {
+ "recordName": "VCFG",
+ "keywordName": "Z0",
+ "encoding": "MAC"
+ }
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/ebmc_card_bmc/ethernet1",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Ethernet": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C5-T1"
+ },
+ "xyz.openbmc_project.Inventory.Item.NetworkInterface": {
+ "MACAddress": {
+ "recordName": "VCFG",
+ "keywordName": "Z1",
+ "encoding": "MAC"
+ }
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/0-0051/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/tpm_wilson",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Tpm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C22"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/7-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/base_op_panel_blyth",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Panel": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-D0"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/7-0051/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/lcd_op_panel_hill",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Panel": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-D1"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/9-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/vdd_vrm0",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Vrm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C14"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/10-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/vdd_vrm1",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Vrm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C23"
+ }
+ }
+ }
+ ],
+ "/sys/bus/spi/drivers/at25/spi12.0/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu0",
+ "powerOffOnly" : true,
+ "offset": 196608,
+ "size": 65504,
+ "type": "fruAndModule",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C15"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu1",
+ "inheritEI": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C15"
+ }
+ }
+ }
+ ],
+ "/sys/bus/spi/drivers/at25/spi22.0/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu1",
+ "powerOffOnly" : true,
+ "offset": 196608,
+ "size": 65504,
+ "inherit": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C15"
+ }
+ }
+ }
+ ],
+ "/sys/bus/spi/drivers/at25/spi32.0/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu2",
+ "powerOffOnly" : true,
+ "offset": 196608,
+ "size": 65504,
+ "type": "fruAndModule",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C24"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu3",
+ "inheritEI": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C24"
+ }
+ }
+ }
+ ],
+ "/sys/bus/spi/drivers/at25/spi42.0/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu3",
+ "powerOffOnly" : true,
+ "offset": 196608,
+ "size": 65504,
+ "inherit": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C24"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/4-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card0",
+ "bind" : "4-0050",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT0_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT0_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "xyz.openbmc_project.Inventory.Item.FabricAdapter": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card0/cxp_top",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C0-T0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card0/cxp_bot",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C0-T1"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/5-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card3",
+ "bind" : "5-0050",
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT3_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT3_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "xyz.openbmc_project.Inventory.Item.FabricAdapter": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C3"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card3/cxp_top",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C3-T0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card3/cxp_bot",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C3-T1"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/5-0051/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card4",
+ "bind" : "5-0051",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT4_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT4_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "xyz.openbmc_project.Inventory.Item.FabricAdapter": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C4"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card4/cxp_top",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C4-T0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card4/cxp_bot",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C4-T1"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/11-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card10",
+ "bind" : "11-0050",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT10_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT10_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "xyz.openbmc_project.Inventory.Item.FabricAdapter": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C10"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card10/cxp_top",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C10-T0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card10/cxp_bot",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Connector": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C10-T1"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/4-0052/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card2",
+ "bind" : "4-0052",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT2_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT2_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C2"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/6-0053/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card6",
+ "bind" : "6-0053",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT6_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT6_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C6"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/6-0052/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card7",
+ "bind" : "6-0052",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT7_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT7_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C7"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/6-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card9",
+ "bind" : "6-0050",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT9_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT9_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C9"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/11-0051/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card11",
+ "bind" : "11-0051",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT11_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT11_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C11"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/4-0051/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card1",
+ "bind" : "4-0051",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT1_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT1_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C1"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/6-0051/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card8",
+ "bind" : "6-0051",
+ "isReplaceable" : true,
+ "busType" : "i2c",
+ "driverType" : "at24",
+ "preAction" : {
+ "pin" : "SLOT8_PRSNT_EN_RSVD",
+ "value" : 1
+ },
+ "postActionFail" : {
+ "pin" : "SLOT8_PRSNT_EN_RSVD",
+ "value" : 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C8"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/13-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.DiskBackplane": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme0",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme1",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C1"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme2",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C2"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme3",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C3"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme4",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C4"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme5",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C5"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme6",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C6"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane0/nvme7",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P1-C7"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/14-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.DiskBackplane": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme0",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme1",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C1"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme2",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C2"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme3",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C3"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme4",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C4"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme5",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C5"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme6",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C6"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane1/nvme7",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P2-C7"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/15-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.DiskBackplane": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme0",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme1",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C1"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme2",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C2"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme3",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C3"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme4",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C4"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme5",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C5"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme6",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C6"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/disk_backplane2/nvme7",
+ "inherit": false,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeSlot": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P3-C7"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/111-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm0",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C12"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/110-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm1",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C13"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/214-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm2",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C16"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/210-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm3",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C17"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/202-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm4",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C18"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/311-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm5",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C19"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/310-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm6",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C20"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/312-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm7",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C21"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/402-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm8",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C25"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/410-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm9",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C26"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/112-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm10",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C27"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/115-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm11",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C28"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/100-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm12",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C29"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/101-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm13",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C30"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/114-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm14",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C31"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/113-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm15",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C32"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/216-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm16",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C33"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/203-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm17",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C34"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/217-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm18",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C35"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/211-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm19",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C36"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/215-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm20",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C37"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/315-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm21",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C38"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/300-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm22",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C39"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/313-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm23",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C40"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/314-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm24",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C41"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/301-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm25",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C42"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/417-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm26",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C43"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/403-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm27",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C44"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/416-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm28",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C45"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/411-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm29",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C46"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/415-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm30",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C47"
+ }
+ }
+ }
+ ],
+ "/sys/bus/i2c/drivers/at24/414-0050/eeprom" :[
+ {
+ "inventoryPath": "/system/chassis/motherboard/dimm31",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Dimm": null,
+ "com.ibm.ipzvpd.Location" : {
+ "LocationCode" : "Ufcs-P0-C48"
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/vpd-manager/manager.cpp b/vpd-manager/manager.cpp
index d05dd69..036f843 100644
--- a/vpd-manager/manager.cpp
+++ b/vpd-manager/manager.cpp
@@ -40,6 +40,7 @@
try
{
processJSON();
+ listenHostState();
auto event = sdeventplus::Event::get_default();
GpioMonitor gpioMon1(jsonFile, event);
@@ -54,6 +55,48 @@
}
}
+void Manager::listenHostState()
+{
+ static std::shared_ptr<sdbusplus::bus::match::match> hostState =
+ std::make_shared<sdbusplus::bus::match::match>(
+ _bus,
+ sdbusplus::bus::match::rules::propertiesChanged(
+ "/xyz/openbmc_project/state/host0",
+ "xyz.openbmc_project.State.Host"),
+ [this](sdbusplus::message::message& msg) {
+ hostStateCallBack(msg);
+ });
+}
+
+void Manager::hostStateCallBack(sdbusplus::message::message& msg)
+{
+ if (msg.is_method_error())
+ {
+ std::cerr << "Error in reading signal " << std::endl;
+ }
+
+ Path object;
+ PropertyMap propMap;
+ msg.read(object, propMap);
+ const auto itr = propMap.find("CurrentHostState");
+ if (itr != propMap.end())
+ {
+ if (auto hostState = std::get_if<std::string>(&(itr->second)))
+ {
+ // implies system is moving from standby to power on state
+ if (*hostState == "xyz.openbmc_project.State.Host.HostState."
+ "TransitioningToRunning")
+ {
+ // check and perfrom recollection for FRUs replaceable at
+ // standby.
+ performVPDRecollection();
+ return;
+ }
+ }
+ std::cerr << "Failed to read Host state" << std::endl;
+ }
+}
+
void Manager::processJSON()
{
std::ifstream json(INVENTORY_JSON_SYM_LINK, std::ios::binary);
@@ -99,7 +142,7 @@
.get_ref<const nlohmann::json::string_t&>());
}
- if (itemEEPROM.value("isReplaceable", false))
+ if (itemEEPROM.value("replaceableAtStandby", false))
{
replaceableFrus.emplace_back(itemFRUS.key());
}
diff --git a/vpd-manager/manager.hpp b/vpd-manager/manager.hpp
index 41d3ad7..fd1a306 100644
--- a/vpd-manager/manager.hpp
+++ b/vpd-manager/manager.hpp
@@ -129,6 +129,16 @@
*/
void processJSON();
+ /** @brief Api to register host state callback.
+ * This api will register callback to listen for host state property change.
+ */
+ void listenHostState();
+
+ /** @brief Callback to listen for Host state change
+ * @param[in] msg - callback message.
+ */
+ void hostStateCallBack(sdbusplus::message::message& msg);
+
/** @brief Persistent sdbusplus DBus bus connection. */
sdbusplus::bus::bus _bus;