<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Wayne,</p>
    <p>Thanks for writing. Here is my thought on this.</p>
    <p>- phosphor-watchdog was meant to time the Host booting, and hence
      it is getting started where ever it is.<br>
      - There are other external users for watchdog ( like bmcweb ). So
      we need to see if this change affects those.<br>
      - Could you help show which section demands this service to be
      mandatory available per IPMI v2.0 ?<br>
      - What do you expect IPMI to tell when the host is off ?<br>
      - Lastly, please help push a gerrit review, so we could add
      comments there.</p>
    <p>Thanks..<br>
    </p>
    <p>!! Vishwa !!<br>
    </p>
    <div class="moz-cite-prefix">On 11/5/19 7:09 AM, Wayne
      Tung/WYHQ/Wiwynn wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:HK0PR02MB2593B7A84823A34C11AEF363967E0@HK0PR02MB2593.apcprd02.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">We met an error that BMC can’t get watchdog
            status by command “mc watchdog get” when system power is
            off.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">Cause:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">"ipmitool mc watchdog get" gets dbus properties
            in path: /xyz/openbmc_project/watchdog/host0 interface:
            xyz.openbmc_project.State.Watchdog and this dbus object is
            registered by phosphor-watchdog.service. <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">Because phosphor-watchdog.service will not be
            started before system power-on and will be stopped after
            system power-off, therefore "ipmitool mc watchdog get"
            command gets nothing when system power is off.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">Follow the standard, BMC should still report
            watchdog status even if system power is off.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">So we modified phosphor-watchdog’s bb file and
            service file to
            <br>
            1. Start phosphor-watchdog after multi-user.target during
            BMC boot period<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">2. Do not stop phosphor-watchdog when system
            power off.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">3. Always restart phosphor-watchdog.service.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Test
            Result:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">wayne@TGA:~$
            ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus
            chassis power status<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Chassis
            Power is off<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">wayne@TGA:~$
            ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc
            watchdog get<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Use:     BIOS FRB2 (0x81)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Is:      Stopped<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Actions: No action (0x00)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Pre-timeout
            interval:   0 seconds<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Timer
            Expiration Flags: 0x00<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Initial
            Countdown:      0 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Present
            Countdown:      0 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">wayne@TGA:~$
            ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus
            chassis power on<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Chassis
            Power Control: Up/On<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">wayne@TGA:~$
            ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc
            watchdog get<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Use:     BIOS FRB2 (0xc1)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Is:      Started/Running<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Actions: Hard Reset (0x01)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Pre-timeout
            interval:   0 seconds<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Timer
            Expiration Flags: 0x00<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Initial
            Countdown:      600 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Present
            Countdown:      597 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">wayne@TGA:~$
            ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc
            watchdog get<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Use:     BIOS FRB2 (0xc1)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Is:      Started/Running<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Actions: Hard Reset (0x01)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Pre-timeout
            interval:   0 seconds<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Timer
            Expiration Flags: 0x00<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Initial
            Countdown:      600 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Present
            Countdown:      582 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">wayne@TGA:~$
            ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc
            watchdog get<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Use:     BIOS FRB2 (0x81)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Is:      Stopped<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Watchdog
            Timer Actions: No action (0x00)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Pre-timeout
            interval:   0 seconds<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Timer
            Expiration Flags: 0x00<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Initial
            Countdown:      0 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;font-family:"Times New
            Roman",serif;color:black;background:white" lang="EN-US">Present
            Countdown:      0 sec<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.5pt;color:black;background:white"
            lang="EN-US">Thanks<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
      </div>
      <p><span style="font-family:'Calibri';font-size:11pt;
          color:#000000;"><b>---------------------------------------------------------------------------------------------------------------------------------------------------------------</b></span></p>
      <p><span style="font-family:'Calibri';font-size:11pt;
          color:#000000;"><b>This email contains confidential or legally
            privileged information and is for the sole use of its
            intended recipient. </b></span></p>
      <p><span style="font-family:'Calibri';font-size:11pt;
          color:#000000;"><b>Any unauthorized review, use, copying or
            distribution of this email or the content of this email is
            strictly prohibited.</b></span></p>
      <p><span style="font-family:'Calibri';font-size:11pt;
          color:#000000;"><b>If you are not the intended recipient, you
            may reply to the sender and should delete this e-mail
            immediately.</b></span></p>
      <p><span style="font-family:'Calibri';font-size:11pt;
          color:#000000;"><b>---------------------------------------------------------------------------------------------------------------------------------------------------------------</b></span></p>
    </blockquote>
  </body>
</html>