commit | c6fa66671b948811794de1144d360f574c548013 | [log] [tgz] |
---|---|---|
author | Faisal Awada <faisal@us.ibm.com> | Tue Apr 25 22:43:01 2023 -0500 |
committer | Faisal Awada <faisal@us.ibm.com> | Thu Apr 27 09:58:34 2023 -0500 |
tree | 3a2b20365a0c35bb9134cf5976ebc2fb8f4b7b3c | |
parent | 95f6aab2909b45cdb273240da75ced29e5b22f39 [diff] |
psu-ng: Validate PSUs voltage input Added logic to verify all power supplies have same input voltage. When detecting different input voltage an error is logged. Tested: The power input verification test was done on a system with two different input voltage (110v and 220v) in the following scenarios: - Chassis Off/On. - Restart the PSU monitor. - Stop entity manager and stop PSU monitor then start PSU monitor after few seconds start entity manager. - AC power Off/On. - Hot-Plug power supply. All scenarios listed above verified to report one error log. Change-Id: I85cb06517cbcc82cd478aecca0d5ee01eb1cead1 Signed-off-by: Faisal Awada <faisal@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", }