commit | c9b05736f43c9e16737a31140ff2b7a36373da81 | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Sat Mar 19 15:15:10 2022 +0000 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Mon Mar 28 18:44:38 2022 +0000 |
tree | 9ff7c518cd7241d041d125c3d4d4f688dc3fee45 | |
parent | d97aa516d69ca8a0d3880af4b1d775e62a6dd5dd [diff] |
psu-ng: Implement the PowerSystemInputs interface Implement the PowerSystemInputs interface which contains the status of the power inputs to the chassis. The psu monitor app will use the status property to communicate if a brownout condition exists. Implement this interface under a /chassis0 path to specify it applies to the current chassis. This can later be enhanced to support a multi-chassis configuration. Tested: The status property exists and it's set to default value Good: root@p10bmc:~# busctl get-property xyz.openbmc_project.Power.PSUMonitor\ /xyz/openbmc_project/power/power_supplies/chassis0/psus\ xyz.openbmc_project.State.Decorator.PowerSystemInputs Status s "xyz.openbmc_project.State.Decorator.PowerSystemInputs.Status.Good" Change-Id: I7cf4d13e632841e0b19b52af0d9eac886eb161ce Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
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", }