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
}
  • Loading branch information
PeterHo-wiwynn committed Dec 15, 2023
1 parent 6aa4b05 commit eed15c8
Showing 1 changed file with 370 additions and 2 deletions.
Loading

0 comments on commit eed15c8

Please sign in to comment.