Age | Commit message (Collapse) | Author | Files | Lines |
|
phosphor-power consists of several separated services and utils. All of
them are installed by default.
Split them into separated packages, so that a machine layer could select
which packages are needed.
This is done by define PACKAGE_BEFORE_PN and specify the FILES_ for each
package, and split the phosphor-power-systemd-links-monitor.bb into
separated recipes to install services for the related package.
The phosphor-power-systemd-links.bb is kept for now to avoid build error
on existing systems. It will be removed when the meta-system layers'
changes are done.
Tested: Only include phosphor-power-monitor, verify that only the
related binary and service unit file are installed into the
image.
Include all the packages, verify that all the services and utils
are installed into the image.
(From meta-phosphor rev: 2172cd128215683d1fd425b841e90b515aec04c9)
Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I83f436e51b33903a581bfc48541475711467bb61
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Brandon Wyman (1):
psu: Updates for power supply presence
Shawn McCarney (1):
regulators: Use std::optional in ActionEnvironment
(From meta-phosphor rev: 7143ad7c880ea96386c8afc9f59d18b6280cf86a)
Change-Id: I90a882cca9a1f5e12595a0c6397d5bd89503eb03
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Brandon Wyman (1):
psu: Add code to get pollInterval from JSON file
(From meta-phosphor rev: b4a840c1bd3de977b472ec0398004606294a45db)
Change-Id: I9967228c728821942187b442a5a44e48504f26af
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Bob King (5):
regulators: Add check_run_rule_value_exists function.
regulators: Add test cases for command line syntax
regulators: Add check_set_device_value_exists function.
regulators: Add check_rule_id_exists function.
regulators: Add check_number_of_elements_in_masks function.
(From meta-phosphor rev: 2048ce1c5b893195d354b9aad492469ab25ca9e0)
Change-Id: I7f1a1723344636182df725b77e7c1e7355c8070c
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Bob King (4):
regulators: Add test cases for check_run_rule_value_exists
regulators: Add test cases for check_set_device_value_exists
regulators: Add test cases for check_rule_id_exists
regulators: Add test cases for check_number_of_elements_in_masks
(From meta-phosphor rev: dca9bdf77c06d77ce5cde54d6d89639af38b5942)
Change-Id: I34cca883f8158876747e0fe82ca70d5b0701c268
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Shawn McCarney (1):
regulators: Add pmbus_write_vout_command action
(From meta-phosphor rev: d43b86448a41a3126400d75ae612e278232aa47c)
Change-Id: Ifd207f20d2c33429fe3ee2d54cac63157c3432b5
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Shawn McCarney (3):
Document byte order of I2CInterface read/write
regulators: Add PMBus utilities
regulators: Add PMBusError/WriteVerificationError
(From meta-phosphor rev: d2aab32aef3b1b7778d1348f37bf8b8b5e16851d)
Change-Id: I147b9c55a60986a0df3df8db85b58f1c4d58c29b
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Bob King (1):
regulators: Add check infinite loops function.
(From meta-phosphor rev: 69e261b3b794f67974691e2ad38518427c87f3e0)
Change-Id: Ibd3f8287645f9c1590f9128e8b286814ceb2e69a
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Bob King (1):
regulators: Add check_duplicate_object_id function.
Shawn McCarney (1):
regulators: Implement i2c_write_bit action
(From meta-phosphor rev: ff0c157bc57960eb7ba806dc04391e26df695fc6)
Change-Id: I03d1107d85b390135ba704cd3b17979251211357
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Shawn McCarney (4):
regulators: Implement i2c_compare_bytes action
regulators: Improve gmock EXPECT_CALL() usage
regulators: Implement i2c_write_byte action
regulators: Implement i2c_write_bytes action
(From meta-phosphor rev: 54326074366e3c5ab7787cc6a9fb0f5e37d22316)
Change-Id: If4f6806a3b906b215abae408203027ebc688d37f
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Add the base phosphor-regulators service that starts the binary and have
bitbake install it to the appropriate location in the image.
Tested:
Service installed and started at BMC standby
(From meta-phosphor rev: fa58fcd708f9d801bfef7a3861f869af596ed8e9)
Change-Id: I1ca3fee421abf5e458cd812df1eadf7a72622516
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Bumped SRCREV to pick up required unit files.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Bob King (6):
regulators: Add test cases for object 'rail'.
regulators: Add test cases for object 'sensor_monitoring'.
regulators: Add test cases for check duplicates and infinite loop.
regulators: change the test cases sorting.
regulators: Add test cases for 'i2c_write_bit' and 'i2c_write_byte(s)'.
regulators: Fix test case failures.
Shawn McCarney (1):
regulators: Implement i2c_compare_bit action
(From meta-phosphor rev: ab9510aad7bc5af4dcfe4bf6e5f4ee317fea25a2)
Change-Id: I950af37f604cc821882ad0ac9c14bd731439de30
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Bob King (2):
regulators: Add test cases for object 'presence_detection'.
regulators: Add test cases for object 'configuration'.
Shawn McCarney (1):
regulators: Implement i2c_compare_byte action
(From meta-phosphor rev: c0fc95e03615d54e98369922ec89323fc9f5f0e0)
Change-Id: I83e95c7545d29f4ddcd89ec32d489c47f452d0ba
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Brandon Wyman (5):
psu: Add phosphor-psu-monitor.service
psu: Add command line argument for JSON config file
psu: Update to use Power Supply Manager class
Add OE-SDK option to Meson
psu: Introduce the PowerSupply class
Matthew Barth (1):
regulators: Add/install config files
Shawn McCarney (3):
regulators: Add toString() method to Action class
regulators: Create ActionError class
Only build tests if -Dtests=enabled specified
(From meta-phosphor rev: 83e52d9923c9cad2bbc6062b2f73b8273efdb047)
Change-Id: I7c108f3c8bbf5afe3fefbc5ccd069aea8841fdb4
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Bob King (17):
regulators: Add check duplicate ID function.
regulators: Add test cases for object 'and'.
regulators: Add test cases for object 'compare_presence'.
regulators: Add test cases for object 'compare_vpd'.
regulators: Add test cases for object 'i2c_compare_bit'.
regulators: Add test cases for object 'i2c_compare_byte'.
regulators: Add test cases for object 'i2c_compare_bytes'.
regulators: Add test cases for object 'if'.
regulators: Add test cases for object 'not'.
regulators: Add test cases for object 'or'.
regulators: Add test cases for object 'pmbus_read_sensor'.
regulators: Add test cases for object 'pmbus_write_vout_command'.
regulators: Add test cases for object 'run_rule'.
regulators: Add test cases for object 'set_device'.
regulators: Add test cases for object 'chassis'.
regulators: Add test cases for object 'device'.
regulators: Add test cases for object 'i2c_interface'.
Brandon Wyman (2):
Create phosphor-power-supply source directory
Add basic phosphor-psu-monitor application
Matt Spinler (1):
Remove openpower-dbus-interfaces dependency
Shawn McCarney (2):
Create libi2c_dev_mock.a to solve linker errors
Add I2C interface to Device class
(From meta-phosphor rev: f51528aea926c1778b0748ead5269e4da9c8eb97)
Change-Id: Ia074a1ba9e2eebbebbcdc22e0ee07a3c5cb7a48c
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
This reverts commit 0feba83637c4f66b55f3752ab2697e6c033e36d2.
Depends-On: I2769f6ac0012fe8849ef266930d8c736a88417ce
(From meta-phosphor rev: 4d2907beaa1f7c421e89f0d68645e4f4cd2d8874)
Change-Id: I2a3272f8fad0de63a3ccd44da194213253b0d3a2
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Package all of the installed phosphor-regulators config files.
Installation of the config files are handled by the meson install
directive from within the phosphor-power/phosphor-regulators repository.
Tested:
All config files are present within an image using phosphor-power
Config files are located at /usr/share/phosphor-regulators in image
(From meta-phosphor rev: 280eeb9d2f3102b6e43d6f6b9a12406d6ecf93b9)
Change-Id: I4fd4ef555b97d800d28e4bf4cfafe32fdd207f27
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Bob King (3):
Create validate-regulators-config_tests.cpp.
Add validate-regulators-config.py validation tool.
Update format cause .clang-format file updates.
Cheng C Yang (1):
Add feature Cold Redundancy
Lei YU (1):
power-supply: Remove version interface
(From meta-phosphor rev: 71356d8711bd68e028e36d154c046f82b9cfba56)
Change-Id: I6c2459f5060d29d9b64b08c31ab5674ec4ce6747
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
The pkg_postinst script uses the variable OBMC_POWER_SUPPLY_INSTANCES
that is not availabe during the post installation. This results in the
links of power-supply-monitor@.service are not created.
Use `@d.getVar()` to get the variable from bitbake fixed the issue.
Also removes the default OBMC_POWER_SUPPLY_INSTANCES, let the build fail
when OBMC_POWER_SUPPLY_INSTANCES is not defined. Otherwise such issues
are only found at runtime.
Tested: Verify the witherspoon build contains the
power-supply-monitor@.service links;
Unset OBMC_POWER_SUPPLY_INSTANCES, verify the build fails due to
installation failure.
(From meta-phosphor rev: 2e6bda873f9c96c71da0103310f3e970d1a5b999)
Change-Id: Id70ea4c05b937bb93e7d93bcabf3a961cf295435
Signed-off-by: Lei YU <mine260309@gmail.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
This reverts commit 7102a39f018806bb34d14923e4cd8de8dd2160b1.
Reason for revert: Missing dependencies.
(From meta-phosphor rev: 7c73d7d0cfee2455307a3bc16f4fd9d8c7c0882f)
Change-Id: I96ad79ec79679475507bdd6399e4446c6e5de529
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
1. Create a phosphor-psu-monitor package.
2. Add the phosphor-psu-monitor binary to the package.
3. Add the phosphor-psu-monitor.service to the package.
This will allow one to selectively install the refactored power supply
monitor application to systems that want to use it.
(From meta-phosphor rev: 7102a39f018806bb34d14923e4cd8de8dd2160b1)
Change-Id: I107909226299de6fecefb2706bf453588bcc2f7c
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Bob King (2):
Modify README.md for folders change under phosphor-regulators and link.
Add schema file for phosphor-regulators JSON.
Brandon Wyman (1):
Update .clang-format to latest version from docs
Lei YU (7):
power-utils: Implement isReadyToUpdate
tools: Initially add i2c tool and mock
i2c: Implement open and close
power-utils: Initially use i2c in updater
i2c: Implement read function
i2c: Implement write function
i2c: Add i2c block transaction support
Shawn McCarney (3):
i2c: Support explicit open/close and re-open
i2c: Cache adapter functionality
Create phosphor-regulators application
(From meta-phosphor rev: f6e4f759394ef4ea7a2c869177605941792cb569)
Change-Id: I596ed917b8d56e0b031b58b9eaf2e82c09c24e33
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Needed for i2c tools used by phosphor-regulators
(From meta-phosphor rev: 16867e4bc2095918a14e5b9ec653844b68011ad8)
Change-Id: Ia84c187ba20db9895aac4c655215af3f0c11da37
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Lei YU (1):
power-utils: Initially add isReadyToUpdate
(From meta-phosphor rev: f9be6672097333232db06b76df69ded8f7dab978)
Change-Id: Iee77c7be842ca895b54a0c6b02ff6f56f21a8977
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Shawn McCarney (7):
Enhance regulators Rule class
Create regulators RunRuleAction class
Only build regulator tests when option enabled
Create regulators NotAction class
Create regulators AndAction class
Create regulators OrAction class
Create regulators IfAction class
(From meta-phosphor rev: 5dbfa7a8d63c434f5aab8df2046e0413f94e2067)
Change-Id: I2ad6e86bfba5395585e6d73e36d04392c5754dc0
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Shawn McCarney (5):
Combine regulator tests into one executable
Replace regulators StubAction with MockAction
Create regulators action_utils namespace
Use C++17 format for nested namespace definitions
Remove circular dependencies in regulator includes
(From meta-phosphor rev: a753e320285d44efba2871d54f0ab8ec337c9a36)
Change-Id: Iacc252158d823a226b5f6436eec09515fbdd3c1f
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Following https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-power/+/26406,
the phospor-power repository is using cli11 function. The dependency
was not added to the recipe and Rainier based builds are failing to compile.
Add the missing dependency.
(From meta-phosphor rev: 7a0e57f74e0b8434f3e62817e51b9b9368f4edf4)
Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Change-Id: I08ac6db4284a364b69a25f91c6c20e5587cd598f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Shawn McCarney (2):
Create regulators SetDeviceAction class
Create regulators StubAction class
(From meta-phosphor rev: a1371ed733942e7f1474ced82c44d81e890f2b5f)
Change-Id: Icae2ba8a776d47cd839fd75371c3e727aa40bbb4
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Shawn McCarney (2):
Create regulators ActionEnvironment class
Create regulators Action class
(From meta-phosphor rev: e65062b563fdefece30744e54df1d74a6ab75188)
Change-Id: I1b43c221d89bb0eab4c28cd0acdb49646ee29e7b
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Andrew Geissler (1):
power-supply-monitor: fix systemd unit syntax
Lei YU (4):
power-utils: Add --compare option
power-utils: Initially add --update option
power-utils: Initially add Updater class
Refactor: Move isPoweredOn to utility
(From meta-phosphor rev: dd8ebbbefa566884b8e407da81c12d64d0d402bf)
Change-Id: Ia39660d116576289abac2efb8551688003a12b38
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Gunnar Mills (1):
Update sensor-architecture.md link
(From meta-phosphor rev: 696613c6f3287e16fea628d9bf19093d288b117a)
Change-Id: Iee5092ad8987c5f1d596032903500cdf8cae266e
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Jim Wright (2):
Make GPIOAnalysis section optional in power sequencer YAML
Update example power sequencer YAML
Shawn McCarney (4):
Create stubs for regulator Device, Rail, and Rule
Conform regulator methods to acronym conventions
Add explicit keyword to regulator constructors
Create regulators IDMap class
(From meta-phosphor rev: 76780eac778d98b4bc3ce10e4c1e3789e62a116e)
Change-Id: Ib4f0d241cbd37ad9193738c400f566fa566749f4
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
There was witherspoon-fault-analysis recipe in meta-ibm. Now the repo
becomes a generic one, phosphor-power, add the recipe in meta-phosphor.
Tested: Verify the build `bitbake phosphor-power` succeeds.
With changes in meta-ibm/meta-witherspoon, verify phosphor-power
is built correctly and the services are installed.
(From meta-phosphor rev: 4d8175e674b521669822da61d09b338f391b38fa)
Change-Id: I4e30bba75a0883c4e431c56a10eef7917b5c46c8
Signed-off-by: Lei YU <mine260309@gmail.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|