commit | a95978d6da42e5f2d8c70f4d1502820a8223094c | [log] [tgz] |
---|---|---|
author | Thang Tran <thuutran@amperecomputing.com> | Wed Jun 04 10:39:15 2025 +0700 |
committer | Thang Tran <thuutran@amperecomputing.com> | Mon Sep 15 14:04:08 2025 +0000 |
tree | 3cbcfec3eab015fcd198c99aae03be7297134e34 | |
parent | c1e7b5c3f0a2bec3bb7b5c34d7a90c8bdc6e7aac [diff] |
dcmi: Support fully power limit setting commands The correction time, sampling periodic and exception action of power limit feature have been defined in the phosphor-dbus-interface [1]. This commit supports configuration power limit attributes via setting dbus properties of Power.Cap interface. [1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Control/Power/Cap.interface.yaml Tested: 1. Request to update attributes of power limit via ipmitool $ipmitool dcmi power set_limit <parameter> <value> 2. Get the power limit configuration's parameters. $ipmitool dcmi power get_limit 3. The result as the step 1. Change-Id: Ic753e9943029a37dc392b4a500d0fb13b9cb5899 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