Cpu/PCIeSlot: Add {connecting, connected_to}
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/64951
removes the current associated_pcie_slots, upstream_processor
association.
This commit adds that association back but with an existing association.
Redfish is adding this link to the PCIeDevice so will have to do
something like Cpu -> Connected_to -> PCIeSlot -> Containing ->
PCIeDevice to fill this out in bmcweb. If instead we put this on
PCIeDevice wouldn't be able to have this link for empty PCIeSlots.
[1] was the original commit for Cpu, PCIeDevice association.
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/61509 is the commit adding
this Link to Redfish, it should be refreshed with this newly named
association.
Redfish describes this as "An array of links to the processors that are
directly connected or directly bridged to this PCIe slot."
Took descriptions from [2].
[1] https://github.com/openbmc/phosphor-dbus-interfaces/commit/df55704398ec8fc3cc608206f05a2226f134c786
[2] https://github.com/openbmc/phosphor-dbus-interfaces/commit/df32eb57476e86044a996c5f2b6765a772c10de4
Change-Id: I7a5be817b565de035e6166b07743f0ec8e919950
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml
index 83e7384..c134417 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml
@@ -86,3 +86,12 @@
- name: PowerPerformanceControl
description: >
Support power/performance control.
+
+associations:
+ name: connecting
+ description: >
+ Objects that implement Cpu can optionally implement the connecting
+ association to provide links to one or more PCIeSlot.
+ reverse_name: connected_to
+ required_endpoint_interfaces:
+ - xyz.openbmc_project.Inventory.Item.PCIeSlot
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml
index fabd1b3..0bf1ac4 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml
@@ -97,3 +97,11 @@
- name: "Unknown"
description: >
Type of the PCIe slot is unknown
+
+association:
+ name: connected_to
+ description: >
+ Objects that are connected at the other end of the link.
+ reverse_name: connecting
+ required_endpoint_interfaces:
+ - xyz.openbmc_project.Inventory.Item.Cpu
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/README.md b/yaml/xyz/openbmc_project/Inventory/Item/README.md
index d9709a0..aacf70c 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/README.md
+++ b/yaml/xyz/openbmc_project/Inventory/Item/README.md
@@ -25,3 +25,4 @@
`{fault_identifying, fault_identified_by}`
- powerSupply and item: `{powering, powered_by}`
- FabricAdapter and port: `{connecting, connected_to}`
+- Cpu and PCIeSlot: `{connecting, connected_to}`