PSUSensor.cpp - Removed PSU

Mark Woodward woodwardm at google.com
Tue Jan 28 07:43:01 AEDT 2025


We are having an issue with psusensor in that when it is functioning with
or without power, psusensor can read the status of the PSU. If the PSU is
removed, the status of the PSU is never updated.

It looks like in void PSUSensor::handleResponse() when there is a read
error an error log string is output, restartRead () is called, but there is
nothing done to the sensor data. This means that when a PSU is removed,
aside from the log entry, there is no change to the sensor readings. It
will just continue to report the last readings.

Is a PoC, I added "updateValue(0 + sensorOffset);" in the error stanza, so
that when the PSU is removed, the values are cleared.

Is this expected behavior?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20250127/60f1a672/attachment.htm>


More information about the openbmc mailing list