<div dir="ltr">ipmbbridge works over ipmb-dev:<div><a href="https://github.com/openbmc/ipmbbridge/blob/master/ipmbbridged.cpp#L548">https://github.com/openbmc/ipmbbridge/blob/master/ipmbbridged.cpp#L548</a></div><div><br></div><div>Seems like the difference between ipmb-dev and ipmb-host is the only way they act: as an IPMB device (receive requests and sends answers) or as an initiator (sends requests and receives answers).</div><div><br></div><div>Perhaps, the upstreamed ipmb-dev works in either way (technically, the difference only in send/receive order).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 20 Apr 2020 at 20:35, Oskar Senft <<a href="mailto:osk@google.com">osk@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Vijay<div><br></div><div>Thanks for the pointer!</div><div><br></div><div>I also found both <a href="https://github.com/Mellanox/ipmb-host" target="_blank">https://github.com/Mellanox/ipmb-host</a> and <a href="https://github.com/openbmc/linux/blob/dev-5.4/drivers/char/ipmi/ipmb_dev_int.c" target="_blank">https://github.com/openbmc/linux/blob/dev-5.4/drivers/char/ipmi/ipmb_dev_int.c</a>. </div><div><br></div><div>Is it right that with ipmbbridge I don't need either of them since ipmbbridge uses the raw i2c dev?</div><div><br></div><div>Thanks</div><div>Oskar.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 20, 2020 at 2:12 PM Vijay Khemka <<a href="mailto:vijaykhemka@fb.com" target="_blank">vijaykhemka@fb.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div>
<p class="MsoNormal">Hi Oskar,<u></u><u></u></p>
<p class="MsoNormal">You need to configure your ME channel in ipmb channel config file
<a href="https://github.com/openbmc/ipmbbridge/blob/master/ipmb-channels.json" target="_blank">https://github.com/openbmc/ipmbbridge/blob/master/ipmb-channels.json</a><u></u><u></u></p>
<p class="MsoNormal">And make sure ipmbbridge is running. Then you can send get device id command to ME from command line itself to test if everything is working.<u></u><u></u></p>
<p><span><u></u> <u></u></span></p>
<p><span>busctl call xyz.openbmc_project.Ipmi.Channel.Ipmb /xyz/openbmc_project/Ipmi/Channel/Ipmb org.openbmc.Ipmb sendRequest yyyyay 1 6 0 0x1 0</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards<u></u><u></u></p>
<p class="MsoNormal">-Vijay<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">openbmc <openbmc-bounces+vijaykhemka=<a href="mailto:fb.com@lists.ozlabs.org" target="_blank">fb.com@lists.ozlabs.org</a>> on behalf of Oskar Senft <<a href="mailto:osk@google.com" target="_blank">osk@google.com</a>><br>
<b>Date: </b>Saturday, April 18, 2020 at 6:47 PM<br>
<b>To: </b>OpenBMC Maillist <<a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a>><br>
<b>Subject: </b>Access Intel ME IPMB from BMC<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Hi everyone <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'm trying to find out how I can access the Intel ME via IPMB from the BMC (OpenBMC).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">From what I gathered, Intel ME's IPMB is on the PCH's SMLink0. I know this is connected to one of the SMBus modules on my AST2500. But what I can't find out is how I actually send commands there? I'm sure I'm missing a document that makes
 this obvious.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Or is it as simple as dropping IPMI packets onto the bus?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Is this by any chance already implemented in OpenBMC?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks for any hints!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Oskar<u></u><u></u></p>
</div>
</div>
</div>
</div>

</blockquote></div>
</blockquote></div>