History log of /openbmc/phosphor-power/phosphor-regulators/ (Results 176 – 200 of 305)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
23a5e59930-Jan-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Add initial dbus attributes for system type

Added the possible dbus object path, interface, and property that would
contain the system type needed to load the correct regulator
configuration d

regs: Add initial dbus attributes for system type

Added the possible dbus object path, interface, and property that would
contain the system type needed to load the correct regulator
configuration data.

Tested:
N/A

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: Ifcc2579bdc67d708fef4c6ffe27149125f20f0b8

show more ...

7cbc553629-Jan-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Handle HUP signals

Enable capturing and handling a HUP signal to reload configuration data.

Tested:
Handler function called upon receiving a SIGHUP

Signed-off-by: Matthew Barth <msbarth@

regs: Handle HUP signals

Enable capturing and handling a HUP signal to reload configuration data.

Tested:
Handler function called upon receiving a SIGHUP

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I41d136ede5f2a4c0bf595ee58993a4408f153013

show more ...

f2bcf1f929-Jan-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Add an event timer for monitoring

Create and enable a repeating 1 second timer when monitoring is enabled.
Delete the timer when monitoring is disabled.

Tested:
Timer created when monitor

regs: Add an event timer for monitoring

Create and enable a repeating 1 second timer when monitoring is enabled.
Delete the timer when monitoring is disabled.

Tested:
Timer created when monitoring is enabled
Each timer expiration calls bound callback function
Timer stopped/deleted when monitoring is disabled

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I990124fb727bb0a0545ce06f9c878e81b572c7a5

show more ...

29e9e38523-Jan-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Add manager object

Create a manager object that extends the manager interface overriding
the configure and monitor methods. This provides the framework for
receiving dbus method calls at the a

regs: Add manager object

Create a manager object that extends the manager interface overriding
the configure and monitor methods. This provides the framework for
receiving dbus method calls at the appropriate times during a system
poweron or poweroff.

Tested:
Used `busctl` to call the configure method
Used `busctl` to call the monitor method

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I09db5a800a09205ba182824e62bacb19b10856bd

show more ...

37d73ec330-Mar-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Add private manager dbus interface

Create a manager interface that is private to the regulators application
which can be extended to provide a dbus inteface containing methods to
configure and

regs: Add private manager dbus interface

Create a manager interface that is private to the regulators application
which can be extended to provide a dbus inteface containing methods to
configure and monitor regulators. Since this interface is private to the
regulators application, it will only be accessed thru a standalone
application, TBD, which will be maintained within the
phosphor-regulators repository.

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I615e2a0f711baa8a8e70d443f6256dc175b4abca

show more ...

3976500f09-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Implement Configuration execution

Implement the execute() method of the Configuration class. This method
configures a regulator device/rail by executing actions from the JSON
config fil

regulators: Implement Configuration execution

Implement the execute() method of the Configuration class. This method
configures a regulator device/rail by executing actions from the JSON
config file.

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

show more ...

6afbf1a506-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Modify instances for implicit conversion

Modify instances for implicit conversion of JSON element
values within the config file parser.

Signed-off-by: Bob King <Bob_King@wistron.com>
Ch

regulators: Modify instances for implicit conversion

Modify instances for implicit conversion of JSON element
values within the config file parser.

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

show more ...

a2f2a0dc09-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for rail

Enhance the configuration file parser to support the rail element.

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

regulators: Implements support for rail

Enhance the configuration file parser to support the rail element.

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

show more ...

33e7eaa501-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for configuration

Enhance the configuration file parser to support the configuration
element.

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

regulators: Implements support for configuration

Enhance the configuration file parser to support the configuration
element.

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

show more ...

9c36c5fb05-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for device

Enhance the configuration file parser to support the device and
i2c_interface elements.

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

regulators: Implements support for device

Enhance the configuration file parser to support the device and
i2c_interface elements.

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

show more ...

55f496c509-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Create exception_utils namespace

This namespace contains utility functions for handling exceptions.

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

regulators: Create exception_utils namespace

This namespace contains utility functions for handling exceptions.

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

show more ...

9af8555609-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add logDebug() to journal interface

Enhance the journal interface to support logging messages with a
priority value of 'DEBUG'.

DEBUG messages are not normally stored by the systemd jou

regulators: Add logDebug() to journal interface

Enhance the journal interface to support logging messages with a
priority value of 'DEBUG'.

DEBUG messages are not normally stored by the systemd journal. However,
the systemd journal configuration can be modified to store and display
them when debugging a problem.

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

show more ...

e22e0c4b07-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Fix IDMap testcases for duplicate IDs

A recent commit enhanced the IDMap class to detect duplicate IDs.

The corresponding testcases were missing an ADD_FAILURE() statement
covering the

regulators: Fix IDMap testcases for duplicate IDs

A recent commit enhanced the IDMap class to detect duplicate IDs.

The corresponding testcases were missing an ADD_FAILURE() statement
covering the case where the expected exception was not thrown.

Fixed the testcases by adding the ADD_FAILURE() statements.

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

show more ...

db0b833c06-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 ...

0e70113d03-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for chassis

Implements support for parsing the chassis JSON elements in the
configuration file parser.

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

regulators: Implements support for chassis

Implements support for parsing the chassis JSON elements in the
configuration file parser.

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

show more ...

315b0b6203-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for run_rule

Implements support for parsing the run_rule JSON elements in the
configuration file parser.

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

regulators: Implements support for run_rule

Implements support for parsing the run_rule JSON elements in the
configuration file parser.

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

show more ...

bafcb86c31-Mar-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for i2c_write_bytes

Implements support for parsing the i2c_write_bytes JSON elements in the
configuration file parser.

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

regulators: Implements support for i2c_write_bytes

Implements support for parsing the i2c_write_bytes JSON elements in the
configuration file parser.

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

show more ...

e38f8a2105-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Enhance IDMap to detect duplicate IDs

The IDMap class provides a mapping from unique string IDs to the
corresponding Device, Rail, and Rule objects.

Enhance IDMap to detect duplicate ID

regulators: Enhance IDMap to detect duplicate IDs

The IDMap class provides a mapping from unique string IDs to the
corresponding Device, Rail, and Rule objects.

Enhance IDMap to detect duplicate IDs. Throw an exception if the caller
tries to add a Device, Rail, or Rule whose ID already exists in the map.

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

show more ...

c3991f1605-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 ...

7c5d7b2703-Apr-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Create journal interface

Create a light-weight interface for logging messages to the systemd
journal.

The standard interface implementation calls the phosphor-logging
functions to creat

regulators: Create journal interface

Create a light-weight interface for logging messages to the systemd
journal.

The standard interface implementation calls the phosphor-logging
functions to create real journal entries. This is the implementation
that the phosphor-regulators application links with.

The mock interface implementation stores the journal messages in static
vectors and provides functions to access them. This is the
implementation that testcases link with.

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

show more ...

87ff9d7d31-Mar-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for i2c_write_byte

Implements support for parsing the i2c_write_byte JSON elements in the
configuration file parser.

Signed-off-by: Bob King <Bob_King@wistron.com>
Ch

regulators: Implements support for i2c_write_byte

Implements support for parsing the i2c_write_byte JSON elements in the
configuration file parser.

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

show more ...

f617f89330-Mar-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for i2c_write_bit

Implements support for parsing the i2c_write_bit JSON elements in the
configuration file parser.

Signed-off-by: Bob King <Bob_King@wistron.com>
Chan

regulators: Implements support for i2c_write_bit

Implements support for parsing the i2c_write_bit JSON elements in the
configuration file parser.

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

show more ...

e85499b627-Mar-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Skip validation tool tests in SDK

Automated unit tests exist for the phosphor-regulators configuration
file validation tool.

The unit tests run the validation tool against various input

regulators: Skip validation tool tests in SDK

Automated unit tests exist for the phosphor-regulators configuration
file validation tool.

The unit tests run the validation tool against various input files. The
validation tool is written in Python and requires the 'jsonschema'
Python module to be installed. This module is not currently installed
within the SDK build/test execution environment.

Modify the meson build file to skip the validation tool tests when
building from within an SDK environment.

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

show more ...

80c0b04927-Mar-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Make TmpFile class common

A TmpFile class was implemented in two different test cases to
automatically create and delete temporary files.

Moved the TmpFile class into a standalone file

regulators: Make TmpFile class common

A TmpFile class was implemented in two different test cases to
automatically create and delete temporary files.

Moved the TmpFile class into a standalone file so that the code could be
common among test cases. Improved the error handling.

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

show more ...

0e8c68ab27-Mar-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Create configuration file parser

Create the initial version of the configuration file parser. This will
parse the JSON configuration file that controls the phosphor-regulators
applicati

regulators: Create configuration file parser

Create the initial version of the configuration file parser. This will
parse the JSON configuration file that controls the phosphor-regulators
application.

This commit implements support for parsing the following JSON elements:
* root element in the config file (config_file.md)
* array of rules
* rule (rule.md)
* array of actions
* action (action.md)
* pmbus_write_vout_command (pmbus_write_vout_command.md)
* array of chassis (chassis.md)

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

show more ...

12345678910>>...13