All of lore.kernel.org
 help / color / mirror / Atom feed
* Implement PCIeType Property
@ 2021-05-27  7:09 Spencer Ku (古世瑜)
  2021-05-27 15:27 ` Bills, Jason M
  0 siblings, 1 reply; 4+ messages in thread
From: Spencer Ku (古世瑜) @ 2021-05-27  7:09 UTC (permalink / raw)
  To: Bills, Jason M, sunnsr25@in.ibm.com, openbmc@lists.ozlabs.org
  Cc: Litzung Chen (陳利琮), Nan Zhou

Hi All,
  We would like to implement PCIeInterface "PCIeType" property on both peci-pcie and bmcweb, then I find the PR which implement inventory properties like SparePartNumber, Model, PartNumber, SerialNumber for PCIe devices in bmcweb: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/40051

I think we modify similar part of bmcweb, but I am not sure does it will implement "PCIeType" property in the future. So could we implement "PCIeType" property first since the PR status is WIP? 

About the implement method, for peci-pcie part, first we use peci command to get the pointer of capability in PCI configure space. Then go through capability structure to find capability ID in 3rd capability structure. If the ID is PCI Express, then get the link speed in link status register. Finally, set the PCIeType property to D-Bus after translating (under /xyz/openbmc_project/PCIe/<str>) .

And for bmcweb part, we will create PCIeInterface {"PCIeType"} level (under /redfish/v1/Systems/system/PCIeDevices/<str>/ ) and fill the info from D-bus. 

On the other hand, we also interested about how to get PartNumber and SerialNumber information? I already try to get from FRU over I2C but I cannot mapping the info between FRU and peci-pcie, or is it can easily get by peci-pcie? Any comments and suggestions are welcome!

Please let us know if there's any issue, thank you!

Sincerely,
Spencer Ku

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-31  7:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-27  7:09 Implement PCIeType Property Spencer Ku (古世瑜)
2021-05-27 15:27 ` Bills, Jason M
2021-05-28  8:38   ` Spencer Ku (古世瑜)
2021-05-31  7:01   ` Spencer Ku (古世瑜)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.