commit | f05effdb612c2ffdc625f52a28cd7ff2ea0ea401 | [log] [tgz] |
---|---|---|
author | Alpana Kumari <alpankum@in.ibm.com> | Wed Apr 07 07:32:53 2021 -0500 |
committer | Santosh Puranik <santosh.puranik@in.ibm.com> | Mon May 10 09:29:02 2021 +0530 |
tree | e9b7decb11248d061ca8284cd89998208b2fcf4c | |
parent | df0a1e1eeb52c68d97c4b2e9b6e1929e7a89cfb3 [diff] |
PASS 2 Planar support for vpd parser The system has two planar passes - Pass1 & Pass2 Planars. Pass1 Planar a buffer connects all pcie cards, Whereas Pass2 Planar has mux connection established for pcie card selection. ibm-read-vpd picks up the right deviceTree and json (either 2UPass1/2UPass2/4UPass1/4UPass2) based on the HW and IM kw of the planar. Test- tested on Rainier 2U simics root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001001, HW - 0001 Processing with this JSON - /usr/share/vpd/50001001_v1.json root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001001, HW - 0011 Processing with this JSON - /usr/share/vpd/50001001_v2.json root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001000, HW - 0011 Processing with this JSON - /usr/share/vpd/50001000_v2.json root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001000, HW - 0001 Processing with this JSON - /usr/share/vpd/50001000_v1.json root@rainier:/tmp# Signed-off-by: Alpana Kumari <alpankum@in.ibm.com> Change-Id: I36de12d9697039e61e6ad569e1e119f001e782f6
#Overview 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.