summaryrefslogtreecommitdiff
path: root/psu-manager/src/utility.cpp
diff options
context:
space:
mode:
authorYong Li <yong.b.li@linux.intel.com>2019-11-19 13:25:01 +0300
committerLi, Yong B <yong.b.li@intel.com>2019-11-22 07:22:23 +0300
commit62d865faae2c183a64455abed5114d67aa61b311 (patch)
treebda3d55ad6f802977b76d944003fbe45e83c7a75 /psu-manager/src/utility.cpp
parentd095ccea8df74f9de228ab83b658d80b4fb79460 (diff)
downloadprovingground-62d865faae2c183a64455abed5114d67aa61b311.tar.xz
Sync configuration data between settings and PSU redundancy service
Add support for reading configuration from settings service, and store all these data into dbus; Rank order configuration needs to be queried from PSU redundancy service, since it will be changed from time to time. Tested: Applied https://gerrit.openbmc-project.xyz/#/c/openbmc/intel-ipmi-oem/+/27220/, With two PSUs, AC cycle the board, // two PSUs available ipmitool raw 0x30 0x2E 0x05 05 02 // Return the default order 0,0, instead of the default settings is 0 root@intel-obmc:~# ipmitool raw 0x30 0x2E 0x03 03 01 00 00 Wait for 2 minutes, the order will be changed to ascending order, and start the rotation ipmitool raw 0x30 0x2e 0x3 03 00 01 02 // Set a new order 1,2 root@intel-obmc:~# ipmitool raw 0x30 0x2d 0x03 0x01 0x01 0x02 00 // Return the new order root@intel-obmc:~# ipmitool raw 0x30 0x2E 0x03 03 01 01 02 Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: I50c469ae7b2f089d3e7cc70932e5eed4f7164f74
Diffstat (limited to 'psu-manager/src/utility.cpp')
-rw-r--r--psu-manager/src/utility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/psu-manager/src/utility.cpp b/psu-manager/src/utility.cpp
index 5446dd9..dc5573c 100644
--- a/psu-manager/src/utility.cpp
+++ b/psu-manager/src/utility.cpp
@@ -252,7 +252,7 @@ void getPSUEvent(const std::array<const char*, 1>& configTypes,
if (ec)
{
std::cerr << "Exception happened when get "
- "functional propert\n";
+ "functional property\n";
return;
}