<div dir="ltr">Hi Lior and Andrew, <br><br>The goal of enhancing nvmesensor with nvme-mi is to fulfill the full stack management of NVMe devices, including health monitoring but beyond. An example could be SSD firmware update and security protocol transportation. <br><br>The MCTP support has improved compared to two years ago. The MCTP I2C binding has been upstreamed to linux kernel and there is an mctp daemon for openbmc for the MCTP management. <br><br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 7, 2023 at 5:35 AM Lior Weintraub <<a href="mailto:liorw@pliops.com">liorw@pliops.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 class="msg6552336304203016699">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_6552336304203016699WordSection1">
<p class="m_6552336304203016699MsoPlainText">Thanks Andrew,<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><u></u> <u></u></p>
<p class="m_6552336304203016699MsoPlainText">I wish I had the experience to help with the review process
<span style="font-family:"Segoe UI Emoji",sans-serif">😊</span><u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">I have more than 2 decades experience with bare metal embedded systems but no experience with Embedded Linux\Yocto nor OpenBMC (nor Gerrit).<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">It's all new to me and came to realize that many guides \ documentations I find on the web are old and doesn't work anymore on OpenBMC (e.g. using the oe-init-build-env vs setup script).<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><u></u> <u></u></p>
<p class="m_6552336304203016699MsoPlainText">I am happy to assist and contribute but I need some guidance.<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">I have only 2 weeks experience with OpenBMC.<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">I have succeeded to build few platforms and run them (e.g. qemuarm and RaspberryPi4).<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">I watched many youtube videos on OpenBMC which gave me a good overall understanding but when it comes to start coding or adding new stuff I am lost.<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><u></u> <u></u></p>
<p class="m_6552336304203016699MsoPlainText">If we start our development with NVMe-MI basic management command as a starting point, what steps would you recommend we need to take?<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">Can we use the PaspberryPi4 for this initial implementation?<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">We have a basic OpenBMC image on this RaspPi and we have it's I2C connected to our PCIe card (which is using a Desktop as the host PC).<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">(BTW, the i2c-dev module is not loaded automatically and we still haven't figured out why. As a workaround, we load the module manually with modprobe i2c-dev on the OpenBMC UART terminal)<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><u></u> <u></u></p>
<p class="m_6552336304203016699MsoPlainText">Thanks,<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">Lior.<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><u></u> <u></u></p>
<p class="m_6552336304203016699MsoPlainText">-----Original Message-----<br>
From: Andrew Jeffery <<a href="mailto:andrew@aj.id.au" target="_blank">andrew@aj.id.au</a>> <br>
Sent: Friday, April 7, 2023 2:46 PM<br>
To: Lior Weintraub <<a href="mailto:liorw@pliops.com" target="_blank">liorw@pliops.com</a>><br>
Cc: Ed Tanous <<a href="mailto:ed@tanous.net" target="_blank">ed@tanous.net</a>>; <a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a>; <a href="mailto:rashmica@linux.ibm.com" target="_blank">rashmica@linux.ibm.com</a>; <a href="mailto:jianghao@google.com" target="_blank">jianghao@google.com</a><br>
Subject: Re: OpenBMC - Support NVMe drive health monitoring</p>
<p class="m_6552336304203016699MsoPlainText"><u></u> <u></u></p>
<p class="m_6552336304203016699MsoPlainText">CAUTION: External Sender<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText">On Fri, 7 Apr 2023, at 19:50, Lior Weintraub wrote:<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> Hi Jet,<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span dir="RTL"></span><span dir="RTL"></span><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><span dir="RTL"></span><span dir="RTL"></span>><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText"><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span>> My name is Lior Weintraub and I face exactly the same task that you
<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> handled 2 years ago <span style="font-family:"Segoe UI Emoji",sans-serif">
😊</span><u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> I found this mailing list thread on OpenBmc:<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> <a href="https://lists.ozlabs.org/pipermail/openbmc/2020-November/024012.html" target="_blank">
<span style="color:windowtext;text-decoration:none">https://lists.ozlabs.org/pipermail/openbmc/2020-November/024012.html</span></a><u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span dir="RTL"></span><span dir="RTL"></span><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><span dir="RTL"></span><span dir="RTL"></span>><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText"><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span>> Can you please advice about the current status of this issue?<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> I need to add OOB support to our NVMe device (supporting NVMe MI ->
<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> MCTP with SMBus binding).<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> For this task we plan to buy the AST2600 development <u></u>
<u></u></p>
<p class="m_6552336304203016699MsoPlainText">> kit<<a href="https://portwell.com/solutions/openBMC.php" target="_blank"><span style="color:windowtext;text-decoration:none">https://portwell.com/solutions/openBMC.php</span></a>> and use the OpenBMC
<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText">> for our development and testing.<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText">Currently OpenBMC only supports NVMe-MI via the basic management command. See phosphor-nvme or nvmesensor from dbus-sensors. We're working on migrating the OpenBMC MCTP stack to the AF_MCTP sockets that are now provided by Linux.<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText">Please help review and test Rashmica's work in Gerrit to speed that process along:<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText"><a href="https://gerrit.openbmc.org/q/topic:AF_MCTP" target="_blank"><span style="color:windowtext;text-decoration:none">https://gerrit.openbmc.org/q/topic:AF_MCTP</span></a><u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText">Along with Hao Jiang's work to exploit libnvme-mi in nvmesensor:<u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText"><a href="https://gerrit.openbmc.org/q/topic:nvme-mi" target="_blank"><span style="color:windowtext;text-decoration:none">https://gerrit.openbmc.org/q/topic:nvme-mi</span></a><u></u><u></u></p>
<p class="m_6552336304203016699MsoPlainText"><span lang="HE" dir="RTL" style="font-size:10.5pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
<p class="m_6552336304203016699MsoPlainText">Andrew<u></u><u></u></p>
</div>
</div>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Hao</div></div>