| commit | a7d592c7415aba84268d587d9df1047e5a968d86 | [log] [tgz] |
|---|---|---|
| author | Thang Tran <thuutran@amperecomputing.com> | Wed Sep 17 03:43:14 2025 +0000 |
| committer | Thang Tran <thuutran@amperecomputing.com> | Mon Sep 22 02:12:14 2025 +0000 |
| tree | 337d0b4dfaa51c2f6c980c58a573320ff5d52126 | |
| parent | a37edf1e452d2a02f26c0ff7b7f588ed8373bff7 [diff] |
Prevent PowerCycle action when Chassis is Off
As define in the Chapter 28.3 - Chassis Control Command of IPMI
specification, BMC should reject the PowerCycle request when Power state
is OFF and return 0xD5 error completion code.
Tested:
1. Turn on the Host
$ipmitool power on
2. Do power cycle
$ipmitool power cycle
3. Host is turned off then turned on as expectation
4. Turn off the Host
$ipmitool power off
5. Do power cycle
$ipmitool power cycle
6. BMC rejects this request and returns 0xD5 error code.
Change-Id: Ie9a232037a7cb083daae6fe3cf051ac511f2ab7d
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage