<div>Hello Paul</div><div> </div><div>We don't have this in our config files.</div><div> </div><div>Instead we use phosphor-sel-logger  (included using IMAGE_INSTALL_append variable in machine config).</div><div> </div><div>In my bbappend file for phosphor-sel-logger there are following features enabled:</div><div><div>#Enable threshold monitoring</div><div>EXTRA_OECMAKE += "-DSEL_LOGGER_MONITOR_THRESHOLD_EVENTS=ON"</div><div>EXTRA_OECMAKE += "-DREDFISH_LOG_MONITOR_PULSE_EVENTS=ON"</div></div><div> </div><div> </div><div>01.10.2021, 10:52, "吳秉昌" <wh800805@gmail.com>:</div><blockquote><div style="word-wrap:break-word">Hi Johnathan & Konstantin<div> </div><div>Thanks for your explanation. It is very helpful to me.</div><div>I adjust the json file to fix this issue.</div><div> </div><div>And I have one more question need help.</div><div>I try to enable the SEL, I add below setting </div><div><div><font color="#ff9300">PACKAGECONFIG:append = " log-threshold log-pulse send-to-logger”</font></div></div><div> </div><div>When event occurred, but SEL still empty.</div><div> </div><div>event occurred log: </div><div><div>Jan 01 00:04:25 fws7830bmc adcsensor[283]: Sensor MB_P3V3 high threshold 3.531 assert: value 3.588 raw data 1794</div><div>Jan 01 00:06:08 fws7830bmc adcsensor[283]: Sensor MB_P3V3 high threshold 3.531 assert: value 3.54 raw data 1770</div></div><div> </div><div>Ipmitoo sel log:</div><div><div>SEL Information</div><div>Version          : 1.5 (v1.5, v2 compliant)</div><div>Entries          : 0</div><div>Free Space       : 65535 bytes or more</div><div>Percent Used     : unknown</div><div>Last Add Time    : Not Available</div><div>Last Del Time    : Not Available</div><div>Overflow         : false</div><div>Supported Cmds   : 'Reserve’ </div></div><div> </div><div>Please give me some advice. Thanks</div><div> </div><div>BR</div><div>Paul</div><div> </div><div><div> <blockquote><div>Johnathan Mantey <<a href="mailto:johnathanx.mantey@intel.com" rel="noopener noreferrer">johnathanx.mantey@intel.com</a>> 於 2021年9月30日 下午11:00 寫道&#xff1a;</div> <div><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">On 9/30/21 3:13 AM, 吳秉昌 wrote:</span><blockquote style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Hi Andrei<br />My question is that I set MB_P12V "upper critical" is 13.23, "upper non critical" is 12.6, etc .<br />When I login web page, I can see the setting what I want.<br />But when I use “Ipmitool sensor” command, the response is wrong. Like below<br />MB P12V          | 7.215      | Volts      | ok    | na        |6.386     | 6.723     | 7.429     | 7.829     | na<br />I am not sure am I miss something.<br />Thanks<br />Paul</blockquote><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">ipmitool uses SDR records to calculate how to translate the 8-bit sensor reading into a value in range.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">For intel-ipmi-oem the SDRs are generated on the fly, with most being Type 1. The Type 1 has a M, M(B), R, and R(B) value that is calculated from the values in the JSON. The code inside this section uses several of the entries in the JSON to generate the M and R values.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">We were recently bit by this calculation, because the calculation used the "worst case" values of reading(min), reading(max), UC, and UNC, and combined them for the M and R.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Somehow the UNC and UC values were outside the reading range, and the M and R values were calculated in a way that made the sensor output incorrect as displayed by ipmitool.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">You may want to investigate if the SDRs are correct. Use 'impitool sdr dump sdrs.bin' and find the SDR for the sensors of interest and see if the M and R values are sensible.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">If they aren't find the code generating those values and identify how the values are created. Adjust your JSON as necessary.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /> <blockquote style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote>Andrei Kartashev <<a href="mailto:a.kartashev@yadro.com" rel="noopener noreferrer">a.kartashev@yadro.com</a>> 於 2021年9月30日 下午6:03 寫道&#xff1a;<br /><br />Hello,<br /><br />What is your question exactly?<br />If it is about precision, then you should take in account that IPMI use<br />8-bit variables to represent values and some coefficients which<br />calculated based on MinValue/MaxValue parameters of corresponding<br />Sensor interface.<br />You will never get exact values in IPMI, unless you values can fit to<br />8-bit integer.<br /><br />On Thu, 2021-09-30 at 17:07 +0800, 吳秉昌 wrote:<blockquote class="">Hi all<br class="" /><br class="" />I add the sensor in entity-manager config like below<br class="" />{<!-- --><br class="" />            "Index": 2,<br class="" />            "Name": "MB_VMEM",<br class="" />            "PowerState": "On",<br class="" />            "ScaleFactor": 1,<br class="" />            "Thresholds": [<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 1.32<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 1.26<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 1.14<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 1.08<br class="" />                }<br class="" />            ],<br class="" />            "Type": "ADC"<br class="" />        },<br class="" />        {<!-- --><br class="" />            "Index": 3,<br class="" />            "Name": "MB_P12V",<br class="" />            "PowerState": "On",<br class="" />            "ScaleFactor": 0.23,<br class="" />            "Thresholds": [<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 13.23<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 12.6<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 11.4<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 10.77<br class="" />                }<br class="" />            ],<br class="" />            "Type": "ADC"<br class="" />        },<br class="" />        {<!-- --><br class="" />            "Index": 4,<br class="" />            "Name": "MB_P5V",<br class="" />            "PowerState": "On",<br class="" />            "ScaleFactor": 0.55,<br class="" />            "Thresholds": [<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 5.48<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 5.24<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 4.76<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 4.48<br class="" />                }<br class="" />            ],<br class="" />            "Type": "ADC"<br class="" />        },<br class="" />        {<!-- --><br class="" />            "Index": 5,<br class="" />            "Name": "MB_P5V_SB",<br class="" />            "PowerState": "On",<br class="" />            "ScaleFactor": 0.25,<br class="" />            "Thresholds": [<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 5.48<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "greater than",<br class="" />                    "Name": "upper non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 5.24<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower non critical",<br class="" />                    "Severity": 0,<br class="" />                    "Value": 4.76<br class="" />                },<br class="" />                {<!-- --><br class="" />                    "Direction": "less than",<br class="" />                    "Name": "lower critical",<br class="" />                    "Severity": 1,<br class="" />                    "Value": 4.48<br class="" />                }<br class="" />            ],<br class="" />            "Type": "ADC"<br class="" />        },<br class="" /><br class="" /><br class="" />I use the busctrl command to see MB_P5V_SB information, it is normal.<br class="" /><a href="mailto:root@fws7830bmc">root@fws7830bmc</a>:~# busctl introspect --no-pager<br class="" />xyz.openbmc_project.EntityManager<br class="" />/xyz/openbmc_project/inventory/system/board/FWS7830_<br class="" />Baseboard/MB_P5V<br class="" />NAME                                              TYPE      SIGNATURE<br class="" />RESULT/VALUE         FLAGS<br class="" />org.freedesktop.DBus.Introspectable               interface -<br class="" />  -                    -<br class="" />.Introspect                                       method    -<br class="" />  s                    -<br class="" />org.freedesktop.DBus.Peer                         interface -<br class="" />  -                    -<br class="" />.GetMachineId                                     method    -<br class="" />  s                    -<br class="" />.Ping                                             method    -<br class="" />  -                    -<br class="" />org.freedesktop.DBus.Properties                   interface -<br class="" />  -                    -<br class="" />.Get                                              method    ss<br class="" />  v                    -<br class="" />.GetAll                                           method    s<br class="" />  a{sv}                -<br class="" />.Set                                              method    ssv<br class="" />  -                    -<br class="" />.PropertiesChanged                                signal<br class="" />  sa{sv}as  -                    -<br class="" />xyz.openbmc_project.Configuration.ADC             interface -<br class="" />  -                    -<br class="" />.Index                                            property  t<br class="" />  4                    emits-change<br class="" />.Name                                             property  s<br class="" />  "MB_P5V"             emits-change<br class="" />.PowerState                                       property  s<br class="" />  "On"                 emits-change<br class="" />.ScaleFactor                                      property  d<br class="" />  0.55                 emits-change<br class="" />.Type                                             property  s<br class="" />  "ADC"                emits-change<br class="" />xyz.openbmc_project.Configuration.ADC.Thresholds0 interface -<br class="" />  -                    -<br class="" />.Delete                                           method    -<br class="" />  -                    -<br class="" />.Direction                                        property  s<br class="" />  "greater than"       emits-change writable<br class="" />.Name                                             property  s<br class="" />  "upper critical"     emits-change writable<br class="" />.Severity                                         property  d<br class="" />  1                    emits-change writable<br class="" />.Value                                            property  d<br class="" />  5.48                 emits-change writable<br class="" />xyz.openbmc_project.Configuration.ADC.Thresholds1 interface -<br class="" />  -                    -<br class="" />.Delete                                           method    -<br class="" />  -                    -<br class="" />.Direction                                        property  s<br class="" />  "greater than"       emits-change writable<br class="" />.Name                                             property  s<br class="" />  "upper non critical" emits-change writable<br class="" />.Severity                                         property  d<br class="" />  0                    emits-change writable<br class="" />.Value                                            property  d<br class="" />  5.24                 emits-change writable<br class="" />xyz.openbmc_project.Configuration.ADC.Thresholds2 interface -<br class="" />  -                    -<br class="" />.Delete                                           method    -<br class="" />  -                    -<br class="" />.Direction                                        property  s<br class="" />  "less than"          emits-change writable<br class="" />.Name                                             property  s<br class="" />  "lower non critical" emits-change writable<br class="" />.Severity                                         property  d<br class="" />  0                    emits-change writable<br class="" />.Value                                            property  d<br class="" />  4.76                 emits-change writable<br class="" />xyz.openbmc_project.Configuration.ADC.Thresholds3 interface -<br class="" />  -                    -<br class="" />.Delete                                           method    -<br class="" />  -                    -<br class="" />.Direction                                        property  s<br class="" />  "less than"          emits-change writable<br class="" />.Name                                             property  s<br class="" />  "lower critical"     emits-change writable<br class="" />.Severity                                         property  d<br class="" />  1                    emits-change writable<br class="" />.Value                                            property  d<br class="" />  4.48                 emits-change writable<br class="" /><br class="" />But I use "ipmitoo sensor” command, it return the error information<br class="" />below as<br class="" />MB P3V3          | 3.271      | Volts      | ok    | na        |<br class="" />2.947     | 3.046     | 3.511     | 3.596     | na<br class="" />MB P5V           | 2.982      | Volts      | ok    | na        |<br class="" />2.662     | 2.829     | 3.123     | 3.264     | na<br class="" />MB P5V SB        | 5.048      | Volts      | ok    | na        |<br class="" />4.484     | 4.766     | 5.245     | 5.471     | na<br class="" />MB P12V          | 7.215      | Volts      | ok    | na        |<br class="" />6.386     | 6.723     | 7.429     | 7.829     | na<br class="" /><br class="" />Please give me some advise.<br class="" /><br class="" />Many thanks<br class="" />Paul<br class="" /><br class="" /></blockquote><br />-- <br />Best regards,<br />Andrei Kartashev<br /><br /> </blockquote></blockquote><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">-- </span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Johnathan Mantey</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Senior Software Engineer</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">*azad te**chnology partners*</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Contributing to Technology Innovation since 1992</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Phone: (503) 712-6764</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" /><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Email: </span><a href="mailto:johnathanx.mantey@intel.com" rel="noopener noreferrer" style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">johnathanx.mantey@intel.com</a><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"> <</span><a href="mailto:johnathanx.mantey@intel.com" rel="noopener noreferrer" style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">mailto:johnathanx.mantey@intel.com</a><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">></span></div></blockquote></div></div></div></blockquote><div> </div><div> </div><div>-- </div><div>Best regards,</div><div>Konstantin Klubnichkin,</div><div>lead firmware engineer,</div><div>server hardware R&D group,</div><div>Yandex Moscow office.</div><div>tel: +7-903-510-33-33</div><div> </div>