#
b3028762 |
| 09-Nov-2020 |
Brandon Wyman <bjwyman@gmail.com> |
psu-ng: Change main to call non-JSON PSUManager
Change the main function to create the PSU manager object using the constructor that will pull configuration from D-Bus rather than from a JSON config
psu-ng: Change main to call non-JSON PSUManager
Change the main function to create the PSU manager object using the constructor that will pull configuration from D-Bus rather than from a JSON configuration file.
Since the JSON configuration file parsing information is no longer passed down to the constructor, remove the argument parsing and default file handling code.
Update the README to remove the JSON configuration information, add the D-Bus configuration information.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I04f0d532f862bb4e8aa2e7a88dc06327c90d777d
show more ...
|
#
6a3fd2c2 |
| 25-Aug-2020 |
Jay Meyer <jaymeyer@us.ibm.com> |
Enhance PSU tracing support - add device access info
Move file names for file errors to the journal message. Enhance usablility.
Logging messages for file errors contain the file names inside struc
Enhance PSU tracing support - add device access info
Move file names for file errors to the journal message. Enhance usablility.
Logging messages for file errors contain the file names inside structured entries rather than directly in the log message. This makes viewing errors more difficult than need be. Before this change, the journal report needed to be run with '-o verbose' to see the file names.
Tested: Ran unit tests. All successful Tested: * Changes to phosphor-power-supply/main.cpp were tested by running with the .json configuration file missing in either and both default locations. * Change to loadJSONFromFile() in utility.cpp for an invalid file was tested by giving invalid "psu_config.json" file to main program. * Empty file message was tested by changing main() to allow loadJSONFromFile() to be called it when the file did not exist. * Changes to other files were tested by running phosphor-power initialization and manipulating the code to force execution of various error paths. * Methods that are changed but were not directly called by phosphor-power initialization: PMBus::readBit(), PMBus::readBinary() and PMBus::write(). The changed log messages in these were tested by adding calls to them from PMBus::read() and then changing code to force execution through paths that created the log messages.
Signed-off-by: Jay Meyer <jaymeyer@us.ibm.com> Change-Id: I1f0c01716495ac7022d5234e9a8dfdab8195c186
show more ...
|
#
8b89f1b1 |
| 12-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 ...
|
#
2fe5186e |
| 25-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 ...
|
#
a0f33ce3 |
| 17-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 ...
|
#
2bac8609 |
| 12-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 ...
|
#
57939e84 |
| 26-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 ...
|
#
2ad76bd3 |
| 26-Aug-2019 |
Brandon Wyman <bjwyman@gmail.com> |
Add basic phosphor-psu-monitor application
Change-Id: I3f892e6789c9b081aea04668de6fe0155963d521 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
|