commit | 9094d4f6453ca8fcca2d6d62967631cb8bedbcc6 | [log] [tgz] |
---|---|---|
author | SunnySrivastava1984 <sunnsr25@in.ibm.com> | Wed Aug 05 09:32:29 2020 -0500 |
committer | SunnySrivastava1984 <sunnsr25@in.ibm.com> | Mon Jan 11 07:40:29 2021 -0600 |
tree | cbcf315dbb69af998a77f1a7ec4392f5f3b7645b | |
parent | 2f793048e555c880122d5193e4644a21e6cb37f8 [diff] |
Restore system VPD if EEPROM data is blank. This commit implement changes which enables restoring system VPD. If at the time of VPD parsing for backplane it is found that data related to system VPD is blank on EEPROM but available on cache, then the data from Dbus will be used to restore data in EEPROM. There are another scenarios in restoring the system VPD but this commit only implement changes to restore system VPD when the data is available on cache but blank on EEPROM. This commit also implements creation and logging of PEL in case blank system VPD is found both on EEPROM and Dbus in the process of system VPD restore. Meson Build: OK. Tested on Simics: OK. Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com> Change-Id: I32a872b3c3a74b79a9b8173c712b50f72fd7588c
#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.