Question about sensor number access
Bills, Jason M
jason.m.bills at linux.intel.com
Tue Aug 13 04:57:06 AEST 2019
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
>
More information about the openbmc
mailing list