History log of /openbmc/dbus-sensors/src/adc/ADCSensor.cpp (Results 1 – 3 of 3)
Revision Date Author Comments
# d4bc41f2 19-Feb-2025 George Liu <liuxiwei@ieisystem.com>

adc: Convert logging to lg2

Change-Id: I6408725aa3a0eb79b0d2ee7fd0ee46d0f553d9ed
Signed-off-by: George Liu <liuxiwei@ieisystem.com>


# af1724b8 09-Dec-2024 Thang Tran <thuutran@amperecomputing.com>

adcsensor: prevent reading when power is not ready

Currently, the adcsensor is reading all of the sensors even their power
state is not ready. It made the system waste more resources to read
files.

adcsensor: prevent reading when power is not ready

Currently, the adcsensor is reading all of the sensors even their power
state is not ready. It made the system waste more resources to read
files.

This commit checks the power state before requesting to read I/O files.
It prevents reading sensors when the power state is not ready.

Tested:
1. Turn off the power.
$ipmitool power off
2. Check the adc sensors that have the "PowerState" property in
Entity-Manager is "On"/"ChassisOn" via dbus interfaces.
3. Those sensors have the "Available" property is "false" and the
"Value" is "nan".
4. The hwmon files that corresponding to those sensors are not read
5. Turn on the power.
$ipmitool power on
6. Check the adc sensors that have the "PowerState" property in
Entity-Manager is "On"/"ChassisOn" via dbus interfaces.
7. Those sensors have the "Available" property is "true" and the
"Value" is not "nan".

Change-Id: I52219f40fdd3b478425956c176ac40e3e16c10d1
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>

show more ...


# d7be555e 19-Sep-2024 George Liu <liuxiwei@ieisystem.com>

Move source files into application-specific sub-directories

Currently, dbus-sensors implement multiple applications:
- psusensor
- adcsensor
- intelcpusensor
- hwmontempsensor
- ipmbsensor
- n

Move source files into application-specific sub-directories

Currently, dbus-sensors implement multiple applications:
- psusensor
- adcsensor
- intelcpusensor
- hwmontempsensor
- ipmbsensor
- nvmesensor
- externalsensor
- mcutempsensor
- intrusionsensor
- fansensor
- exitairtempsensor

This commit is to create separate directories for each application so
that things can be separated more easily and the files are smaller,
instead of creating one huge file for the sensor implementation.

There was some discussion in discord on this. [1][2]

[1]: https://discord.com/channels/775381525260664832/1187158775438778408/1284106093756289067
[2]: https://discord.com/channels/775381525260664832/867820390406422538/1303217796821553214

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I258fc2ee7d8f939c7b83a07350395e78775b2b8d

show more ...