History log of /openbmc/phosphor-power/phosphor-regulators/src/system.hpp (Results 1 – 13 of 13)
Revision Date Author Comments
# f5402197 16-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

Change-Id: I7b90380845efee6bf6a1fe342a793d71aa9ff181
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 54b3ab9b 14-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Remove monitoring freq from comments

Update doxygen comments to remove the exact frequency of sensor
monitoring and phase fault detection.

Currently sensors are monitored every second a

regulators: Remove monitoring freq from comments

Update doxygen comments to remove the exact frequency of sensor
monitoring and phase fault detection.

Currently sensors are monitored every second and phase faults are
detected every 15 seconds. However, that could change in the future.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I3ac39955721fde98dfe9e6059693ceeea7e504c2

show more ...


# 37af670e 10-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add detectPhaseFaults() to System

Add a detectPhaseFaults() method to the System class. This method
detects redundant phase faults in all regulator devices in the system.

Add a gtest t

regulators: Add detectPhaseFaults() to System

Add a detectPhaseFaults() method to the System class. This method
detects redundant phase faults in all regulator devices in the system.

Add a gtest test case to exercise the new code.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I61b897b6b563280a2c0440aa2f35f3eb6c5de232

show more ...


# 23b0d0d1 14-May-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add clearErrorHistory to System class

Add a clearErrorHistory() method to the System class. The method should
clear all data on previously logged errors. If the error occurs again
in t

regulators: Add clearErrorHistory to System class

Add a clearErrorHistory() method to the System class. The method should
clear all data on previously logged errors. If the error occurs again
in the future, it will be logged again.

This method is normally called when the system is being powered on. For
code that runs repeatedly, errors are only logged once per boot.

When the system is powered off, hardware may be replaced that fixes the
problem. Thus, errors are cleared during power on.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I6206cc22900c97f5fbfcd39fde81e448a89ac94d

show more ...


# 9bd94d36 25-Jan-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Clear cached hardware data during boot

Clear cached data about hardware devices when the system is powering on
(booting).

While the system was powered off, hardware devices containing v

regulators: Clear cached hardware data during boot

Clear cached data about hardware devices when the system is powering on
(booting).

While the system was powered off, hardware devices containing voltage
regulators could have been added, removed, or replaced. Cached hardware
data might now be invalid.

Tested:
* Ran automated test cases
* Verified that cached data is cleared without errors during boot
* When config file was found and loaded
* When no config file was found

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Ief45fe32ddcb122847d201e89ca1267526a87e3c

show more ...


# d692d6df 14-Sep-2020 Bob King <Bob_King@wistron.com>

regulators: Modify close() to use services

Modify the Device::close() method in the Device class to have a new
first parameter: Services& services.

Modify Device::close() to log messages using the

regulators: Modify close() to use services

Modify the Device::close() method in the Device class to have a new
first parameter: Services& services.

Modify Device::close() to log messages using the new Journal
interface.

Modify the Chassis::closeDevices() method in the Chassis class to
have a new first parameter: Services& services.

Modify Chassis::closeDevices() to log messages using the new
Journal interface.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I2a07417d6f7470685f2c27c878ef7936e9f1aa8a

show more ...


# 8a55292d 05-Aug-2020 Bob King <Bob_King@wistron.com>

regulators: Modify monitorSensors() to use Services

Modify the monitorSensors() method in the System, Chassis, Device, and
Rail classes to have a new first parameter: Services& services.

Modify Sen

regulators: Modify monitorSensors() to use Services

Modify the monitorSensors() method in the System, Chassis, Device, and
Rail classes to have a new first parameter: Services& services.

Modify SensorMonitoring::execute() to log messages using the new
Journal interface.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I05820cfa94bc3d15dee7a1714a3d253720aa7f92

show more ...


# 23243f84 28-Jul-2020 Bob King <Bob_King@wistron.com>

regulators: Add Services& services to classes

Modify the configure() method in the System, Chassis, Device, and Rail
classes to have a new first parameter: Services& services.

Fix mock_services.hpp

regulators: Add Services& services to classes

Modify the configure() method in the System, Chassis, Device, and Rail
classes to have a new first parameter: Services& services.

Fix mock_services.hpp bug.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I6ef41de65d2c5b68c55edb42189ba9c0f2e436ed

show more ...


# 8e2294dc 14-Jul-2020 Bob King <Bob_King@wistron.com>

regulators: Add monitorSensors support to System

Implemented the monitorSensors() method in the System class. This method
reads the sensors for the voltage rails produced by the system.

Signed-off

regulators: Add monitorSensors support to System

Implemented the monitorSensors() method in the System class. This method
reads the sensors for the voltage rails produced by the system.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: Ied2248c362708aa77c1efd31abff0cf023211a7e

show more ...


# 5b19ea51 02-Jun-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Close devices when system powering off

Modify the Manager class to close all regulator devices when monitoring
is disabled. Monitoring is normally disabled because the system is
being p

regulators: Close devices when system powering off

Modify the Manager class to close all regulator devices when monitoring
is disabled. Monitoring is normally disabled because the system is
being powered off.

Also add a closeDevices() method to the System class that closes all
devices in the system.

Tested:
* Tested when monitoring was disabled. Verified debug journal message
stating devices were closed.
* Tested multiple consecutive power on/off cycles to ensure device
access remained functional.
* Performed regression test on existing function.
* Created and executed automated tests for System::closeDevices()

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I074190454c505116cccf1bc130a70205f34d0e26

show more ...


# 2af5289d 14-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add configure support to System class

Implemented the configure() method in the System class. This method
configures the regulator devices in all chassis in the system.

Signed-off-by:

regulators: Add configure support to System class

Implemented the configure() method in the System class. This method
configures the regulator devices in all chassis in the system.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Ie78aeb2b44bcb60da74f641743af34911cc13dd6

show more ...


# db0b833c 06-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Build IDMap for system

The IDMap class is used to map string IDs to the corresponding C++
Device, Rail, and Rule objects.

The IDMap class is complete and tested, but it was not previous

regulators: Build IDMap for system

The IDMap class is used to map string IDs to the corresponding C++
Device, Rail, and Rule objects.

The IDMap class is complete and tested, but it was not previously being
populated except in testcases.

Add new methods to the System, Chassis, and Device classes to populate
the IDMap with all the ID -> object mappings in the system.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I80f39b663b011ca643c91f7281ff50c956631331

show more ...


# c3991f16 05-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Create System class

Create a C++ class that represents the entire computer system being
controlled and monitored by the BMC.

The system contains one or more chassis. Chassis are large

regulators: Create System class

Create a C++ class that represents the entire computer system being
controlled and monitored by the BMC.

The system contains one or more chassis. Chassis are large enclosures
that can be independently powered off and on by the BMC.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Iba40637a229c1787b017e7f19b011192621a5d23

show more ...