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 ...
|
d0a26bb9 | 11-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 ...
|
3f1242f3 | 28-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 ...
|
8d195771 | 27-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 ...
|
c63941ca | 27-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 ...
|
aed1f75d | 25-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 ...
|
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> |
c9746490 | 12-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 ...
|