commit | ee3983b0c235af45f98e5ac6f638c3d35091cd41 | [log] [tgz] |
---|---|---|
author | Chau Ly <chaul@amperecomputing.com> | Fri Jan 05 07:33:45 2024 +0000 |
committer | ChauLy-Vietnam <chaul@amperecomputing.com> | Mon Mar 03 02:35:26 2025 +0000 |
tree | 8a499626535dd9844939e49cc0b03300300101e0 | |
parent | c6837ed72897291ef6ee50bfe81962478090450c [diff] |
Correct chassis's PowerState reading condition phosphor-dbus-interfaces defines 4 values for PowerState property under xyz.openbmc_project.State.Chassis interface [1]. The current logic causes all the other values except for `xyz.openbmc_project.State.Chassis.PowerState.On` to be interpreted as `Off` in `ipmitool power status`. This patch supports interpreting CurrentPowerState value to adapt all states following the logic in the Tested section below. Tested: `D-Bus value ends with` <=> `$ipmitool power status` *.Off <=> Chassis Power is off *.TransitioningToOn <=> Chassis Power is off *.On <=> Chassis Power is on *.TransitioningToOff <=> Chassis Power is on [1]: https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/State/Chassis.interface.yaml Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: Ic8e9f0a10b061137126ed3e24ad71e3bf80a5a34
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