Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support get static eid config from entity manager #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 11, 2024

  1. Support get static eid config from entity manager

    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]>
    PeterHo-wiwynn committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    417e77c View commit details
    Browse the repository at this point in the history