* Question about sensor number access @ 2019-08-12 16:08 Ivan Li11 2019-08-12 18:57 ` Bills, Jason M 0 siblings, 1 reply; 4+ messages in thread From: Ivan Li11 @ 2019-08-12 16:08 UTC (permalink / raw) To: openbmc@lists.ozlabs.org [-- Attachment #1: Type: text/plain, Size: 356 bytes --] Hi Team, I have a question about sensor number. As far as I know, "phosphor-host-ipmid" will parse "ipmi-sensors.yaml" and then store these sensors info(sensor number and sensor type, etc) in ipmid. May I know if another daemon(e.g. phosphor-sel-logger) needs sensor number info, is there any suggested method to get sensor number ? Thanks, Ivan [-- Attachment #2: Type: text/html, Size: 2737 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about sensor number access 2019-08-12 16:08 Question about sensor number access Ivan Li11 @ 2019-08-12 18:57 ` Bills, Jason M 2019-08-15 9:05 ` [External] " Ivan Li11 0 siblings, 1 reply; 4+ messages in thread From: Bills, Jason M @ 2019-08-12 18:57 UTC (permalink / raw) To: openbmc On 8/12/2019 9:08 AM, Ivan Li11 wrote: > Hi Team, > > I have a question about sensor number. > > As far as I know, “phosphor-host-ipmid” will parse “ipmi-sensors.yaml” > and then store these sensors info(sensor number and sensor type, etc) in > ipmid. > > May I know if another daemon(e.g. phosphor-sel-logger) needs sensor > number info, is there any suggested method to get sensor number ? phosphor-sel-logger stores only the sensor path and depends on something to map sensor path to sensor number when the log is read. Today, that mapping is only done for dynamic IPMI sensors in intel-ipmi-oem, here: https://github.com/openbmc/intel-ipmi-oem/blob/master/include/sdrutils.hpp#L207. We were not able to get to a final solution for handling the mapping of dynamic and hardcoded sensor numbers. You can see the ideas and discussion in this review: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/12951 and this thread: https://lists.ozlabs.org/pipermail/openbmc/2019-January/014890.html. This is specifically about getting the sensor number from the path for phosphor-sel-logger, so it may not apply to your situation, but hopefully helps. Thanks, -Jason > > Thanks, > > Ivan > ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [External] Re: Question about sensor number access 2019-08-12 18:57 ` Bills, Jason M @ 2019-08-15 9:05 ` Ivan Li11 2019-08-15 17:27 ` Bills, Jason M 0 siblings, 1 reply; 4+ messages in thread From: Ivan Li11 @ 2019-08-15 9:05 UTC (permalink / raw) To: Bills, Jason M, openbmc@lists.ozlabs.org Hi Jason, Thanks your great support . I have an idea that create JSON file including threshold sensor number and sensor name mapping table for phosphor-sel-logger , and use sensor name to map the related sensor number with that JSON file when threshold sensor SEL log is generated. Please help to advise it. Thanks, Ivan -----Original Message----- From: openbmc <openbmc-bounces+rli11=lenovo.com@lists.ozlabs.org> On Behalf Of Bills, Jason M Sent: Tuesday, August 13, 2019 2:57 AM To: openbmc@lists.ozlabs.org Subject: [External] Re: Question about sensor number access On 8/12/2019 9:08 AM, Ivan Li11 wrote: > Hi Team, > > I have a question about sensor number. > > As far as I know, "phosphor-host-ipmid" will parse "ipmi-sensors.yaml" > and then store these sensors info(sensor number and sensor type, etc) > in ipmid. > > May I know if another daemon(e.g. phosphor-sel-logger) needs sensor > number info, is there any suggested method to get sensor number ? phosphor-sel-logger stores only the sensor path and depends on something to map sensor path to sensor number when the log is read. Today, that mapping is only done for dynamic IPMI sensors in intel-ipmi-oem, here: https://github.com/openbmc/intel-ipmi-oem/blob/master/include/sdrutils.hpp#L207. We were not able to get to a final solution for handling the mapping of dynamic and hardcoded sensor numbers. You can see the ideas and discussion in this review: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/12951 and this thread: https://lists.ozlabs.org/pipermail/openbmc/2019-January/014890.html. This is specifically about getting the sensor number from the path for phosphor-sel-logger, so it may not apply to your situation, but hopefully helps. Thanks, -Jason > > Thanks, > > Ivan > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [External] Re: Question about sensor number access 2019-08-15 9:05 ` [External] " Ivan Li11 @ 2019-08-15 17:27 ` Bills, Jason M 0 siblings, 0 replies; 4+ messages in thread From: Bills, Jason M @ 2019-08-15 17:27 UTC (permalink / raw) To: Ivan Li11, openbmc@lists.ozlabs.org On 8/15/2019 2:05 AM, Ivan Li11 wrote: > Hi Jason, > > Thanks your great support > . > I have an idea that create JSON file including threshold sensor number and sensor name mapping table for phosphor-sel-logger , and use sensor name to map the related sensor number with that JSON file when threshold sensor SEL log is generated. > Please help to advise it. Hi Ivan, We still need to support dynamic sensor numbers, so it couldn't be a fully hardcoded sensor map in JSON. One approach could be to use the JSON file to build up the hardcoded sensor number map, then fill in the dynamic sensors and numbers as they are detected. phosphor-sel-logger and ipmid can then use the final map to log (by name/path) and display (by number) sensor events. Thanks, -Jason > > Thanks, > Ivan > -----Original Message----- > From: openbmc <openbmc-bounces+rli11=lenovo.com@lists.ozlabs.org> On Behalf Of Bills, Jason M > Sent: Tuesday, August 13, 2019 2:57 AM > To: openbmc@lists.ozlabs.org > Subject: [External] Re: Question about sensor number access > > > On 8/12/2019 9:08 AM, Ivan Li11 wrote: >> Hi Team, >> >> I have a question about sensor number. >> >> As far as I know, "phosphor-host-ipmid" will parse "ipmi-sensors.yaml" >> and then store these sensors info(sensor number and sensor type, etc) >> in ipmid. >> >> May I know if another daemon(e.g. phosphor-sel-logger) needs sensor >> number info, is there any suggested method to get sensor number ? > > phosphor-sel-logger stores only the sensor path and depends on something to map sensor path to sensor number when the log is read. > > Today, that mapping is only done for dynamic IPMI sensors in intel-ipmi-oem, here: > https://github.com/openbmc/intel-ipmi-oem/blob/master/include/sdrutils.hpp#L207. > > We were not able to get to a final solution for handling the mapping of dynamic and hardcoded sensor numbers. You can see the ideas and discussion in this review: > https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/12951 > and this thread: > https://lists.ozlabs.org/pipermail/openbmc/2019-January/014890.html. > > This is specifically about getting the sensor number from the path for phosphor-sel-logger, so it may not apply to your situation, but hopefully helps. > > Thanks, > -Jason >> >> Thanks, >> >> Ivan >> ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-15 17:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-08-12 16:08 Question about sensor number access Ivan Li11 2019-08-12 18:57 ` Bills, Jason M 2019-08-15 9:05 ` [External] " Ivan Li11 2019-08-15 17:27 ` Bills, Jason M
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.