commit | 69f760240e8bf0937652a39a3fd81d8fb180179c | [log] [tgz] |
---|---|---|
author | Priyanga Ramasamy <priyanga24@in.ibm.com> | Wed Jan 05 07:10:36 2022 +0000 |
committer | Santosh Puranik <santosh.puranik@in.ibm.com> | Thu Jan 06 13:05:08 2022 +0000 |
tree | ee1ac3c8514e070b46be9f931008971f8e5df21b | |
parent | ecb5c7d83d287dc48dba87f1b873a380ce8fd7fa [diff] |
Populate com.ibm.ipzvpd.Location interface Populate com.ibm.ipzvpd.Location interface on dbus until it gets deprecated. Test: Tested on rain57bmc. Before this change: dimm location code left unexpanded Partial output of dimm dbus introspect root@rain57bmc:/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 - - - .B3 property ay 0 emits-change writable .B4 property ay 0 emits-change writable .B7 property ay 0 emits-change writable .CC property ay 4 51 50 55 66 emits-change writable .CE property ay 0 After this change: dimm location code has expanded version root@rain57bmc:/tmp# ./ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom root@rain57bmc:/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 "U78DA.ND0.WZS002T-P0-C12" emits-change writable com.ibm.ipzvpd.VINI interface - - - .B3 property ay 0 emits-change writable .B4 property ay 0 emits-change writable .B7 property ay 0 emits-change writable .CC property ay 4 51 50 55 66 Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com> Change-Id: I977bbdabe369ddbf1dcb2354cc77c42019ab17cc
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.