Skip to content

1210: Add contained_by association for CpuCore interface - #769

Open
baemyung wants to merge 1 commit into
ibm-openbmc:1210from
baemyung:1210--pldm-add-cpu-cpucore-assoc
Open

1210: Add contained_by association for CpuCore interface#769
baemyung wants to merge 1 commit into
ibm-openbmc:1210from
baemyung:1210--pldm-add-cpu-cpucore-assoc

Conversation

@baemyung

@baemyung baemyung commented Jun 17, 2026

Copy link
Copy Markdown

Cpu & CpuCore is expressed via associations {containing, contained_by} in the phosphor-dbus-interfaces specification [1].

This commit is to implement an example code change to create the association in pldm.

Example:
CpuCore: /xyz/openbmc_project/inventory/.../cpu0/core0
Association: contained_by -> /xyz/openbmc_project/inventory/.../cpu0
This association is going to be used in bmcweb - e.g. upstream commits [2][3]

[1] openbmc/phosphor-dbus-interfaces@8c79b1d
[2] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/38570
[3] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/64982

Cpu & CpuCore is expressed via associations `{containing, contained_by}`
in the phosphor-dbus-interfaces specification [1].

This commit is to implement an example code change to create the
association in pldm.

Example:
  CpuCore: /xyz/openbmc_project/inventory/.../cpu0/core0
  Association: contained_by -> /xyz/openbmc_project/inventory/.../cpu0

[1] openbmc/phosphor-dbus-interfaces@8c79b1d

Signed-off-by: Myung Bae <myungbae@us.ibm.com>
@baemyung

Copy link
Copy Markdown
Author

This commit is an example backend pldm implementation to create the association {containing,contained_by} between Cpu and CpuCore.

The related upstream commits:

1210 bmcweb PR: ibm-openbmc/bmcweb#1488

Note: depending on the target release of PLDM implementation, bmcweb may change its target release.

@jenkins-openbmc-ibm

Copy link
Copy Markdown

Can one of the admins verify this patch?

@jaypadath jaypadath left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In P12, Processor Cores are not hosted by PLDM and its done by PIM. So this code change has no effect for Huygens systems.

{
cpuCore.emplace(path, std::make_unique<CPUCore>(
pldm::utils::DBusHandler::getBus(), path));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PIM hosts Processor and Processor cores, so the Processor - Processor core association should be added by Phosphor-dbus-interface.
Since the PLDM changes are no longer in use, this commit can be dropped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants