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 Apr 11, 2024
1 parent 6aa4b05 commit 417e77c
Showing 1 changed file with 679 additions and 8 deletions.
Loading

0 comments on commit 417e77c

Please sign in to comment.