commit | 3a492527fd18be317e257a58c772c2fb7775376c | [log] [tgz] |
---|---|---|
author | Andrew Geissler <geissonator@yahoo.com> | Thu Nov 30 13:30:51 2023 -0600 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Mon Dec 11 15:56:01 2023 +0000 |
tree | 76b036a991fc631c8fabc468916c936297ec2527 | |
parent | d694d8fcb0b15055a3e14567db975cc625dbe60c [diff] |
power-supply: don't fail if synch gpio not found Working on a new system, aptly named system1, I hit issues utilizing the psu monitor on power on where it was failing and putting the BMC state into Quiesced. The reason was that the power-ffs-sync-history GPIO is not defined in the device tree for system1. The power supply details are still being worked but they are going to look a lot like the p10bmc supplies so would like to utilize the psu-monitoring features. With this change I confirmed that the system1 simulation model powers on and everything looks good with the d-bus objects for the power supplies. If the current behavior is desired, then we could look into a meson config option to define whether the power synch function is wanted. Tested: - Confirmed system1 chassis poweron works without psu-monitor service failing Change-Id: I3c8f50c6ae3c4ca150762e3828ab8a1935f7773f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
This repository contains applications for configuring and monitoring devices that deliver power to the system.
To build all applications in this repository:
meson setup 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", }