History log of /openbmc/phosphor-power/phosphor-regulators/ (Results 151 – 175 of 305)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
d6820bb828-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Create regulators PMBusReadSensorAction class

Create the PMBusReadSensorAction class that implements the
"pmbus_read_sensor" action in the JSON config file.

Only create the .hpp file fo

regulators: Create regulators PMBusReadSensorAction class

Create the PMBusReadSensorAction class that implements the
"pmbus_read_sensor" action in the JSON config file.

Only create the .hpp file for PMBusReadSensorAction class first.

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

show more ...

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

regulators: Implements support for compare_vpd action

Enhance the configuration file parser to support the compare_vpd
action element.

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

regulators: Implements support for compare_vpd action

Enhance the configuration file parser to support the compare_vpd
action element.

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

show more ...

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

regulators: Create regulators CompareVPDAction class

Create the CompareVPDAction class that implements the
"compare_vpd" action in the JSON config file.

Only create the .hpp file for CompareVPDActi

regulators: Create regulators CompareVPDAction class

Create the CompareVPDAction class that implements the
"compare_vpd" action in the JSON config file.

Only create the .hpp file for CompareVPDAction class first.

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

show more ...

6345c6c504-May-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Implement D-Bus configure method

The phosphor-regulators D-Bus configure method is called from a service
file when booting the BMC system. The method is called shortly before
the regula

regulators: Implement D-Bus configure method

The phosphor-regulators D-Bus configure method is called from a service
file when booting the BMC system. The method is called shortly before
the regulators are enabled (turned on).

Previously the configure method did not do anything; it was a
placeholder.

This commit adds the implementation of the configure method. The method
now configures the regulator devices in the system using the rules and
actions in the JSON config file.

Also commented out the partial implementation of the D-Bus monitor
method. This method has not been fully implemented or tested yet.

Tested:
* Tested phosphor-regulators application through chassison/chassisoff
and poweron/poweroff.
* Verified systemd state and journal messages.
* Verified that all configuration specified in the config file was
applied to the regulators.
* Tested when an I2C failure occurs when configuring a regulator.
* Verified that monitoring can be safely enabled and disabled but it
performs no current function.

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

show more ...

e0c6a2d901-May-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Load JSON config file

There are three basic steps to loading the JSON configuration file
for the phosphor-regulators application:
* Find the correct base name using a D-Bus query
* Find

regulators: Load JSON config file

There are three basic steps to loading the JSON configuration file
for the phosphor-regulators application:
* Find the correct base name using a D-Bus query
* Find the absolute path to the file by searching two directories
* Parse the config file and store the resulting C++ objects

The base name is currently hard-coded while waiting for an EntityManager
enhancement to be completed. So the first step is partially done.

This commit implements the second and third steps.

Some minor changes were also made to conform these files to the coding
conventions used in the rest of the phosphor-regulators application.

Tested:
* See test plan:
https://gist.github.com/smccarney/5d164131a84717b3f2a8835ae0fc466b

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

show more ...

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

regulators: Temporarily hard-code config file name

The JSON configuration file name for the current system will be obtained
from a D-Bus interface and property. That interface will be provided by
t

regulators: Temporarily hard-code config file name

The JSON configuration file name for the current system will be obtained
from a D-Bus interface and property. That interface will be provided by
the EntityManager application.

Unfortunately the interface is not yet completely defined or
implemented. While waiting for this interface to be completed, a
hard-coded JSON config file name will be used. This is expected to be a
very short-term solution (a few weeks).

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

show more ...

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

regulators: Initial JSON config file for Rainier

Create an initial JSON configuration file for IBM Rainier systems. File
does not yet contain any device information.

Also delete the '.keep' file t

regulators: Initial JSON config file for Rainier

Create an initial JSON configuration file for IBM Rainier systems. File
does not yet contain any device information.

Also delete the '.keep' file that existed solely to allow the
'config_files' directory to exist. git does not allow empty
directories.

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

show more ...

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

Add 'long-tests' build option

Add a new meson build option for handling long-running tests that should
be excluded from CI.

Meson enforces a timeout on testcases. If the testcase runs longer than

Add 'long-tests' build option

Add a new meson build option for handling long-running tests that should
be excluded from CI.

Meson enforces a timeout on testcases. If the testcase runs longer than
the timeout value, the testcase is considered failed.

The timeout value can be increased, but sometimes this is still
insufficient. Testcases are run multiple times in CI, including within
environments like valgrind that increase their run times.

Very long running testcases should probably be excluded from CI runs
rather than setting the timeout to an arbitrarily large value like 5
minutes.

The 'long-tests' option defaults to disabled. Long-running tests will
only be built and run if option is explicitly set to enabled.

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

show more ...

3270708813-Apr-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Regulators control program

The regulators control program is used to control the mode in which the
phosphor-regulators application should run in. This is done by doing
dbus method calls into t

regs: Regulators control program

The regulators control program is used to control the mode in which the
phosphor-regulators application should run in. This is done by doing
dbus method calls into the phosphor-regulators service which changes the
mode in which the application runs.

Tested:
Handles unsupported arguments and parameters
Configure mode method called
Enable monitoring mode method called
Disable monitoring mode method called

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

show more ...

cd9ab08713-Apr-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Create regulator control utility function

The regulator control program will call methods on the
phosphor-regulators service to control the mode in which the
phosphor-regulators application sh

regs: Create regulator control utility function

The regulator control program will call methods on the
phosphor-regulators service to control the mode in which the
phosphor-regulators application should run in.

Tested:
Dbus method call occurs against the phosphor-regulators service

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

show more ...

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

regulators: Implements support for compare_presence action

Enhance the configuration file parser to support the
compare_presence action element.

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

regulators: Implements support for compare_presence action

Enhance the configuration file parser to support the
compare_presence action element.

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

show more ...

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

regulators: Create regulators ComparePresenceAction class

Create the ComparePresenceAction class that implements the
"compare_presence" action in the JSON config file.

Only create the .hpp file for

regulators: Create regulators ComparePresenceAction class

Create the ComparePresenceAction class that implements the
"compare_presence" action in the JSON config file.

Only create the .hpp file for ComparePresenceAction class first.

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

show more ...

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

regulators: Implements support for set_device action

Enhance the configuration file parser to support the set_device
action element.

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

regulators: Implements support for set_device action

Enhance the configuration file parser to support the set_device
action element.

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

show more ...

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

regulators: Implements support for presence_detection

Enhance the configuration file parser to support the
presence_detection element.

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

regulators: Implements support for presence_detection

Enhance the configuration file parser to support the
presence_detection element.

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

show more ...

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

regulators: Implements support for if action

Enhance the configuration file parser to support the if action element.

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

regulators: Implements support for if action

Enhance the configuration file parser to support the if action element.

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

show more ...

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

regulators: Implements support for or action

Enhance the configuration file parser to support the or action element.

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

regulators: Implements support for or action

Enhance the configuration file parser to support the or action element.

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

show more ...

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

regulators: Implements support for not action

Enhance the configuration file parser to support the not action element.

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

regulators: Implements support for not action

Enhance the configuration file parser to support the not action element.

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

show more ...

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

regulators: Implements support for and action

Enhance the configuration file parser to support the and action element.

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

regulators: Implements support for and action

Enhance the configuration file parser to support the and action element.

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

show more ...

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

regulators: Implements support for i2c_compare actions

Enhance the configuration file parser to support the i2c_compare_bit,
i2c_compare_byte, and i2c_compare_bytes actions.

Signed-off-by: Bob King

regulators: Implements support for i2c_compare actions

Enhance the configuration file parser to support the i2c_compare_bit,
i2c_compare_byte, and i2c_compare_bytes actions.

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

show more ...

2af5289d14-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 ...

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

regulators: Add configure support to Chassis class

Implemented the configure() method in the Chassis class. This method
configures all the regulator devices within the chassis.

Also made very mino

regulators: Add configure support to Chassis class

Implemented the configure() method in the Chassis class. This method
configures all the regulator devices within the chassis.

Also made very minor fixes to two testcases.

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

show more ...

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

regulators: Add configure support to Device class

Implemented the configure() method in the Device class. This method
applies any configuration changes that are defined for the device. Also
config

regulators: Add configure support to Device class

Implemented the configure() method in the Device class. This method
applies any configuration changes that are defined for the device. Also
configures all rails within the device.

Also added a missing #include to rail_tests.cpp.

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

show more ...

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

regulators: Add configure support to Rail class

Implemented the configure() method in the Rail class. This method
applies any configuration changes that are defined for the rail.

Also added a few

regulators: Add configure support to Rail class

Implemented the configure() method in the Rail class. This method
applies any configuration changes that are defined for the rail.

Also added a few missing #includes in the configuration_tests.cpp file.

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

show more ...

250d0a9828-Feb-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Subscribe to InterfacesAdded signals

Subscribe to InterfacesAdded signals to handle not being able to read
the JSON configuration data filename from dbus due to the service
hosting that proper

regs: Subscribe to InterfacesAdded signals

Subscribe to InterfacesAdded signals to handle not being able to read
the JSON configuration data filename from dbus due to the service
hosting that property is not available yet. The InterfacesAdded signal
is used to get notified when that property becomes available on dbus and
is read upon receiving the signal.

Tested:
InterfacesAdded signals on an object path is received
A string is used as the filename when the path, interface, and
property match from the InterfacesAdded signals received

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

show more ...

bbc7c58303-Feb-2020 Matthew Barth <msbarth@us.ibm.com>

regs: Get JSON configuration data filename from dbus

Retrieve the JSON configuration data filename from the service on dbus
hosting the predefined path, interface and system identifier property.
The

regs: Get JSON configuration data filename from dbus

Retrieve the JSON configuration data filename from the service on dbus
hosting the predefined path, interface and system identifier property.
The system identifier property's value is used as the direct JSON
configuration data filename with the `.json` extension added.

Tested:
A string representing the filename is retrieved from dbus

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

show more ...

12345678910>>...13