<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">William,<o:p></o:p></p>
<p class="MsoNormal">I am not worried by that I am just considering that one has to implement that unit file as well.<o:p></o:p></p>
<p class="MsoNormal">Rather than triggering unit file why can’t we trigger gpio or i2c command based on configuration<o:p></o:p></p>
<p class="MsoNormal">Provided by each platform.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal">-Vijay<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">William Kennington <wak@google.com><br>
<b>Date: </b>Tuesday, March 31, 2020 at 1:37 PM<br>
<b>To: </b>Vijay Khemka <vijaykhemka@fb.com><br>
<b>Cc: </b>Benjamin Fair <benjaminfair@google.com>, "jason.m.bills@linux.intel.com" <jason.m.bills@linux.intel.com>, James Feist <james.feist@linux.intel.com>, "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org><br>
<b>Subject: </b>Re: Chassis sled cycle<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The target is just that file. Platform specific services add themselves as WantedBy. You shouldn't really need to worry about that part as triggering the service will cause them to run.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Mar 31, 2020 at 1:33 PM Vijay Khemka <<a href="mailto:vijaykhemka@fb.com">vijaykhemka@fb.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
On 3/31/20, 10:53 AM, "Benjamin Fair" <<a href="mailto:benjaminfair@google.com" target="_blank">benjaminfair@google.com</a>> wrote:<br>
<br>
    On Mon, 30 Mar 2020 at 13:00, Vijay Khemka <<a href="mailto:vijaykhemka@fb.com" target="_blank">vijaykhemka@fb.com</a>> wrote:<br>
    ><br>
    > Hi Jason,<br>
    ><br>
    > We have a requirement of Chassis sled cycle and it can be achieved by sending an i2c command to hotswap controller. Is there any plan to add this feature in x86-power-control. It should take i2c bus address from configuration file.<br>
    ><br>
    ><br>
    ><br>
    > Regards<br>
    ><br>
    > -Vijay<br>
<br>
    This feature is implemented on some systems using an IPMI OEM command:<br>
    <a href="https://github.com/openbmc/google-ipmi-sys#delayedhardreset---subcommand-0x03" target="_blank">
https://github.com/openbmc/google-ipmi-sys#delayedhardreset---subcommand-0x03</a><br>
<br>
    It currently just activates the systemd target<br>
    gbmc-psu-hardreset.target and lets you register services to do the<br>
    actual hotswap reset (usually by toggling a GPIO). Having a unified<br>
    solution in x86-power-control for this would be great!<br>
<br>
Ben, Can you please share content of<br>
 <a href="https://github.com/openbmc/google-ipmi-sys/blob/master/gbmc-psu-hardreset.target" target="_blank">https://github.com/openbmc/google-ipmi-sys/blob/master/gbmc-psu-hardreset.target</a><br>
as my assumption is each platform needs to provide this file but I couldn't find any platform<br>
using this. I only found reference in meta-quanta which is deleting this file. So please<br>
provide a reference to this file.<br>
<br>
<o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>