commit | a6181e2202d85ed10fffcc1c9a577606c7017cb9 | [log] [tgz] |
---|---|---|
author | Alpana Kumari <alpankum@in.ibm.com> | Thu May 12 05:01:53 2022 -0500 |
committer | Santosh Puranik <santosh.puranik@in.ibm.com> | Tue May 17 11:42:50 2022 +0000 |
tree | 9092106698acbb9a753754954e7ab5e6c9586502 | |
parent | f7f8da6fde1e2ca86f2439a2b6f55262c12c7db6 [diff] |
Everest: Ignore error if PCIe on low pass This commit modified isThisPcieOnPass1Planar, as Everest has different set of HW versions for PASS1 planar. Test: Verified this patch on Everest and Rainier- Trigger parser for one of the existing pcie_card- root@ever6bmc:/tmp# ./ibm-read-vpd -f /sys/bus/i2c/drivers/at24/17-0050/eeprom DBG:hwVersion-010 DBG:systemType-800480 DBG: It is Everest and Low PASS DBG: Yes, This is a PCIe on PASS1 planar, ignore this error(if any). root@ever6bmc:/tmp# root@rain104bmc:/tmp# ./ibm-read-vpd -f /sys/bus/i2c/drivers/at24/11-0050/eeprom DBG:hwVersion-01 DBG:systemType-800161 DBG: It is Rainier and Low PASS DBG: Yes, This is a PCIe on PASS1 planar, ignore error(if any). root@rain104bmc:/tmp# Signed-off-by: Alpana Kumari <alpankum@in.ibm.com> Change-Id: Iff44c4b6bf83d595470df635c069146484f091b8
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.