summaryrefslogtreecommitdiff
path: root/meta-openpower/recipes-phosphor/occ
AgeCommit message (Collapse)AuthorFilesLines
2024-03-03openpower-occ-control: srcrev bump 89e54faba9..755af10299Andrew Geissler1-1/+1
Chris Cain (1): Handle other PLDM_STATE_SET_OPERATIONAL states Change-Id: Idad20cadbf7808742829c80022db425b572d352d Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2024-02-29openpower-occ-control: srcrev bump 2ff2886b4c..89e54faba9Andrew Geissler1-1/+1
Chris Cain (1): Populate AllowedPowerModes Patrick Williams (7): prefer std::format over fmt occ_command: switch to std::formatter for enums meson: add missing cereal dependency meson: simplify dependencies meson: fix libpldm move to its own repository occ_manager: add missing PLDM check test: fix power10-mode compile errors Change-Id: Ie8c8eff34ccc08bf9f624b450485af0b2be11df4 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2024-02-14openpower-occ-control: srcrev bump ae157b68d3..2ff2886b4cAndrew Geissler1-1/+1
Chris Cain (1): Add Eco mode support Change-Id: I99d0bc7e44c1bedd16868c3fc4613a0595fa0777 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2024-01-30openpower-occ-control: srcrev bump fec4b0b17e..ae157b68d3Andrew Geissler1-1/+1
Chris Cain (1): Force fans to high when no valid temp from sensors Change-Id: I6424e6b36879b96375105bfaa34a6f44c687cdc0 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2024-01-08openpower-occ-control: srcrev bump a937491bfd..fec4b0b17eAndrew Geissler1-1/+1
Matt Spinler (1): Add the .Error. segment to error names Change-Id: Id81a9b5c3d7ba1b8439f28e0b8633348814dd3e1 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-12-09openpower-occ-control: srcrev bump a8ebb1db37..a937491bfdAndrew Geissler1-1/+1
Patrick Williams (1): meson: adjust nlohmann-json dependency Change-Id: Icf7d7babd709158e722578487d1044dac619bfae Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-12-04openpower-occ-control: srcrev bump 2564451f91..a8ebb1db37Andrew Geissler1-1/+1
Patrick Williams (1): build: use allowed over enabled Change-Id: I8520fafa7ff714dc5f9c62bb3341ddbe18c386b0 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-11-16meta-openpower: occ: remove autoconf-archive-native DEPENDSAndrew Geissler1-1/+0
This is no longer needed as the repo moved to meson Change-Id: I06597820fca9b056aeebe4e5b006156b1596927d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2023-11-16meta-openpower: occ: remove meta services and scriptsAndrew Geissler5-73/+0
These services and script file are now in the actual openpower-occ-control repository. Delete them from the meta layer so we install the correct ones. Tested: - Confirmed expected files are now installed Change-Id: If2b0cc868b5ca42ebf36be22da50a64d57b99274 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2023-11-10openpower-occ-control: srcrev bump c831dd8d3f..2564451f91Andrew Geissler1-1/+1
Chris Cain (1): Correct PLDM service name Change-Id: I8f1785dc5904e350c7001cd745091682db86a59a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-10-28openpower-occ-control: srcrev bump 9bec8af070..c831dd8d3fAndrew Geissler1-1/+1
Matt Spinler (2): Support multiple sensors of same fru_type/label Create sensors for DIMM DVFS temps Patrick Williams (1): clang-format: copy latest and re-format Change-Id: I5eade67a45aa2fec4b0e0a798254a7cb4e9a9968 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-10-18openpower-occ-control: srcrev bump 159a22791f..9bec8af070Andrew Geissler1-1/+1
George Liu (2): meson_options.txt: Support for reading options from meson.options meson: Replace configure_file with fs.copyfile Patrick Williams (2): build: upgrade to C++23 meson: remove install-error-yaml option Change-Id: I2535ab2df84cf5d0edcba6d262ade1880fe2f6e8 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-10-18meta-openpower: occ: Remove use of install-error-yamlChris Cain1-15/+0
No longer using local error-yaml. Change-Id: I5ac09db40dbb1fdd13daed3113ded975e3957968 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
2023-09-28openpower-occ-control: srcrev bump d8aab2a9d3..159a22791fAndrew Geissler1-1/+1
Pavithra Barithaya (1): Minor fix in pldmClose() API Change-Id: I7d4bebbc41c85ab394a9b4fb6db7d3da99d36fb2 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-09-12openpower-occ-control: srcrev bump 5161a02803..d8aab2a9d3Andrew Geissler1-1/+1
Patrick Williams (1): elog-errors: remove generated file Change-Id: If9e1bb08791589507a65e00ad44e3c7e94036b17 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-08-15openpower-occ-control: srcrev bump 423187e647..5161a02803Andrew Geissler1-1/+1
Chris Cain (1): Fix trace of pldm return codes for yocto update Change-Id: I39709e9e38c46e67e49089ba63e97758d97b95ec Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-06-08openpower-occ-control: srcrev bump c86d80fa35..423187e647Andrew Geissler1-1/+1
Chris Cain (1): Fix PLDM dependency string Change-Id: I3d7b589c10cd4a51c07f60a407503eda37fd9c09 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-06-02openpower-occ-control: srcrev bump a49c987eeb..c86d80fa35Andrew Geissler1-1/+1
Chris Cain (1): Implement processor throttle dbus properties Change-Id: I08e5fb12f7d8135b9b645ef1cc3e7ff0ac9292e6 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-05-19openpower-occ-control: srcrev bump 11fd1314ab..a49c987eebAndrew Geissler1-1/+1
Andrew Geissler (1): sdbusplus:p10: object: don't use 'bool' argument constructor Ben Tyner (1): Add support for power mode locking Chris Cain (19): Create PowerMode object before status objects Queue active sensor updates before status objs created Ensure occActive called after device enabled Prevent repeatedly reading PLDM sensors when proc garded Prevent using stale data when active sensors were queued Restart discover timer to ensure recovery is attempted Reuse MCTP instance IDs for PLDM retries Fix correlation between OCC StateSensorPDRs and procs Revert clearing PDRs if host power is off Validate user power cap changes fall within limits Re-fetch StateSensors if unable to find sensor Commit OCC related errors as informational Add journal traces to occ-control PELs Move the service files to the occ-control repo Remove Hypervisor check for PowerVM target Trace PLDM response on unexpected states Check host state before attempting OCC communication Handle OCC active sensor updates prior to host runtime Add Chris as maintainer Eddie James (5): Switch to setting Device active Log a PEL for communication, presence mismatch, and safe state errors Provide a fmtlib ostream formatter for SysPwrMode enum Update fmtlib fix Use format_as rather than operator << overload Patrick Williams (11): OWNERS: switch 'matches' to 'matchers' sdbusplus: use shorter type aliases MAINTAINERS: remove file yaml: move to subdirectory python: fix flake8 warnings and format with black beautysh: re-format meson: change dependency order for subproject build meson: add dependency for nlohmann-json meson: remove deprecated get_pkgconfig_variable regenerate-meson: re-run with latest from sdbusplus clang-format: copy latest and re-format Sheldon Bailey (3): failure to get OCC temp 0 Fix Max fan speed with Deconfigured DIMM Add safe mode to user interface Change-Id: I2898bd260f537d9efb0c08b8550dad0732666bb1 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-04-20meta-openpower: fix shellcheck issuesPatrick Williams1-3/+3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I35a9ffed937919467dec62a1fbff729f4a51366c
2023-02-14treewide: remove Logging service dependenciesBrad Bishop1-2/+0
The logging service is dbus activated now, so explicitly declaring dependencies is unnecessary and redundant. Change-Id: I87d61fbeb04a251caf88aa86cb21631e7fc2a1c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2023-01-12meta-openpower: Add service dependencies for OCCChris Cain1-0/+4
Adding phosphor-logging and pldm Change-Id: I0de7339589e863f72572eac9e395ed34ca6b8808 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
2022-12-09openpower: occ: Add nlohmann-json dependencyEddie James1-0/+1
openpower-occ-control has been using nlohmann-json for a while and successfully compiling by chance. Add it to the dependencies. Signed-off-by: Eddie James <eajames@linux.ibm.com> Change-Id: I8efc98d44eee32ad96fcc1472955fa0858d1569a
2022-07-28meta-openpower: openpower-occ-control:disable testNan Zhou1-0/+1
This test doesn't compile when I build the Romulus BMC. It's a convention that we disable test in Yocto builds. Tested: Yocto builds Romulus fine. Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: Iba21b0a3275cf0037cb7793d063294070da35a41
2022-07-18meta-openpower:op-occ-disable: remove wants on synch targetAndrew Geissler1-1/+1
openbmc/phosphor-state-manager#21 highlights an architecture issue with OpenBMC's use of synchronization targets. When a service, such as op-occ-disable@.service, runs both in a standard power off target, as well as in other paths (like the host quiesce path), there is an issue. The service starts the synchronization targets in the quiesce path and this causes them to already be running on the power off, resulting in the synchronization targets not actually coordinating the power off. The direction this commit takes OpenBMC is that if a service needs to run outside of the standard power on or off path, then they can not have a Wants or Requires clause in the service file. The following commit was done a while back to address this issue: https://gerrit.openbmc.org/c/openbmc/phosphor-state-manager/+/40026 That is that we ensure the primary power on and off targets start the synchronization targets so services requiring them can just use a Before or After clause. The piece that was never done was to go and fix the services which fell into this bucket. Add an explicit dependency on the stop-instructions service to ensure that this service is always run before it when they are both started at the same time. This just provides an extra level of protection to ensure we never stop host instructions before disabling occ monitoring. Tested: - Did multiple boots, reboots, and host crash tests and saw no issues Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I6c8c32a605216c0c3dc2065f7c09236d2c216720
2022-05-02meta-openpower: Use proper paths in service filesMatt Spinler3-6/+3
Using /usr/bin/env is an antipattern. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I6b4f647a10fd8c261e2b42cfdae030749ded7c29
2022-04-28openpower-occ-control: srcrev bump bae4d07e6b..11fd1314abAndrew Geissler1-1/+1
Chris Cain (2): Prevent updating power cap sysfs file when OCC not active Ignore HRESET status when we did not request Sheldon Bailey (2): BMC: Fan control for Idle Power saver openpower_occ_control: Support new APSS sensor IDs Change-Id: I7568db8114bb139a91daa51054f9c67df4a44a9c Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-04-23openpower-occ-control: srcrev bump 1923a75299..bae4d07e6bAndrew Geissler1-1/+1
Chris Cain (1): Wait for OCC Active PDR to become available Change-Id: Id35c7594de2bc6d9962718750e08af452295a38a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-04-13openpower-occ-control: srcrev bump c567dc8d78..1923a75299Andrew Geissler1-1/+1
Patrick Williams (1): sdbusplus: object: don't use 'bool' argument constructor Change-Id: Icd95d1c868017ddc9904bef07937f63406fb251a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-04-09openpower-occ-control: srcrev bump 373af75721..c567dc8d78Andrew Geissler1-1/+1
Chris Cain (2): Ignore PLDM message if status objects not created Prevent termination on OCC open/read/write errors Change-Id: Ib81d12422bb8b6a3136f7a287b481903057e832b Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-04-06openpower-occ-control: srcrev bump e2d0a43cc1..373af75721Andrew Geissler1-1/+1
Sheldon Bailey (1): openpower-occ-control:failure to read OCC state. Change-Id: I15fca11804e53354081d9cd5c56f9f83ea44f378 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-30openpower-occ-control: srcrev bump 3c2beeaf8b..e2d0a43cc1Andrew Geissler1-1/+1
Chris Cain (2): Convert power cap limits to input power for users Handle file errors when device path gets unbound Change-Id: Ib7a0a3f3d855afdf5be01ddd6d515b2a8174d095 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-24openpower-occ-control: srcrev bump 40501a231e..3c2beeaf8bAndrew Geissler1-1/+1
Chris Cain (1): Make PLDM call to do HRESET an asynchronous call: Change-Id: Ic2c7b74e4ce7d76aa738adc9053819894470bb36 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-18openpower-occ-control: srcrev bump 5d66a0aada..40501a231eAndrew Geissler1-1/+1
Chris Cain (1): Monitor for power cap changes when occ-control started Change-Id: Iaec4c625871a13327366587ace25c0550a9e015d Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-12openpower-occ-control: srcrev bump 2a751d70bb..5d66a0aadaAndrew Geissler1-1/+1
Chris Cain (1): Expose power cap min/max on dbus Eddie James (1): Fix OCC active check in SBE timeout path Change-Id: I6b821de9f2bcbb00f0f92ebaec05d382e3271475 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-10meta-openpower: remove fsi dependency with occ serviceAndrew Geissler1-1/+0
Adding this dependency caused an ordering cycle in certain BMC reboot paths: Feb 16 06:24:00 p10bmc systemd[1]: multi-user.target: Found dependency on multi-user.target/start Feb 16 06:24:00 p10bmc systemd[1]: multi-user.target: Job org.open_power.OCC.Control.service/start deleted to break ordering cycle starting with multi-user.target/start Feb 16 06:24:00 p10bmc systemd[1]: multi-user.target: Found ordering cycle on org.open_power.OCC.Control.service/start Feb 16 06:24:00 p10bmc systemd[1]: multi-user.target: Found dependency on fsi-scan@0.service/start Feb 16 06:24:00 p10bmc systemd[1]: multi-user.target: Found dependency on obmc-power-on@0.target/start Feb 16 06:24:00 p10bmc systemd[1]: multi-user.target: Found dependency on multi-user.target/start Feb 16 06:24:00 p10bmc systemd[1]: multi-user.target: Job fsi-scan@0.service/start deleted to break ordering cycle starting with multi-user.target/start A better overall solution to what was trying to be solved with this dependency can be found in the following commit: https://github.com/openbmc/openpower-occ-control/commit/1718fd8bcd18f93accb6ed87b36f4c768a93f61a The problem we're seeing is that because we have to run the fsi-scan.service in scenarios where we reboot the BMC while the host is up, the occ application sees the OCC's for a period of time before the fsi-scan runs, but then they "disappear" for a bit while the fsi-scan is run. It's complicated for the app to handle this. We've tried a variety of solutions to try and get the occ application to handle this, but in the end we decided that since the occ app is not required to be running immediately, we'll just have it wait for the r/r process (and the fsi-scan service) to complete via that other commit. Tested: - Set APR policy to always power on and rebooted the BMC. Verified I did not see any "Found dependency" errors and system booted fine. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ide33a9ec21e8eaddc8734351600931d961f811ca
2022-03-04openpower-occ-control: srcrev bump d1b6826ad3..2a751d70bbAndrew Geissler1-1/+1
Eddie James (1): Check for OCC active before sending HRESET Change-Id: I0fc1f513c2e532755f374d437cb3b1b57dbb71b2 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-02openpower-occ-control: srcrev bump cde7bea3d4..d1b6826ad3Andrew Geissler1-1/+1
Chris Cain (1): Make PLDM call to reset OCCs an asynchronous call Change-Id: I1d8ef7bbe2679331ad3bd549106076ca47a98909 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-02-23openpower-occ-control: srcrev bump 1be4337b39..cde7bea3d4Andrew Geissler1-1/+1
Chris Cain (2): Hold off OCC communication if targets not ready Allow restoring default Idle Power Saver parameters Change-Id: I92a1f86fd8c6d1dc87e4b88216e783aa0c180827 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-02-22openpower-occ-control: srcrev bump 0f516528d8..1be4337b39Andrew Geissler1-1/+1
Chris Cain (1): Read default power mode & IPS parameters from DBus Change-Id: I2dce4b7ab781068c5d345a9e8057ff04573ebb55 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-02-18treewide: fix append/remove directivesPatrick Williams1-2/+2
As mentioned by I970e06ca6f9d0a9792af122eb25da1bb9a06f058, append and remove directives with '+=' are no longer valid Yocto syntax and raise a warning. See https://git.yoctoproject.org/poky/tree/documentation/migration-guides/migration-3.5.rst#n40 One interesting caveat has to do with the difference between "append" and "+=". foo:append = "a" foo:append = "b" Results in `foo = "ab"`, but foo += "a" foo += "b" Results in `foo = "a b"`. When `:append +=` is used it has behavior like the `+=` operator. Therefore, in some cases we need to insert additional whitespace after the `:append = "` to ensure concatenation behaves as expected. I've manually reviewed the results to ensure there is no ill side-effects from an additional space potentially being added. Fix up the entire tree with the following one-liner (and similar for `remove`): git ls-files -- ':!:poky/**' ':!:meta-security/**' \ ':!:meta-raspberrypi/**' ':!:meta-openembedded/**' \ | grep "\.bb" | xargs grep -l ":append.*+=" \ | xargs sed -i 's/:append\(.*\)+=\([^"]*\)" */:append\1=\2" /' or ... | xargs grep -l ":remove.*+=" \ | xargs sed -i "s/:remove\(.*\)+=/:remove\1=/" Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iea6235e7c76e252f4d473652957c2925f6b8845a
2022-02-11openpower-occ-control: srcrev bump b6535e8969..0f516528d8Andrew Geissler1-1/+1
Chris Cain (1): Fix pldm query to prevent truncating container id Change-Id: Iee05d55d1ff0605fee5227190bf2afc8ebaa6959 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-02-08openpower:occ: Ensure OCC disabled before poweroffMatt Spinler1-0/+1
There previously wasn't a hard dependency to not remove power until the OCCs were all disabled, causing failures with the code that communicates to the OCCs as the OCCs didn't have power but the BMC code didn't know that. This would show up, sometimes at least, as a very long hang in the SBE driver, which in turned prevented the chassis power state D-Bus property from getting set to off during that time, which caused other pieces of code to still think the power was on even though it was really off. This would then show up as read failures on sensors that were only accessible with power on. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Iac77a69766c197705adcf756da98f5a005f78c22
2022-02-08openpower: Hold off MPIPL procedure until OCC disabledChris Cain1-0/+1
The OCC disable procedure starts, but does not always complete before the MPIPL procedure starts. This can cause SRAM write failures which will end up terminating openpower-occ-control. This fix will delay starting the MPIPL procedure util OCC disable completes. Signed-off-by: Chris Cain <cjcain@us.ibm.com> Change-Id: I615dcc70a57501172097efd5a37fe9200b3d094e
2022-02-01openpower-occ-control: srcrev bump 6fa848a94c..b6535e8969Andrew Geissler1-1/+1
Chris Cain (1): Prevent hwmon pcap path from getting truncated Change-Id: I831ccce7aa5b1b220ff0975c4cf9fab091303b1b Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-01-28openpower-occ-control: srcrev bump d84a833571..6fa848a94cAndrew Geissler1-1/+1
Chris Cain (1): Fix occ-control terminations Change-Id: I4ae65827f18b40004784c3bb361c5c90c07e701c Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-01-25treewide: fix up github SRC_URIsPatrick Williams1-1/+1
Per [1], Yocto is going to start requiring both branch names and `protocol=https` in GitHub SRC_URI variables. Ran the upstream tool to automatically fix our URIs. 1. https://git.yoctoproject.org/poky/tree/documentation/migration-guides/migration-3.5.rst#n10 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5f9619f7ff707050b469ae74c8aa16846568c5e4
2022-01-13openpower-occ-control: srcrev bump 36f9cdedfb..d84a833571Andrew Geissler1-1/+1
Chris Cain (1): Update total power units on dbus Change-Id: I7d4cf69de586cb808b875dc2ef5c5c1817e6bbea Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-01-12openpower-occ-control: srcrev bump f3a4a69f7f..36f9cdedfbAndrew Geissler1-1/+1
Chris Cain (1): Add support for OEM Power Modes Change-Id: Ib927faf11528762d781f186866ca38e9bfa8642e Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-01-06openpower-occ-control: srcrev bump 432dc48607..f3a4a69f7fAndrew Geissler1-1/+1
George Liu (2): Remove redundant variables Fix some warnings by cppcheck Change-Id: I97f0525c824b6181f2d844b6b49953443437e0a3 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>