commit | 9bd94d36aaac4a341d576c241e5379d76b24ef85 | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Mon Jan 25 19:40:42 2021 -0600 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Wed Jan 27 15:40:28 2021 -0600 |
tree | 056e33c956c084b332bbb255d7700b254bc2b49e | |
parent | 589c181a345406e5764084aa177e0616e212b44f [diff] |
regulators: Clear cached hardware data during boot Clear cached data about hardware devices when the system is powering on (booting). While the system was powered off, hardware devices containing voltage regulators could have been added, removed, or replaced. Cached hardware data might now be invalid. Tested: * Ran automated test cases * Verified that cached data is cleared without errors during boot * When config file was found and loaded * When no config file was found Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: Ief45fe32ddcb122847d201e89ca1267526a87e3c
This repository contains applications for configuring and monitoring devices that deliver power to the system.
To build all applications in this repository:
meson build ninja -C build
To clean the repository and remove all build output:
rm -rf build
You can specify meson options to customize the build process. For example, you can specify:
Several applications in this repository require a PSU JSON config to run. The JSON config file provides information for:
There is an example psu.json to describe the necessary configurations.
inventoryPMBusAccessType
defines the pmbus access type, which tells the service which sysfs type to use to read the attributes. The possible values are:/sys/bus/i2c/devices/3-0069/
/sys/bus/i2c/devices/3-0069/hwmon/hwmonX/
/sys/kernel/debug/pmbus/hwmonX/
/sys/kernel/debug/pmbus/hwmonX/cffps1/
fruConfigs
defines the mapping between the attribute file and the FRU inventory interface and property. The configuration example below indicates that the service will read part_number
attribute file from a directory specified by the above pmbus access type, and assign to PartNumber
property in xyz.openbmc_project.Inventory.Decorator.Asset
interface."fruConfigs": [ { "propertyName": "PartNumber", "fileName": "part_number", "interface": "xyz.openbmc_project.Inventory.Decorator.Asset" } ]
psuDevices
defines the kernel device dir for each PSU in inventory. The configuration example below indicates that powersupply0
's device is located in /sys/bus/i2c/devices/3-0069
."psuDevices": { "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0" : "/sys/bus/i2c/devices/3-0069", }