commit | 16275831b63e2df21eed140b26810f9591b00c35 | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Thu Jun 27 10:14:11 2024 -0500 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Thu Jun 27 10:33:44 2024 -0500 |
tree | 37ea32b5279dfcc3074c580d2556bb6708ebade1 | |
parent | ab73001a784c80b2e6bd59e21607e7849d0e7983 [diff] |
pseq: Check STATUS_VOUT first to find pgood fault Enhance the support for finding the correct voltage rail when a pgood fault occurs. First check the PMBus STATUS_VOUT register for all rails. Check the rails in power-on-sequence order. Checking STATUS_VOUT is usually the most accurate method. For example, if a pgood fault occurs, the power sequencer device may automatically shut off related rails. Ideally the device will only set fault bits in STATUS_VOUT for the rail with the pgood fault. However, all the related rails will likely appear to be faulted by the other methods. If no fault is found by checking STATUS_VOUT, then check the GPIOs and output voltage for all rails. Check the rails in power-on-sequence order. Tested: * Verified all automated test cases run successfully. Change-Id: Ida8732db573013f1b72edac8ed54e3cfc38da146 Signed-off-by: Shawn McCarney <shawnmm@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 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", }