commit | 3ab26a74c68da014af3860c7c070b617d6195bd7 | [log] [tgz] |
---|---|---|
author | Alpana Kumari <alpankum@in.ibm.com> | Mon Apr 05 19:09:19 2021 +0000 |
committer | Santosh Puranik <santosh.puranik@in.ibm.com> | Tue Sep 14 13:01:45 2021 +0000 |
tree | 0e66caa510d34935bfe71ada12e6b45710f21e92 | |
parent | 8be4334fd9515897bed6247159edb9004ba49939 [diff] |
Dimm memory size support This commit will calculate the memory size for Dimm and populate the value with property MemorySizeinKB on dbus. Test- Tested on simics 2s2u Set the property with dummy value- root@rain71bmc:/tmp# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0| grep -e MemorySizeInKB -e Present -e PrettyName -e Model -e PartNumber -e SerialNumber .Model property s "327A" emits-change writable .PartNumber property s "78P6574" emits-change writable .SerialNumber property s "YH301T01P00G" emits-change writable .SparePartNumber property s "" emits-change writable .SubModel property s "" emits-change writable .Present property b true emits-change writable .PrettyName property s "Memory DIMM" emits-change writable .MemorySizeInKB property u 33554432 emits-change writable root@rain71bmc:/tmp# Signed-off-by: Alpana Kumari <alpankum@in.ibm.com> Change-Id: I70e5bc3f538379f9891ae0ede6cdf09a585520a4
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.