commit | bdca49383bffe70cbfe98829db40fe008eebbbe4 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <geissonator@yahoo.com> | Fri Jan 15 10:26:15 2021 -0600 |
committer | Andrew Geissler <geissonator@yahoo.com> | Fri Jan 15 10:26:15 2021 -0600 |
tree | baa1a5c36e6d65b70cf75d7a9591578527f1ca93 | |
parent | e35831f675880f4688ece11508322952275cd495 [diff] |
fix pseq-monitor and chassis power off race cond Downstream testing recently found an issue where chassis power would be removed before the pseq-monitor had stopped. This caused the pseq-monitor to log errors. Reviewing the systemd Conflicts documentation out at https://www.freedesktop.org/software/systemd/man/systemd.unit.html highlights some special caveats with the Conflicts statement. Mainly that ordering is not guaranteed without an After or Before clause. Testing also showed that when it comes to a service vs. target conflicts, the most systemd will do is guarantee the conflicting service is stopped before the target completes. Give the above constraints, move the pseq-monitor Conflicts to the obmc-power-stop-pre@.target and add an After clause. The obmc-power-stop-pre@.target is the target which runs prior to power being removed from the chassis. Tested: - Verified pseq monitor services consistently stop before the power is removed from the chassis. Change-Id: Ic73efc6281c3c422e0b483d4c24cb92228fd5875 Signed-off-by: Andrew Geissler <geissonator@yahoo.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", }