#
5c6a693e |
| 29-Nov-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer retur
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer return true for auto features. Instead, the expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I37fcb391dcb215a86a60c26f7512f6ccb8312dc4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
67f71b9e |
| 30-Aug-2023 |
Matt Spinler <spinler@us.ibm.com> |
psu-ng: Remove previous input history code
As mentioned in a previous commit, the org.open_power D-Bus interfaces that host the 30 second maximum and average input power values are no longer necessa
psu-ng: Remove previous input history code
As mentioned in a previous commit, the org.open_power D-Bus interfaces that host the 30 second maximum and average input power values are no longer necessary, and have been replaced by a single peak input power sensor object.
Remove all of the code that dealt with them.
For now, the code remains that toggles the GPIO to sync up the input history values between the power supplies on boots and plugs. As the input history is used to populate the new peak sensor, its values across power supplies will then be using the same time intervals.
Change-Id: Ide5b40e67bf3938606a75bcc0291bc57232ce8bc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
888bebde |
| 31-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: add necessary subprojects
Add subprojects for all the direct dependencies of the project such that the project can be built outside of a Yocto SDK on a typical Linux development system.
-
meson: add necessary subprojects
Add subprojects for all the direct dependencies of the project such that the project can be built outside of a Yocto SDK on a typical Linux development system.
- Update the .gitignore to ignore the subproject source directories. - Update the .gitignore to ignore alternative build subdirectory names as is typical with most projects in the openbmc organization. - Add wrap files for direct dependencies, copied from other repositories that already have the same dependencies. - Modify the meson.build dependency for libgpiod so that the C++ bindings are included. - Add many missing dependencies throughout. - Sort all dependencies alphabetically for consistency.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0feb6f0f175e6dba0b00a2c2b666eb0801575734
show more ...
|
#
c3324424 |
| 24-Mar-2022 |
Brandon Wyman <bjwyman@gmail.com> |
psu-ng: Power supply class updates for input history
Update the meson files to include the record_manager with the phosphor-psu-monitor application.
Since we do not want to blindly enable input his
psu-ng: Power supply class updates for input history
Update the meson files to include the record_manager with the phosphor-psu-monitor application.
Since we do not want to blindly enable input history for all power supplies, base the enablement of the feature off of the driver name. Change the PowerSupply class to require the driver name be passed in, and pass that down via the PSUManager during the configuration determination.
Add a server manager to the PSUManager to handle the INPUT HISTORY data that will be under /org/open_power/sensors.
The INPUT_HISTORY command is handled via a sysfs file in binary format, so add in a readBinary() base function to allow for mock testing.
Change-Id: Iea163892d5482e6f2dacacfbfa746f605af52ed5 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
show more ...
|
#
c9b05736 |
| 19-Mar-2022 |
Adriana Kobylak <anoo@us.ibm.com> |
psu-ng: Implement the PowerSystemInputs interface
Implement the PowerSystemInputs interface which contains the status of the power inputs to the chassis. The psu monitor app will use the status prop
psu-ng: Implement the PowerSystemInputs interface
Implement the PowerSystemInputs interface which contains the status of the power inputs to the chassis. The psu monitor app will use the status property to communicate if a brownout condition exists. Implement this interface under a /chassis0 path to specify it applies to the current chassis. This can later be enhanced to support a multi-chassis configuration.
Tested: The status property exists and it's set to default value Good: root@p10bmc:~# busctl get-property xyz.openbmc_project.Power.PSUMonitor\ /xyz/openbmc_project/power/power_supplies/chassis0/psus\ xyz.openbmc_project.State.Decorator.PowerSystemInputs Status s "xyz.openbmc_project.State.Decorator.PowerSystemInputs.Status.Good"
Change-Id: I7cf4d13e632841e0b19b52af0d9eac886eb161ce Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
681b2a36 |
| 20-Apr-2021 |
B. J. Wyman <bjwyman@gmail.com> |
psu-ng: Add in ability to get presence via GPIO The device tree and entity-manager (D-Bus) properties have the power supply GPIO presence lines named, so we can use those GPIO line names
psu-ng: Add in ability to get presence via GPIO The device tree and entity-manager (D-Bus) properties have the power supply GPIO presence lines named, so we can use those GPIO line names to find the GPIO device to read for determining power supply presence. Some systems have the power supply presence lines in a gpio-keys section (notably IBM Rainier). To facilitate continued function while running with a device tree that has not removed those device tree entries, allow for a fallback to the old inventory D-Bus propertiesChanged or interfaceAdded matches for presence. Change-Id: I5002aa62e5b460463cc26328c889a3786b467a3c Signed-off-by: B. J. Wyman <bjwyman@gmail.com>
show more ...
|
#
b76ab249 |
| 16-Sep-2020 |
Brandon Wyman <bjwyman@gmail.com> |
psu-ng: Create errors for detected faults Add in a function for creating errors using the Create D-Bus call. Update the analyze function to create errors when faults are found.
psu-ng: Create errors for detected faults Add in a function for creating errors using the Create D-Bus call. Update the analyze function to create errors when faults are found. We would want to log a fault per power supply, so move the faultLogged concept down to the PowerSupply object itself. Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I94d22b2b8a495abde87fb921c9177c6d25225ef7
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 <bjw
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
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 ...
|
#
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 ar
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 ...
|
#
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
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: I4c392f7060fbd06dbe6a94
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
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>
|