Revision Date Author Comments
# 421128ef 25-Aug-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add phase faults to ActionEnvironment

Enhance the ActionEnvironment class to support detecting and logging
redundant phase fault errors.

Add gtests to test the new functions/methods.

S

regulators: Add phase faults to ActionEnvironment

Enhance the ActionEnvironment class to support detecting and logging
redundant phase fault errors.

Add gtests to test the new functions/methods.

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

show more ...


# 5135df63 28-Apr-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Remove SensorReading data type

Remove the SensorReading data type defined in pmbus_utils.hpp and used
in several locations. This data type is no longer needed.

The original design was

regulators: Remove SensorReading data type

Remove the SensorReading data type defined in pmbus_utils.hpp and used
in several locations. This data type is no longer needed.

The original design was for sensor readings to be accumulated in the
ActionEnvironment while the PMBus actions were being executed. Then all
the sensor readings for a voltage rail would be published on D-Bus at
the same time.

The current design is for sensor readings to be immediately published on
D-Bus as they are read using the new Sensors service. They no longer
need to be accumulated in the ActionEnvironment.

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

show more ...


# 73eaceeb 23-Oct-2020 Bob King <Bob_King@wistron.com>

regulators: Add Services to ActionEnvironment

Add Services& services to the ActionEnvironment constructor.
Add Services& getServices() to the ActionEnvironment class.
Add Services& services to the A

regulators: Add Services to ActionEnvironment

Add Services& services to the ActionEnvironment constructor.
Add Services& getServices() to the ActionEnvironment class.
Add Services& services to the ActionEnvironment class.
Update the ActionEnvironment test for the new getServices() method.
Update classes that create an ActionEnvironment.
Update all affected testcases that create an ActionEnvironment.

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

show more ...


# a76898f1 13-Oct-2020 Bob King <Bob_King@wistron.com>

regulators: Enhance config file parser

Enhance JSON config file parser to convert relative inventory paths to
absolute form.

Tested:
Run local CI with -Dlong-tests=enabled to enable tests for
valid

regulators: Enhance config file parser

Enhance JSON config file parser to convert relative inventory paths to
absolute form.

Tested:
Run local CI with -Dlong-tests=enabled to enable tests for
validate-regulators-config.py.

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

show more ...


# b1ab1cf0 18-May-2020 Bob King <Bob_King@wistron.com>

regulators: ActionEnvironment enhancements

Define a new struct named SensorReading. This will be used the store the
value read when PMBusReadSensorAction::execute() is called.

Add a new data membe

regulators: ActionEnvironment enhancements

Define a new struct named SensorReading. This will be used the store the
value read when PMBusReadSensorAction::execute() is called.

Add a new data member sensorReadings.
This will hold the sensor readings that are obtained

Add a new method addSensorReading.
It add the specified SensorReading to the sensorReadings vector.

Add a new method getSensorReadings.
This will be called by the SensorMonitoring object.

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

show more ...


# 0fd07d7d 06-Mar-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Use std::optional in ActionEnvironment

Use the std::optional data type in the ActionEnvironment class to
represent an optional volts value setting.

Signed-off-by: Shawn McCarney <shawnm

regulators: Use std::optional in ActionEnvironment

Use the std::optional data type in the ActionEnvironment class to
represent an optional volts value setting.

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

show more ...


# afb7fc3f 11-Dec-2019 Shawn McCarney <shawnmm@us.ibm.com>

Add I2C interface to Device class

Add an I2C interface to the phosphor-regulators C++ Device class.

Use the I2CInterface class from the tools/i2c directory of this
repository.

Also add the other r

Add I2C interface to Device class

Add an I2C interface to the phosphor-regulators C++ Device class.

Use the I2CInterface class from the tools/i2c directory of this
repository.

Also add the other required properties of the JSON "device" object to
the C++ Device class.

The JSON "device" object is in the phosphor-regulators config file. For
more information, see phosphor-regulators/docs/config_file/device.md.

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

show more ...


# 2134ca66 11-Nov-2019 Shawn McCarney <shawnmm@us.ibm.com>

Create regulators RunRuleAction class

Create the RunRuleAction class that implements the run_rule action in
the JSON config file.

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

Create regulators RunRuleAction class

Create the RunRuleAction class that implements the run_rule action in
the JSON config file.

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

show more ...


# 9fc08e73 07-Nov-2019 Shawn McCarney <shawnmm@us.ibm.com>

Enhance regulators Rule class

Enhance the regulators Rule class by adding a vector of actions and an
execute() method.

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

Enhance regulators Rule class

Enhance the regulators Rule class by adding a vector of actions and an
execute() method.

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

show more ...


# c69a2750 30-Oct-2019 Shawn McCarney <shawnmm@us.ibm.com>

Create regulators ActionEnvironment class

Create the ActionEnvironment class used in the regulators action
framework.

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

Create regulators ActionEnvironment class

Create the ActionEnvironment class used in the regulators action
framework.

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

show more ...