<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>The IBM systems use an ibm-cffps device driver:</p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/linux/blob/dev-5.4/drivers/hwmon/pmbus/ibm-cffps.c">https://github.com/openbmc/linux/blob/dev-5.4/drivers/hwmon/pmbus/ibm-cffps.c</a></p>
    <p>There are some other power supply PMBus hwmon drivers, check the
      parent directory.</p>
    <p>There were some other non-standard or MFR SPECIFIC items that
      were needed/desired, so those ended up being put in a
      /sys/kernel/debug tree.</p>
    <p>This device driver was introduced for the Witherspoon system, and
      has had some updates since then.</p>
    <p>The repository for looking at the STATUS_WORD and other PMBus
      commands/registers was called witherspoon-pfault-analysis, renamed
      to phosphor-power. I am not certain how that relates to the
      psusensor daemon.</p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/witherspoon-pfault-analysis">https://github.com/openbmc/witherspoon-pfault-analysis</a></p>
    <p><a class="moz-txt-link-freetext" href="https://github.ibm.com/openbmc/phosphor-power">https://github.ibm.com/openbmc/phosphor-power</a></p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/dbus-sensors/tree/master/src">https://github.com/openbmc/dbus-sensors/tree/master/src</a></p>
    <p>The hwmon specific information that Witherspoon used for
      telemetry data was updated via the phosphor-hwmon application:</p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/phosphor-hwmon">https://github.com/openbmc/phosphor-hwmon</a></p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/openbmc/tree/master/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon/witherspoon/obmc/hwmon/ahb/apb/bus%401e78a000/i2c-bus%40100">https://github.com/openbmc/openbmc/tree/master/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon/witherspoon/obmc/hwmon/ahb/apb/bus%401e78a000/i2c-bus%40100</a></p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/openbmc/openbmc/tree/master/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus%401e78a000/i2c-bus%40400">https://github.com/openbmc/openbmc/tree/master/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus%401e78a000/i2c-bus%40400</a><br>
    </p>
    <div class="moz-cite-prefix">On 2020-04-17 18:29, Patrick Voelker
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a02ac6a947854897a3b5069d9e7da7df@SCL-EXCHMB-13.phoenix.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 14 (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:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* 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;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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><!--[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="color:#1F497D">Thanks Vijay,
            that was really helpful.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I’m
            specifically looking for how the PMBus STATUS_WORD and
            sub-registers are monitored and represented in OpenBMC but
            it’s not jumping out at me.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><a name="_MailEndCompose"
            moz-do-not-send="true"><span style="color:#1F497D"><o:p> </o:p></span></a></p>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0in
          0in 0in 4.0pt">
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
                  Vijay Khemka [<a class="moz-txt-link-freetext" href="mailto:vijaykhemka@fb.com">mailto:vijaykhemka@fb.com</a>]
                  <br>
                  <b>Sent:</b> Friday, April 17, 2020 11:07 AM<br>
                  <b>To:</b> Patrick Voelker; <a class="moz-txt-link-abbreviated" href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br>
                  <b>Subject:</b> Re: PSU (PMBus) fault monitoring /
                  logging<o:p></o:p></span></p>
            </div>
          </div>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">There are psusensor daemon who monitors
            these PSU sensors.<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">openbmc
                <a class="moz-txt-link-rfc2396E" href="mailto:openbmc-bounces+vijaykhemka=fb.com@lists.ozlabs.org"><openbmc-bounces+vijaykhemka=fb.com@lists.ozlabs.org></a>
                on behalf of Patrick Voelker
                <a class="moz-txt-link-rfc2396E" href="mailto:Patrick_Voelker@phoenix.com"><Patrick_Voelker@phoenix.com></a><br>
                <b>Date: </b>Thursday, April 16, 2020 at 7:40 PM<br>
                <b>To: </b><a class="moz-txt-link-rfc2396E" href="mailto:openbmc@lists.ozlabs.org">"openbmc@lists.ozlabs.org"</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:openbmc@lists.ozlabs.org"><openbmc@lists.ozlabs.org></a><br>
                <b>Subject: </b>PSU (PMBus) fault monitoring / logging<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <p class="MsoNormal">Is there a module that instantiates
            sensors for PSU PMBus based faults after the entity-manager
            probes the busses and finds the PSUs by FRU<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">I'm looking for the method by which the
            faults are monitored and logged.  I see that there’s kernel
            hwmon support for PMBus but I’m trying to understand how
            IPMI sensors and logging tie in.<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
        </div>
      </div>
    </blockquote>
  </body>
</html>