History log of /openbmc/phosphor-power/phosphor-regulators/src/config_file_parser.cpp (Results 1 – 25 of 34)
Revision Date Author Comments
# 92261f88 01-Feb-2025 Patrick Williams <patrick@stwcx.xyz>

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

Change-Id: I8bc99b559079b8454b11bff0be5ddfb6e55e71ba
Signed-off-by: Patrick Williams <p

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

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

show more ...


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


# 48781aef 10-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

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

show more ...


# 5d23d9d6 08-Nov-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Retry failed I2C operations

A previous commit enhanced the I2CInterface class hierarchy to support
retrying failed I2C operations.

Modify the phosphor-regulators application to utilize

regulators: Retry failed I2C operations

A previous commit enhanced the I2CInterface class hierarchy to support
retrying failed I2C operations.

Modify the phosphor-regulators application to utilize this new support.
Specify that failed I2C operations should be retried a maximum of 3
times.

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

show more ...


# a2a830b1 30-Oct-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Allow empty expected VPD value

Modify the compare_vpd action to support specifying an empty string or
empty byte vector as the expected keyword value.

The VPD service was modified in a

regulators: Allow empty expected VPD value

Modify the compare_vpd action to support specifying an empty string or
empty byte vector as the expected keyword value.

The VPD service was modified in a previous commit to return an empty
keyword value if the VPD interface or keyword does not exist on the
specified D-Bus object path. Thus, the actual keyword value may be
empty.

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

show more ...


# 4c88a4c2 21-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Make inventory_path required property

Make "inventory_path" a required property of the "chassis" object in the
regulators JSON configuration file.

This property is used to create the ch

regulators: Make inventory_path required property

Make "inventory_path" a required property of the "chassis" object in the
regulators JSON configuration file.

This property is used to create the chassis <-> sensor associations
required by bmcweb for finding regulator sensors.

The property is already documented in the markdown file as being
required. However, that requirement was not being enforced in the JSON
schema nor in the C++ configuration file parser.

The existing configuration files did not have the property, and
requiring it would have caused errors.

Those configuration files have been updated to include the property, so
the requirement is now being enforced.

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

show more ...


# 32252599 08-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add PhaseFaultDetection to Device

Add a PhaseFaultDetection data member to the Device class. This is the
first step in enabling phase fault detection for Device objects.

Create and mod

regulators: Add PhaseFaultDetection to Device

Add a PhaseFaultDetection data member to the Device class. This is the
first step in enabling phase fault detection for Device objects.

Create and modify gtest test cases to exercise new code.

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

show more ...


# 39eb08a9 07-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add phase_fault_detection to parser

Enhance the JSON configuration file parser to support the new
phase_fault_detection object.

Add gtest test cases to exercise new code.

Signed-off-by

regulators: Add phase_fault_detection to parser

Enhance the JSON configuration file parser to support the new
phase_fault_detection object.

Add gtest test cases to exercise new code.

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

show more ...


# 1115785f 07-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add log_phase_fault to parser

Enhance the JSON configuration file parser to support the new
log_phase_fault action.

Add gtest test cases to exercise new code.

Signed-off-by: Shawn McCa

regulators: Add log_phase_fault to parser

Enhance the JSON configuration file parser to support the new
log_phase_fault action.

Add gtest test cases to exercise new code.

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

show more ...


# b70370b7 07-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add phase fault type to parser

Enhance the JSON configuration file parser to support the new
phase fault type values.

Add gtest test cases to exercise new code.

Signed-off-by: Shawn Mc

regulators: Add phase fault type to parser

Enhance the JSON configuration file parser to support the new
phase fault type values.

Add gtest test cases to exercise new code.

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

show more ...


# 91f87a56 07-Sep-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add i2c_capture_bytes to parser

Enhance the JSON configuration file parser to support the new
i2c_capture_bytes action.

Add gtest test cases to exercise new code.

Signed-off-by: Shawn

regulators: Add i2c_capture_bytes to parser

Enhance the JSON configuration file parser to support the new
i2c_capture_bytes action.

Add gtest test cases to exercise new code.

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

show more ...


# aacc2aaf 25-May-2021 Matt Spinler <spinler@us.ibm.com>

regulators: Support a string or vector for VPD

Add a 'byte_values' alternative to the 'value' entry in the compare VPD
action. This is to support VPD values that are not strings, such as
'HW', a ne

regulators: Support a string or vector for VPD

Add a 'byte_values' alternative to the 'value' entry in the compare VPD
action. This is to support VPD values that are not strings, such as
'HW', a new IBM keyword that describes the version of a piece of
hardware.

To support this, the VPD class now treats all VPD keyword values as
vectors of uint8_ts, including in its data cache. If a compare VPD
action in the JSON contains a string value, it will be converted to the
vector before the CompareVPDAction class is created.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I3fcabf896f4885feae1b07ee2c3da5929cf8bfa4

show more ...


# cb3f6a63 30-Apr-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add inventory path to Chassis class

A previous commit added the "inventory_path" property to the "chassis"
object in the JSON configuration file.

This commit adds that new property to t

regulators: Add inventory path to Chassis class

A previous commit added the "inventory_path" property to the "chassis"
object in the JSON configuration file.

This commit adds that new property to the C++ implementation:
* Chassis class and associated gtests
* JSON configuration file parser functions and associated gtests
* Other gtests affected by the change to the Chassis constructor

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

show more ...


# 2f9e14f6 29-Apr-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Convert to new SensorType enumeration

There are several types of voltage regulator sensors, such as vout,
iout, and temperature.

The sensor types were previously defined by the enumerat

regulators: Convert to new SensorType enumeration

There are several types of voltage regulator sensors, such as vout,
iout, and temperature.

The sensor types were previously defined by the enumeration
pmbus_utils::SensorValueType. This enumeration should not have been
placed in the pmbus_utils namespace because it is not specific to PMBus.

A new enumeration with the simpler name SensorType was created in
sensors.hpp in a previous commit.

Remove the old enumeration from pmbus_utils. Convert affected files to
use the new enumeration.

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

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


# 84614882 30-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Implements support for pmbus_read_sensor action

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

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

regulators: Implements support for pmbus_read_sensor action

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

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

show more ...


# f2134320 27-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 ...


# b267b7eb 22-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 ...


# 18a68505 17-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 ...


# 2aafb1c7 16-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 ...


# 93a89d72 15-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 ...


# 0b51a9b2 15-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 ...


# f1b58dc4 14-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 ...


# 3a787540 14-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 ...


# f09bfe07 13-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 ...


12