hwmontempsensor issue in dbus-sensor

Kumar Thangavel kumarthangavel.hcl at gmail.com
Thu Dec 16 19:26:37 AEDT 2021


Hi All,


In dbus-sensors repo, I saw the patch for changes in Hwmon Temp Sensor.
https://github.com/openbmc/dbus-sensors/commit/544e7dc58cecef898fe7d684c3ba0fbce178cf2d#diff-bfc8d7ed4ade4b3519ad3b7fe091f9c79a60faf8a26f410c1568e5341b22b7ab


While testing those changes in my platform, I found that each sensor in
hwmon temp has been creating twice.
After analyzed the patch, for below 2 paths SP_OUTLET_TEMP sensor is
created twice.


/sys/class/hwmon/hwmon2/temp2_input
/sys/class/hwmon/hwmon2/temp1_input


Before your change, hwmon temp sensor will check whether the path is
already exists or not.
If it exists, it will skip and proceed with next path.
https://github.com/openbmc/dbus-sensors/commit/544e7dc58cecef898fe7d684c3ba0fbce178cf2d#diff-bfc8d7ed4ade4b3519ad3b7fe091f9c79a60faf8a26f410c1568e5341b22b7abL96


Could you please explain why it is creating twice in hwmon temp ?


Journalctl log before your changes applied :


Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Path :
"/sys/class/hwmon/hwmon2/temp2_input"
Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Type :
xyz.openbmc_project.Configuration.TMP421
Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Name : SP_OUTLET_TEMP
Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Dbus path :
/xyz/openbmc_project/sensors/temperature/SP_OUTLET_TEMP
Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Dbus path :
/xyz/openbmc_project/sensors/temperature/SP_OUTLET_REMOTE_TEMP
Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Path :
"/sys/class/hwmon/hwmon2/temp1_input"



Journalctl log after your changes applied :


Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
"/sys/class/hwmon/hwmon2/temp2_input"
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Sensor type :
xyz.openbmc_project.Configuration.TMP421
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Name : SP_OUTLET_TEMP
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
/xyz/openbmc_project/sensors/temperature/SP_OUTLET_TEMP
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
/xyz/openbmc_project/sensors/temperature/SP_OUTLET_REMOTE_TEMP


Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
"/sys/class/hwmon/hwmon2/temp1_input"
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Sensor type :
xyz.openbmc_project.Configuration.TMP421
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Name : SP_OUTLET_TEMP
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
/xyz/openbmc_project/sensors/temperature/SP_OUTLET_TEMP
Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
/xyz/openbmc_project/sensors/temperature/SP_OUTLET_REMOTE_TEMP



Thanks,

Kumar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20211216/0aa8d7da/attachment.htm>


More information about the openbmc mailing list