Open gtmills opened 4 years ago
Should also think about making associations between cores and cpus? As opposed to determining this from D-Bus pathnames? Something to discuss @gtmills.
There is a proposed dbus interface here https://gerrit.openbmc-project.xyz/29695
@bradbishop This story is for processor cores which I think should be determined by the CpuCore D-Bus Interface. https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Inventory/Item/CpuCore.interface.yaml
Not sure that review of additional CPU properties is relevant.?
@dkodihal Using an association sounds like the "more correct" solution. Although I would be fine with either solution, using the pathnames or an association.
The story owner should probably check with the community before implementing the pathnames solution or risk throwing away the code.
Should also think about making associations between cores and cpus?
could you show an example? Thanks :)
Should also think about making associations between cores and cpus? As opposed to determining this from D-Bus pathnames? Something to discuss @gtmills.
@gtmills @lxwinspur I had a discussion about this a while back on the OpenBMC IRC (with Patrick, Ed and others). Though this is not documented yet, but the consensus seemed to be to use pathnames for containment (cores under a CPU) and to use associations for logical relations (main memory accessible to a CPU). So pathnames seems to be okay to do here.
That seems reasonable to me to use the D-Bus path here.
refresh
@lxwinspur Can we get this in?
Sure
@lxwinspur Can you update this https://gerrit.openbmc.org/c/openbmc/bmcweb/+/38570 ?
@lxwinspur Can you update this https://gerrit.openbmc.org/c/openbmc/bmcweb/+/38570 ?
Updated
Have CPU cores on d-bus https://github.com/openbmc/phosphor-dbus-interfaces/blob/05375b14e5a68ac249da6a8cd68e3d522a7ed022/xyz/openbmc_project/Inventory/Item/CpuCore.interface.yaml
Should model these in Redfish: From https://redfish.dmtf.org/schemas/v1/Processor.v1_7_0.json
So cores would be implemented at /Systems/{ComputerSystemId}/Processors/{ProcessorId}/SubProcessors/{ProcessorId2} E.g. /redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core11