commit | f9959724f2550127800add775271ad921e053078 | [log] [tgz] |
---|---|---|
author | Chen Yugang <yugang.chen@linux.intel.com> | Tue Jul 28 07:53:28 2020 +0800 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Sep 16 11:26:35 2020 -0500 |
tree | 0905ba5264175ed51bc350c154dc02bf56eea41c | |
parent | 11699d678d4166ff4b23900f31794754f305df64 [diff] |
add BMC node properties for modular node system In modular node system, there are several nodes in one chassis, and each node has its BMC. One node BMC takes primary role, BMC in other nodes works as secondary. Both primary BMC and secondary BMC manage their local node source, they are peer to peer. Sometimes, they need to communicate each other, for example, primary BMC needs to show all event log including secondary node event log, so it's needed to identify primary and secondary BMC role. In order to keep the modular node information in each BMC, it's needed to define DBUS properties to indicate BMC nodes and BMC role for each BMC node, then knows how many nodes in system and what's its BMC role in each node. The interface is: "xyz.openbmc_project.State.BMCRedundancy" And the object path is: "/xyz/openbmc_project/State/BMCRedundancy" The "Associations" object path is: "/xyz/openbmc_project/State/BMCRedundancy/Contained" Tested: It's tested in a modular system with multi-BMC. Change-Id: I2383a059503c7a59abc839a1109c656b20745087 Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
YAML descriptors of standard D-Bus interfaces. The format is described by the sdbusplus binding generation tool sdbus++.
This project can be built with meson
. The typical meson
workflow is: meson builddir && ninja -C builddir
.
The meson files used to handle the YAML files are automatically generated and found under the gen
subdirectory. When adding or removing YAML files, this must be regenerated. This can be done with the helper script found in the gen
subdirectory: cd gen && ./regenerate-meson
.
Only the xyz/openbmc_project interfaces are built by default. Other interfaces can be enabled by meson options:
-Ddata_com_ibm=true
-Ddata_org_open_power=true