All of lore.kernel.org
 help / color / mirror / Atom feed
* BMC sending info about which I2C bus goes to PCIe slot
@ 2018-09-06 19:48 Jaghathiswari Rankappagounder Natarajan
  0 siblings, 0 replies; only message in thread
From: Jaghathiswari Rankappagounder Natarajan @ 2018-09-06 19:48 UTC (permalink / raw)
  To: OpenBMC Maillist

[-- Attachment #1: Type: text/plain, Size: 1592 bytes --]

Hello,

BMC has information in the device tree about which I2C bus goes to which
PCIe slot.
(for example in arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts file)
&i2c2 {
status = "okay";

/* 0: PCIe Slot 2,
*    Slot 3,
*    Slot 6,
*    Slot 7
*/
i2c-switch@74 {
compatible = "nxp,pca9546";
reg = <0x74>;
#address-cells = <1>;
#size-cells = <0>;
i2c-mux-idle-disconnect;  /* may use mux@77 next. */

i2c_pcie2: i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
};

i2c_pcie3: i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
};

}

I would like the host to get this information from the BMC firmware by
sending a IPMI OEM command.

I would like to add an extra property in the device tree like:

&i2c2 {
status = "okay";

/* 0: PCIe Slot 2,
 *    Slot 3,
 *    Slot 6,
 *    Slot 7
 */
i2c-switch@74 {
compatible = "nxp,pca9546";
reg = <0x74>;
#address-cells = <1>;
#size-cells = <0>;
i2c-mux-idle-disconnect;  /* may use mux@77 next. */

i2c_pcie2: i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
                     *   slot = "PE2";*
};

i2c_pcie3: i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
                        *slot = "PE3"*
};

}
Whenever the host sends the IPMI OEM command to get the I2C bus/PCIe slot
mapping info,
the BMC can parse through all the i2c devices under /sys/bus/i2c/ and find
only the i2c devices which have a property called slot under of_node. The
BMC can send then send the corresponding I2C bus number and the slot info
as part of the IPMI command response.


Does anyone have any ideas/suggestions about this ?

[-- Attachment #2: Type: text/html, Size: 5587 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-06 19:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 19:48 BMC sending info about which I2C bus goes to PCIe slot Jaghathiswari Rankappagounder Natarajan

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.