#
f8e02429 |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Id6c141dd4eba2423f476499b999aec9cb42f6192 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
7fb6c346 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I4530f5b9df4f5898e26a2eef7efcf82e9728197f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
0dea1992 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If9a7314dade153dd7dbd149a76352aca8257839d
show more ...
|
#
7b5685d1 |
| 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If9ecc60e370b7ab62e58dc1c3bfdd4051ee9c435
show more ...
|
#
9f44c99a |
| 06-Nov-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
c++17: drop experimental::filesystem
Use the real filesystem library, and drop support for building with experimental under c++14.
Change-Id: I47cbfc30b223db9dc28e9536ceb84e9fe3342e96 Signed-off-by
c++17: drop experimental::filesystem
Use the real filesystem library, and drop support for building with experimental under c++14.
Change-Id: I47cbfc30b223db9dc28e9536ceb84e9fe3342e96 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
8facccfa |
| 04-Nov-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
style: update clang-format
Pull the most recent OpenBMC style rules and run clang-format.
Change-Id: Ifecce87b6aa64a2800dab3ba1e09ae415accb548 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.co
style: update clang-format
Pull the most recent OpenBMC style rules and run clang-format.
Change-Id: Ifecce87b6aa64a2800dab3ba1e09ae415accb548 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
212102e6 |
| 13-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: replace message::variant with std::variant
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4caefe2492f88886ed485204fc347b71efa4bc5e
|
#
550f31b3 |
| 13-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: remove deprecated variant_ns
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I62deb24e0fc9784289124cc0fc8a6db2de5d6b98
|
#
4d3d9126 |
| 24-Jul-2019 |
Jayashankar Padath <jayashankar.padath@in.ibm.com> |
Code Update: Host ApplyTime support
Get the requested image apply time value provided through the UpdateService redfish schema. If the apply time value is Immediate, then host reboot will be trigger
Code Update: Host ApplyTime support
Get the requested image apply time value provided through the UpdateService redfish schema. If the apply time value is Immediate, then host reboot will be triggered just after the new pnor image activation. The default apply time value is OnReset in which the new image remains at Active state and user has to manualy reboot the host for applying the new image.
Tested: Verified that host is getting rebooted while doing a pnor code update if the apply time value is Immediate. Tested this use case at server power Off and Running scenarios. OnReset scenario was also tested in which new image remained at Active state as pnor code update application did not trigger the host reboot.
Note: This change is applicable to ubi based systems (Witherspoon)
Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com> Change-Id: I74f73172626919b225efef43d9baacd64eadbf60
show more ...
|
#
b8cb0cc9 |
| 31-May-2019 |
Adriana Kobylak <anoo@us.ibm.com> |
Remove deprecated is_method_error code
The is_method_error() function is no longer needed, instead a try-catch block should be used instead. Reference: https://lists.ozlabs.org/pipermail/openbmc/201
Remove deprecated is_method_error code
The is_method_error() function is no longer needed, instead a try-catch block should be used instead. Reference: https://lists.ozlabs.org/pipermail/openbmc/2018-October/013696.html
Tested: Code update with field mode enabled, and ran Delete while host powered on, to check things still worked as expected.
Change-Id: I8ba8da32fe787c3151cc5be7cb9f55d1901e57cd Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
2b2d2298 |
| 18-Mar-2019 |
Lei YU <mine260309@gmail.com> |
Static layout: support image verification
Add support of image verification for static layout PNOR code update.
Tested: Verify the PNOR code update succeeds with valid-signed PNOR; and fail
Static layout: support image verification
Add support of image verification for static layout PNOR code update.
Tested: Verify the PNOR code update succeeds with valid-signed PNOR; and fails with invalid-signed PNOR or a PNOR tarball without signature.
Change-Id: I1aafeb4e8e07eaa16c170f33f4f21940f7c9c146 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
e4994464 |
| 14-Mar-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Use hiomapd instead of mboxd
mbox service is renamed to hiomapd and provides "Suspend" and "Resume" method calls, which is more appropriate for raw "cmd" calls.
Use the new methods to sus
Refactor: Use hiomapd instead of mboxd
mbox service is renamed to hiomapd and provides "Suspend" and "Resume" method calls, which is more appropriate for raw "cmd" calls.
Use the new methods to suspend and resume hiomapd. Move "getService()" function into utils so it is shared by multiple files.
Tested: Verify the reset works on Romulus
Change-Id: I8f89de134b13126697bfc69a21a3148a01c34cca Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
1db9adf3 |
| 05-Mar-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Fix issues found by cppcheck
Resolve several issues found by cppcheck:
[msl_verify.hpp:28]: (style) Class 'MinimumShipLevel' has a constructor with 1 argument that is not explicit.
Refactor: Fix issues found by cppcheck
Resolve several issues found by cppcheck:
[msl_verify.hpp:28]: (style) Class 'MinimumShipLevel' has a constructor with 1 argument that is not explicit. [ubi/watch.hpp:21]: (warning) Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [item_updater_main.cpp:22] -> [item_updater_main.cpp:49]: (style) Local variable rc shadows outer symbol [serialize.cpp:19]: (performance) Function parameter 'versionId' should be passed by const reference. [ubi/watch.hpp:43]: (style) Struct 'CustomFd' has a constructor with 1 argument that is not explicit. [serialize.cpp:52]: (performance) Function parameter 'versionId' should be passed by const reference. [serialize.cpp:116]: (performance) Function parameter 'versionId' should be passed by const reference. [activation.cpp:115] -> [activation.cpp:152]: (style) Local variable mapperResponseMsg shadows outer symbol [version.hpp:114]: (performance) Variable 'eraseCallback' is assigned in constructor body. Consider performing initialization in initialization list. [image_verify.hpp:53]: (style) Struct 'CustomFd' has a constructor with 1 argument that is not explicit. [ubi/item_updater_ubi.cpp:192]: (performance) Function parameter 'versionId' should be passed by const reference. [ubi/item_updater_ubi.cpp:203]: (performance) Function parameter 'versionId' should be passed by const reference.
Tested: Verify the code compiles and cppcheck does not report the above issues.
Change-Id: I096392a2a7a283fe198c9c29185125e61295e10f Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
a2e67163 |
| 22-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Static layout: Implement PNOR code update
Implement the PNOR code update by pflash tool in openpower-pnor-update service, and update the related associations.
Tested: Verify PNOR code update succee
Static layout: Implement PNOR code update
Implement the PNOR code update by pflash tool in openpower-pnor-update service, and update the related associations.
Tested: Verify PNOR code update succeeds.
Change-Id: I53781d6420071200ac2ed6837f7a79bf5e1162c2 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
c67a9457 |
| 04-Mar-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Move serialize to ubi
Functions in serialize are specific to UBI, move it to ubi dir.
Tested: On the last commit of the patch series, run code update and factory reset on Withersp
Refactor: Move serialize to ubi
Functions in serialize are specific to UBI, move it to ubi dir.
Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine.
Change-Id: I9176e638d9f3bfe0d424b57f8da4667a751cb5bd Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
9b21efc5 |
| 21-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Split Activation into common and ubi
Activations has a few functions coupled with ubi, split them into ubi/activation_ubi
* Keep common code in activation. * Make start/finishActivation()
Refactor: Split Activation into common and ubi
Activations has a few functions coupled with ubi, split them into ubi/activation_ubi
* Keep common code in activation. * Make start/finishActivation() pure virtual. * Move ubi specific code into ubi. * Move ubiVolumnCreated into ubi. * Make validateSignature() not inline, otherwise it gets compile error.
Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine.
Change-Id: I7c8a0de6b0be4b1e9814ea75fd802a014b4aacfc Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
c9caf869 |
| 24-Jan-2019 |
Lei YU <mine260309@gmail.com> |
Invoke Delete method to correct service
When PNOR code update is finished, it needs to invoke Delete interface to xyz.openbmc_project.Software.Version service to delete the temporary files in /tmp/i
Invoke Delete method to correct service
When PNOR code update is finished, it needs to invoke Delete interface to xyz.openbmc_project.Software.Version service to delete the temporary files in /tmp/images.
The code was using the first service from mapper call, and the first service may be org.open_power.Software.Host.Updater, which is itself, and this method call results in ELOOP error.
Change the code to pick the correct service to invoke Delete method.
Resovles: openbmc/openbmc#3311
Tested: Verify the temp files in /tmp/images/<versionID> is deleted after PNOR code update, and no ELOOP error occurs.
Change-Id: I855db171a05db66a5e4540d662031c3d219d4a9e Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
17f55a82 |
| 27-Nov-2018 |
William A. Kennington III <wak@google.com> |
std::variant: Fix forgotten conversion
Change-Id: Ie802ac340ebc0fde965bd84e18d2af9391136626 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
f6ed5897 |
| 07-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
clang-format: Update to match docs repo
Update the .clang-format file. Now includes header sorting and updating PointerAlignment.
Change-Id: I7119c12f1cc0a461cb7e4576dff6a02dcc95cbc4 Signed-off-by:
clang-format: Update to match docs repo
Update the .clang-format file. Now includes header sorting and updating PointerAlignment.
Change-Id: I7119c12f1cc0a461cb7e4576dff6a02dcc95cbc4 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
ab435df0 |
| 16-Jul-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
activation: Add error handling in deleteImageManagerObject
Handle exceptions from the sdbusplus method call API.
The call to Delete an object from the image manager fails with: sd_bus_call: System.
activation: Add error handling in deleteImageManagerObject
Handle exceptions from the sdbusplus method call API.
The call to Delete an object from the image manager fails with: sd_bus_call: System.Error.ELOOP: Too many levels of symbolic links
Catch the error so the app doesn't core dump. Issue openbmc/openbmc#3311 will track root cause of the error.
Tested: A PNOR code update operation succeeds without core dumps or error messages.
Change-Id: Ib384a16436bbb0521d247b7b6157b8877db5a4cb Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
74b657e8 |
| 13-Jul-2018 |
Gunnar Mills <gmills@us.ibm.com> |
activation: Improve error handling in Subscribe
Handle exceptions from the sdbusplus method call_noreply API.
The Activation constructor was subscribing to systemd signals, which would cause an "Al
activation: Improve error handling in Subscribe
Handle exceptions from the sdbusplus method call_noreply API.
The Activation constructor was subscribing to systemd signals, which would cause an "Already Subscribed" error when creating multiple Activation instances because the bus is common.
There is no reason to subscribe to systemd signals in the constructor, since the signals are only triggered during the activation process. Move the Subscribe call to the activation process which calls Unsubscribe at the end.
There's a scenario where there could still be an "Already Subscribed" error if the activation fails, so add error handling there.
This is very similar to: https://gerrit.openbmc-project.xyz/#/c/11428/
Tested: Code updated an image. Change-Id: Ia35b7f2fc24c0b605692bc534c54e18742027061 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
afd0a45c |
| 30-May-2018 |
Joseph Reynolds <jrey@us.ibm.com> |
Use s.c_str() in log messages
Part of a series of commits that resolve openbmc 2905
Here is something funny: in item_updater.cpp:300 is a string and on line 316 it is const char*. It may be confu
Use s.c_str() in log messages
Part of a series of commits that resolve openbmc 2905
Here is something funny: in item_updater.cpp:300 is a string and on line 316 it is const char*. It may be confusing to have the same variable name with two different related types.
Tested: static_assert only
Change-Id: I59556fc184ef1f1047bd8a76062598b7518c36ae Signed-off-by: Joseph Reynolds <jrey@us.ibm.com>
show more ...
|
#
11271fb7 |
| 29-Mar-2018 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
PNOR Signature validation failure handling based on field mode
Added support to stop the codeupdate only for the fieldmode enabled systems, for signature validation failures.
Resolves openbmc/openb
PNOR Signature validation failure handling based on field mode
Added support to stop the codeupdate only for the fieldmode enabled systems, for signature validation failures.
Resolves openbmc/openbmc#3047
Change-Id: Idf47b122a60d5d14e6e7f134d8067d20e09e7c76 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
5248f3cf |
| 28-Mar-2018 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Fix compilation issues
-Added fix for squashFSImage file name print error. -Added fix for conf path name typo.
Change-Id: Ic11509a16d5d7c35b1bbb191175a8f710e66caad Signed-off-by: Jayanth Othayoth <
Fix compilation issues
-Added fix for squashFSImage file name print error. -Added fix for conf path name typo.
Change-Id: Ic11509a16d5d7c35b1bbb191175a8f710e66caad Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
4016e526 |
| 20-Mar-2018 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Enabled PNOR signed image validation
Enable signature validation during version activation based on the WANT_SIGNATURE_VERIFY flag.
Change-Id: If8f4357553be9ed2fbcf86b4dddec768532a043a Signed-off-b
Enabled PNOR signed image validation
Enable signature validation during version activation based on the WANT_SIGNATURE_VERIFY flag.
Change-Id: If8f4357553be9ed2fbcf86b4dddec768532a043a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com> Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|