commit | 0d61c58864a978723b84bafd8d5703a4f547c909 | [log] [tgz] |
---|---|---|
author | Priyanga Ramasamy <priyanga24@in.ibm.com> | Fri Jan 21 04:38:22 2022 -0600 |
committer | Priyanga Ramasamy <priyanga24@in.ibm.com> | Mon Feb 14 23:04:11 2022 -0600 |
tree | fb7c5c0f26c61d1a329c058676d6930930e22375 | |
parent | a0b2391a6ea9b152105a346918cd1c74e17857e4 [diff] |
Defect fix:Unexpanded DIMM location codes Defect: The DIMM location codes gets its unexpanded version in the system. As per the vpd-parser, the dimm location code gets expanded as a part of priming the inventory. But that expanded version is getting overridden by the populateInterfaces api, where the populateInterfaces api has the logic to populate unexpanded location code in dbus for frus which are not of type IPZ VPD. DIMM is one such fru which is not of type IPZ VPD. This commit has a fix to get the location code for VPD of type Keyword. Test: Tested on rainer root@p10bmc:/tmp# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0 NAME TYPE SIGNATURE RESULT/VALUE FLAGS com.ibm.ipzvpd.Location interface - - - .LocationCode property s "Ufcs-P0-C12" emits-change writable com.ibm.ipzvpd.VINI interface - - root@p10bmc:/tmp# ./ibm-read-vpd --file /sys/bus/i2c/drivers/at24/111-0050/eeprom root@p10bmc:/tmp# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0 NAME TYPE SIGNATURE RESULT/VALUE FLAGS com.ibm.ipzvpd.Location interface - - - .LocationCode property s "U78DB.ND0.1234567-P0-C12" emits-change writable com.ibm.ipzvpd.VINI interface - - - .B3 property ay 0 Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com> Change-Id: Ib199c4448d93510e6a517f49eaac94334ffb8951
This repository hosts code for OpenPower and IBM IPZ format VPD parsers. Both OpenPower VPD and IPZ VPD formats are structured binaries that consist of records and keywords. A record is a collection of multiple keywords. More information about the format can be found here.
The repository consists of two distinct applications, which are:
This is a build-time YAML driven application that parses the OpenPower VPD format and uses the YAML configuration (see extra-properties-example.yaml and writefru.yaml) to determine:
The application instance must be passed in the file path to the VPD (this can, for example, be a sysfs path exposed by the EEPROM device driver) and also the D-Bus object path(s) that EEPROM data needs to be published under.
This parser is can be built by passing in the --enable-ibm-parser
configure option. This parser differs from the OpenPower VPD parser in the following ways:
#
and are > 255 bytes in length).Making the application runtime JSON driven allows us to support multiple systems (with different FRU configurations) to be supported in a single code image as well as making the application more flexible for future improvements.