commit | 10d9405574bc9ae4b7253e145e999202c47f6b99 | [log] [tgz] |
---|---|---|
author | Jay Meyer <jaymeyer@us.ibm.com> | Mon Nov 30 14:41:21 2020 -0600 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Tue Feb 16 19:47:18 2021 +0000 |
tree | a8cbabb257174cfa8d26be72bfb68d9d4b4bc8d8 | |
parent | de0fd44f76c7cd1ae63ec39e708b352a3a7ab0a9 [diff] |
Capture PSU STATUS_MFR_SPECIFIC during analysis If there is a fault indicated in STATUS_WORD, add the STATUS_MFR_SPECIFIC value to the error log additional data. For additional diagnostic information, include the MFR status for all log entries when status word is nonzero. Change the journal entry for MFR fault to an error type, suggested in code review. Tested: Test by setting the bit in the PMBus status word in simulation for MFR and a nonzero value in STATUS_MFR_SPECIFIC. The chassis is on during this test. This change also adds the MFR status in journal entries. The journal contains an entry like this for the MFR fault: MFR fault: status word = 0x01 MFR fault = 0x1 Other journal entries: VIN_UV fault: status word = 0x08, MFR fault = 0x1 INPUT fault: status word = 0x02, MFR fault = 0x1 Note: definitions for INPUT_FAULT_WARN and MFR_SPECIFIC_FAULT were changed for testing purposes because the simulator could not set the upper bits of the status word. Signed-off-by: Jay Meyer <jaymeyer@us.ibm.com> Change-Id: Ib63ca6581c72f640aba01a95c6fe02b26ac8c1ee
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", }