History log of /openbmc/phosphor-power/phosphor-power-supply/ (Results 176 – 187 of 187)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
8b89f1b112-Mar-2020 Brandon Wyman <bjwyman@gmail.com>

Updates to load JSON file from default location

The default (read-only) location for the JSON configuration file should
be /usr/share/phosphor-psu-monitor. Load from there if a file does not
exist i

Updates to load JSON file from default location

The default (read-only) location for the JSON configuration file should
be /usr/share/phosphor-psu-monitor. Load from there if a file does not
exist in /etc/phosphor-psu-monitor.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I704d24ecb55c948843eaea74b648d4b7b6c5a8a2

show more ...

d0a26bb911-Mar-2020 Brandon Wyman <bjwyman@gmail.com>

Install phosphor-psu-monitor configuration files

Updates to install files from the configuration directory into the
datadir in the built image.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Chan

Install phosphor-psu-monitor configuration files

Updates to install files from the configuration directory into the
datadir in the built image.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: Idcf4713ce96cc7567bd0f004b82d5c2132f92cf8

show more ...

3f1242f328-Jan-2020 Brandon Wyman <bjwyman@gmail.com>

Update analyze function to check STATUS_WORD

The STATUS_WORD PMBus command response will be the start of the power
supply fault analysis. Update the analyze() function to read its value
and process

Update analyze function to check STATUS_WORD

The STATUS_WORD PMBus command response will be the start of the power
supply fault analysis. Update the analyze() function to read its value
and process (select) fault bits.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: If7274ad237c0604a56008676ae64804a5fd2854e

show more ...

8d19577127-Jan-2020 Brandon Wyman <bjwyman@gmail.com>

Create PMBusBase class to allow for mocking

Derive the PMBus class from a new PMBusBase class to allow for the use
of Google Mock for unit testing. Create an interface to PMBusBase in the
phosphor-p

Create PMBusBase class to allow for mocking

Derive the PMBus class from a new PMBusBase class to allow for the use
of Google Mock for unit testing. Create an interface to PMBusBase in the
phosphor-power-supply code.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I6dd8d8a64bdece0d82478450ec83f1aefcae4c75

show more ...

c63941ca27-Jan-2020 Brandon Wyman <bjwyman@gmail.com>

Parse I2C bus and address out of JSON config file

The I2C bus and address need to be passed down to the PowerSupply
constructor, so get those out of the JSON configuration file now.

Change I2C addr

Parse I2C bus and address out of JSON config file

The I2C bus and address need to be passed down to the PowerSupply
constructor, so get those out of the JSON configuration file now.

Change I2C address format in JSON to be a string, without the
hexadecimal format since it needs to be appended to a string, allowing
to skip conversion from string to number and then from number back to
string.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I2707799bb60d1f4a9783a0403bc3e4920461b7a1

show more ...

aed1f75d25-Nov-2019 Brandon Wyman <bjwyman@gmail.com>

psu: Updates for power supply presence

Update the JSON file to indicate the minimum and maximum number of power
supplies this system can have.

Update the JSON file to have an array of power supply

psu: Updates for power supply presence

Update the JSON file to indicate the minimum and maximum number of power
supplies this system can have.

Update the JSON file to have an array of power supply objects, each with
their various own properties. Each power supply will have:
1) An associated D-Bus path for the inventory. This will have the
Present property.
2) An associated I2C bus number.
3) An associated I2C bus adddress.

Update PowerSupply class to have a present member variable, an
isPresent() accessor function, and two functions for updating the
presence. One function will be the call back function for either
inventory change events or interface added events, which will use
associated match member variables. The second function being one that
attempts to read the inventory Present property on startup. If reading
the Present property on startup fails, the property changed or interface
added events should work to get the value when that property is
available.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: Ib34510a6da66ba1b8f1e927093b3d10b09beb410

show more ...

2fe5186e25-Nov-2019 Brandon Wyman <bjwyman@gmail.com>

psu: Add code to get pollInterval from JSON file

Add in a helper function to open JSON file and parse out the configuration
properties. Use the helper function to get the pollInterval in the constru

psu: Add code to get pollInterval from JSON file

Add in a helper function to open JSON file and parse out the configuration
properties. Use the helper function to get the pollInterval in the constructor.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: Ia8cf1c148a1685e2e09703c02e469a0bff034af5

show more ...


/openbmc/phosphor-power/meson.build
README.md
configurations/witherspoon/psu_config.json
main.cpp
psu_manager.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_compare_bit_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_compare_bit_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_compare_byte_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_compare_byte_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_compare_bytes_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_compare_bytes_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_write_bit_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_write_bit_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_write_byte_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_write_byte_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_write_bytes_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/i2c_write_bytes_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/pmbus_write_vout_command_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/pmbus_write_vout_command_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/meson.build
/openbmc/phosphor-power/phosphor-regulators/src/pmbus_error.hpp
/openbmc/phosphor-power/phosphor-regulators/src/pmbus_utils.cpp
/openbmc/phosphor-power/phosphor-regulators/src/pmbus_utils.hpp
/openbmc/phosphor-power/phosphor-regulators/src/write_verification_error.hpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/i2c_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/i2c_compare_bit_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/i2c_compare_byte_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/i2c_compare_bytes_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/i2c_write_bit_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/i2c_write_byte_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/i2c_write_bytes_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/pmbus_write_vout_command_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/meson.build
/openbmc/phosphor-power/phosphor-regulators/test/pmbus_error_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/pmbus_utils_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/validate-regulators-config_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/write_verification_error_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/tools/validate-regulators-config.py
/openbmc/phosphor-power/services/phosphor-regulators.service
/openbmc/phosphor-power/tools/i2c/i2c_interface.hpp
a0f33ce317-Oct-2019 Brandon Wyman <bjwyman@gmail.com>

psu: Introduce the PowerSupply class

The Power Supply Manager (PSUManager) class will need a list of power
supplies to work with. Create these via the PowerSupply class.

Update Power Supply Manager

psu: Introduce the PowerSupply class

The Power Supply Manager (PSUManager) class will need a list of power
supplies to work with. Create these via the PowerSupply class.

Update Power Supply Manager to call the initialization function, and
update the power state.

Update clearFaults() to go through the list of power supplies and call
their individual clearFaults() functions.

Update the power supply manager analyze() function to go through the
list of power supplies and call their analyze() function.

Update the power supply manager updateInventory() function to call the
updateInventory() function in each power supply in the list.

Update the meson.build file to include the header files in the parent
directory, and link with the library containing the utility functions
the binary will need to use.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I743180d47f1b25d34c7e7001b64a6197905b86ff

show more ...


/openbmc/phosphor-power/meson.build
/openbmc/phosphor-power/meson_options.txt
main.cpp
meson.build
power_supply.hpp
psu_manager.cpp
psu_manager.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/action_error.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/and_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/if_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/not_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/or_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/run_rule_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/set_device_action.hpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/action_error_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/and_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/if_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/mock_action.hpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/not_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/or_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/run_rule_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/set_device_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/meson.build
/openbmc/phosphor-power/power-supply/meson.build
/openbmc/phosphor-power/power-supply/test/meson.build
/openbmc/phosphor-power/test/meson.build
/openbmc/phosphor-power/tools/i2c/meson.build
/openbmc/phosphor-power/tools/i2c/test/meson.build
/openbmc/phosphor-power/tools/power-utils/meson.build
/openbmc/phosphor-power/tools/power-utils/test/meson.build
2bac860912-Sep-2019 Brandon Wyman <bjwyman@gmail.com>

psu: Update to use Power Supply Manager class

Create a power supply manager class that will be used create a list of
power supplies to manage.

Change-Id: I4c392f7060fbd06dbe6a9417810ed911b3ea689a
S

psu: Update to use Power Supply Manager class

Create a power supply manager class that will be used create a list of
power supplies to manage.

Change-Id: I4c392f7060fbd06dbe6a9417810ed911b3ea689a
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...

57939e8426-Aug-2019 Brandon Wyman <bjwyman@gmail.com>

psu: Add command line argument for JSON config file

Allow for a -c/--config argument to pass in full path to a JSON
configuration file. This argument is optional, if not specified, load
the JSON con

psu: Add command line argument for JSON config file

Allow for a -c/--config argument to pass in full path to a JSON
configuration file. This argument is optional, if not specified, load
the JSON configuration file from:
/etc/phosphor-psu-monitor/psu_config.json.

Change-Id: I94856c23b09eff32039a1cd26ff35f6f354ea3d4
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...

2ad76bd326-Aug-2019 Brandon Wyman <bjwyman@gmail.com>

Add basic phosphor-psu-monitor application

Change-Id: I3f892e6789c9b081aea04668de6fe0155963d521
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

c974649012-Sep-2019 Brandon Wyman <bjwyman@gmail.com>

Create phosphor-power-supply source directory

Creating a phosphor-power-supply source directory with README.md file to
explain what will be contained in this new source directory.

Change-Id: Ia7a49

Create phosphor-power-supply source directory

Creating a phosphor-power-supply source directory with README.md file to
explain what will be contained in this new source directory.

Change-Id: Ia7a49084304944a81f3122526b79291fe4be07ee
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...


/openbmc/phosphor-power/.clang-format
/openbmc/phosphor-power/.gitignore
/openbmc/phosphor-power/LICENSE
/openbmc/phosphor-power/MAINTAINERS
/openbmc/phosphor-power/README.md
/openbmc/phosphor-power/argument.hpp
/openbmc/phosphor-power/cold-redundancy/cold_redundancy.cpp
/openbmc/phosphor-power/cold-redundancy/cold_redundancy.hpp
/openbmc/phosphor-power/cold-redundancy/meson.build
/openbmc/phosphor-power/cold-redundancy/redundancy_main.cpp
/openbmc/phosphor-power/cold-redundancy/util.cpp
/openbmc/phosphor-power/cold-redundancy/util.hpp
/openbmc/phosphor-power/device.hpp
/openbmc/phosphor-power/device_monitor.hpp
/openbmc/phosphor-power/elog-errors.hpp
/openbmc/phosphor-power/example/psu.json
/openbmc/phosphor-power/file.hpp
/openbmc/phosphor-power/gpio.cpp
/openbmc/phosphor-power/gpio.hpp
/openbmc/phosphor-power/meson.build
/openbmc/phosphor-power/meson_options.txt
/openbmc/phosphor-power/names_values.hpp
/openbmc/phosphor-power/org/open_power/Witherspoon/Fault.errors.yaml
/openbmc/phosphor-power/org/open_power/Witherspoon/Fault.metadata.yaml
/openbmc/phosphor-power/org/open_power/Witherspoon/Fault/meson.build
README.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/README.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/action.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/and.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/chassis.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/compare_presence.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/compare_vpd.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/config_file.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/configuration.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/device.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/i2c_compare_bit.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/i2c_compare_byte.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/i2c_compare_bytes.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/i2c_interface.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/i2c_write_bit.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/i2c_write_byte.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/i2c_write_bytes.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/if.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/not.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/or.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/pmbus_read_sensor.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/pmbus_write_vout_command.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/presence_detection.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/rail.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/rule.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/run_rule.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/sensor_monitoring.md
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/set_device.md
/openbmc/phosphor-power/phosphor-regulators/examples/config_file.json
/openbmc/phosphor-power/phosphor-regulators/meson.build
/openbmc/phosphor-power/phosphor-regulators/schema/config_schema.json
/openbmc/phosphor-power/phosphor-regulators/src/actions/action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/action_environment.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/action_utils.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/and_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/if_action.cpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/if_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/not_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/or_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/run_rule_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/actions/set_device_action.hpp
/openbmc/phosphor-power/phosphor-regulators/src/device.hpp
/openbmc/phosphor-power/phosphor-regulators/src/id_map.cpp
/openbmc/phosphor-power/phosphor-regulators/src/id_map.hpp
/openbmc/phosphor-power/phosphor-regulators/src/main.cpp
/openbmc/phosphor-power/phosphor-regulators/src/meson.build
/openbmc/phosphor-power/phosphor-regulators/src/rail.hpp
/openbmc/phosphor-power/phosphor-regulators/src/rule.hpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/action_environment_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/action_utils_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/and_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/if_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/mock_action.hpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/not_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/or_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/run_rule_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/actions/set_device_action_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/device_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/id_map_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/meson.build
/openbmc/phosphor-power/phosphor-regulators/test/rail_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/rule_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/test/validate-regulators-config_tests.cpp
/openbmc/phosphor-power/phosphor-regulators/tools/validate-regulators-config.py
/openbmc/phosphor-power/pmbus.cpp
/openbmc/phosphor-power/pmbus.hpp
/openbmc/phosphor-power/power-sequencer/argument.cpp
/openbmc/phosphor-power/power-sequencer/example/ucd90160.yaml
/openbmc/phosphor-power/power-sequencer/gen-ucd90160-defs.py
/openbmc/phosphor-power/power-sequencer/main.cpp
/openbmc/phosphor-power/power-sequencer/meson.build
/openbmc/phosphor-power/power-sequencer/pgood_monitor.cpp
/openbmc/phosphor-power/power-sequencer/pgood_monitor.hpp
/openbmc/phosphor-power/power-sequencer/runtime_monitor.cpp
/openbmc/phosphor-power/power-sequencer/runtime_monitor.hpp
/openbmc/phosphor-power/power-sequencer/templates/ucd90160_defs.mako.cpp
/openbmc/phosphor-power/power-sequencer/types.hpp
/openbmc/phosphor-power/power-sequencer/ucd90160.cpp
/openbmc/phosphor-power/power-sequencer/ucd90160.hpp
/openbmc/phosphor-power/power-supply/argument.cpp
/openbmc/phosphor-power/power-supply/average.hpp
/openbmc/phosphor-power/power-supply/main.cpp
/openbmc/phosphor-power/power-supply/maximum.hpp
/openbmc/phosphor-power/power-supply/meson.build
/openbmc/phosphor-power/power-supply/power_supply.cpp
/openbmc/phosphor-power/power-supply/power_supply.hpp
/openbmc/phosphor-power/power-supply/record_manager.cpp
/openbmc/phosphor-power/power-supply/record_manager.hpp
/openbmc/phosphor-power/power-supply/test/meson.build
/openbmc/phosphor-power/power-supply/test/test_records.cpp
/openbmc/phosphor-power/services/power-supply-monitor@.service
/openbmc/phosphor-power/services/pseq-monitor-pgood.service
/openbmc/phosphor-power/services/pseq-monitor.service
/openbmc/phosphor-power/test/meson.build
/openbmc/phosphor-power/test/nvtest.cpp
/openbmc/phosphor-power/tools/i2c/i2c.cpp
/openbmc/phosphor-power/tools/i2c/i2c.hpp
/openbmc/phosphor-power/tools/i2c/i2c_interface.hpp
/openbmc/phosphor-power/tools/i2c/meson.build
/openbmc/phosphor-power/tools/i2c/test/mocked_i2c_interface.hpp
/openbmc/phosphor-power/tools/power-utils/main.cpp
/openbmc/phosphor-power/tools/power-utils/meson.build
/openbmc/phosphor-power/tools/power-utils/test/meson.build
/openbmc/phosphor-power/tools/power-utils/test/test_updater.cpp
/openbmc/phosphor-power/tools/power-utils/test/test_version.cpp
/openbmc/phosphor-power/tools/power-utils/updater.cpp
/openbmc/phosphor-power/tools/power-utils/updater.hpp
/openbmc/phosphor-power/tools/power-utils/version.cpp
/openbmc/phosphor-power/tools/power-utils/version.hpp
/openbmc/phosphor-power/types.hpp
/openbmc/phosphor-power/utility.cpp
/openbmc/phosphor-power/utility.hpp

12345678