commit | f087f4750c1e50e4db50c99d904d7c05f64fe4c8 | [log] [tgz] |
---|---|---|
author | Brandon Wyman <bjwyman@gmail.com> | Wed Dec 22 00:04:27 2021 +0000 |
committer | Brandon Wyman <bjwyman@gmail.com> | Fri Jan 07 00:56:17 2022 +0000 |
tree | 8b1673ee65d5601c0f03bff60a00852e6b625214 | |
parent | d5d9a225221a15e149fde22722c2c8c25469186f [diff] |
psu-ng: Refactor VIN_UV fault detection Split off code checking for VIN_UV fault in STATUS_WORD to its own function. Change-Id: Ifd07b6958885ed19c7611e10e343d1a5f10ec684 Signed-off-by: Brandon Wyman <bjwyman@gmail.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", }