Skip to content

Commit

Permalink
Support get static eid config from entity manager
Browse files Browse the repository at this point in the history
The mctpd will try to find the configuration interface
"xyz.openbmc_project.Configuration.MCTPEndpoint" and parse the data.
Then it will send get EID command to target device. If we the get
the response, we publish the EID on the D-Bus.

Changes:
- Scan D-Bus for static EIDs config.
- Add a method that rescans entity-manager config for EIDs.
- Add matches for monitoring InterfaceAdded and InterfaceRemoved from entity-manger.
- Add association definition interface for EIDs that came from entity-manager config.

Test log:
- reboot and check MCTP D-Bus path
root@bmc:~# reboot

root@bmc:~# busctl tree xyz.openbmc_project.MCTP
`- /xyz
  `- /xyz/openbmc_project
    `- /xyz/openbmc_project/mctp
      `- /xyz/openbmc_project/mctp/1
        |- /xyz/openbmc_project/mctp/1/60
        `- /xyz/openbmc_project/mctp/1/8
root@bmc:~# pldmtool base GetTID -m 60
{
    "Response": 134
}

Signed-off-by: PeterHo-wiwynn <[email protected]>
  • Loading branch information
PeterHo-wiwynn committed Feb 22, 2024
1 parent 6aa4b05 commit 8de7934
Showing 1 changed file with 517 additions and 8 deletions.
Loading

0 comments on commit 8de7934

Please sign in to comment.