commit | 8afeee56a30ec8097c6ce1b53173f78dc775cc36 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Mon Oct 21 15:25:35 2019 +0800 |
committer | Lei YU <mine260309@gmail.com> | Tue Nov 05 10:45:06 2019 +0800 |
tree | 8be7785b058500c0d799c9a60590af7fb47ff8f4 | |
parent | d0f8bbb3fc1f18a3e33e55d29b1cc42e16758e91 [diff] |
Activation: add BMC reboot guard BMC shall not reboot during PSU update, otherwise it has the risk of putting the PSU in a bad state. So add BMC reboot guard in ActivationBlocksTransition to enable reboot guard when PSU update is started, and disable it when it's finished or failed. During test, it's found that the ActivationBlocksTransition is created too early before checking the PSU compatibility, it is fixed by constructing ActivationBlocksTransition after the check. Tested: Verify the BMC guard is enabled and disabled during PSU update. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: I405fe640929aa91ecbcb3d48e19309d38b6849e5
phosphor-psu-code-mgmt is a service to provide management for PSU code, including:
meson build/ && ninja -C build
meson -Doe-sdk=enabled -Dtests=enabled build/ ninja -C build/ test # Meson skips running the case due to it thinks it's cross compiling # Manually run the tests for t in `find build/test/ -maxdepth 1 -name "test_*"`; do ./$t || break ; done