06b1dbe9 | 16-Sep-2024 |
Potin Lai <potin.lai@quantatw.com> |
Change primary postcode interface to byte array
Test results: ``` root@bmc:~# busctl call xyz.openbmc_project.State.Boot.PostCode0 /xyz/openbmc_project/State/Boot/PostCode0 xyz.openbmc_project.State
Change primary postcode interface to byte array
Test results: ``` root@bmc:~# busctl call xyz.openbmc_project.State.Boot.PostCode0 /xyz/openbmc_project/State/Boot/PostCode0 xyz.openbmc_project.State.Boot.PostCode GetPostCodes q 1 -j { "type" : "a(ayay)", "data" : [ [ [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ], [] ], [ [ 17, 18, 19, 20, 21, 22, 23, 24, 25 ], [] ], [ [ 33, 34, 35, 36, 37, 38, 39, 40, 41 ], [] ] ] ] } ```
Change-Id: I81387df590c2c6781451c6dbcc030d48ca011eb6 Signed-off-by: Potin Lai <potin.lai@quantatw.com>
show more ...
|
9c2e871d | 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: I23c72085a3819d1036e1b926ed47ef80dfde924c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
4653cd49 | 17-Jun-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://githu
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I6e25a87811ace357e3552148ca3d5d56cf9e00a8 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
f2da78de | 02-Apr-2024 |
Konstantin Aladyshev <aladyshev22@gmail.com> |
meson: Fix local cereal build
Currently local build is failing with a message: """ cereal| Exception: Failed to configure the CMake subproject: Could NOT find Boost (missing: Boost_INCLUDE_DIR seria
meson: Fix local cereal build
Currently local build is failing with a message: """ cereal| Exception: Failed to configure the CMake subproject: Could NOT find Boost (missing: Boost_INCLUDE_DIR serialization) Subproject subprojects/cereal is buildable: NO (disabling) """ Since cereal requires boost only for the sandbox build and this functionality is not needed, add option to skip building performance sandbox comparison to solve the issue.
Tested: "meson setup build" no longer fails with the cereal error.
Change-Id: I84a1015177510dbc23097d4f68a0ac6a85051d95 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
show more ...
|
611de486 | 28-Feb-2024 |
Patrick Williams <patrick@stwcx.xyz> |
systemd: Add host identifier to service description
On a multi-host system, there is no identifier for the post code manager service, so you end up with console messages such as:
``` Start
systemd: Add host identifier to service description
On a multi-host system, there is no identifier for the post code manager service, so you end up with console messages such as:
``` Starting Post code manager... Starting Post code manager... Starting Post code manager... Starting Post code manager... Starting Post code manager... Starting Post code manager... Starting Post code manager... Starting Post code manager... ```
Add an identifier to the templated service file so that these instances are differentiated.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I63c0a5d80f4870314805b8f9ff07782be9fe3faf
show more ...
|
2d74ceb6 | 05-Dec-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: avoid deprecated phosphor::Timer
sdbusplus had an older type named `phosphor::Timer` which was recently renamed to `sdbusplus::Timer`. Update the code to use the new type alias.
Change-
sdbusplus: avoid deprecated phosphor::Timer
sdbusplus had an older type named `phosphor::Timer` which was recently renamed to `sdbusplus::Timer`. Update the code to use the new type alias.
Change-Id: I9a57a056eb7bb38a851f835d573c4271c4a69a0d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
8eb4d58b | 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: I8a8a5b86aaeb9ae6835ca26b22a8e21e4438bb52 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
608a3921 | 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 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-17 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: I23b5aa5ca608bf502224f036b3e217eefcab1d10 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
99a87b6f | 15-Aug-2023 |
George Liu <liuxiwei@inspur.com> |
meson_options.txt: Support for reading options from meson.options
Support has been added for reading options from meson.options instead of meson_options.txt[1]. These are equivalent, but not using t
meson_options.txt: Support for reading options from meson.options
Support has been added for reading options from meson.options instead of meson_options.txt[1]. These are equivalent, but not using the .txt extension for a build file has a few advantages, chief among them many tools and text editors expect a file with the .txt extension to be plain text files, not build scripts.
[1] https://mesonbuild.com/Release-notes-for-1-1-0.html#support-for-reading-options-from-mesonoptions
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I6e7b4133bc4254ebb5eb1e02390080ab704a8a34
show more ...
|
5c75dd56 | 12-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: Ic6ef0ad86b97a49792b40
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: Ic6ef0ad86b97a49792b40317bcb39311c49e233e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
e7e197b3 | 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: Ia0b293ab6c60f99ee6695deb755b1195d3a68faf Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
a4c19b00 | 28-Feb-2023 |
Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> |
Support OCP debug card postcode display
Description: - Meson option postcode display path is supported - Support OCP debug card postcode display
Example of test process: 1. Set postcode-displa
Support OCP debug card postcode display
Description: - Meson option postcode display path is supported - Support OCP debug card postcode display
Example of test process: 1. Set postcode-display-path as /sys/bus/i2c/devices/12- 000f/postcode-display-slot in project layer 2. Press OCP debug card uart button to the host to check 3. Host power on 4. The postcode should start displaying on the OCP debug card screen with user-readable string representation for those codes Note: - The postcode-display-path was setting by CLD driver, which will though CPLD setting ocp-debug card (link: https://lore.kernel.org/lkml/20230117094425.19004-1-Delphine_CC_Chiu@Wiwynn.com/)
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Change-Id: I915c0ec29d763b8933835a9fdc8881648ca95d24
show more ...
|
65a66543 | 12-Apr-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig` keyword argument. Ensure meson 0.58 is required and update the usage of all `get_pkgconfig_variable` and `get_variable` to be the modern variant.
Change-Id: I45c1ed610893020cd9c6479f25c22dd53e153750 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
13cb8537 | 15-Dec-2022 |
Bonnie Lo <Bonnie_Lo@wiwynn.com> |
Add one second timer to save POST codes to file
A lot of POST codes are sent to BMC from BIC in a short time.
In BMC, there is an ipmi handler to get POST codes and upload to dbus property.
The xy
Add one second timer to save POST codes to file
A lot of POST codes are sent to BMC from BIC in a short time.
In BMC, there is an ipmi handler to get POST codes and upload to dbus property.
The xyz.openbmc_project.State.Boot@.PostCode service listens the PropertiesChanged signal and saves to POST codes history file.
The xyz.openbmc_project.State.Boot@.PostCode service is hanged if there are too many POST codes in a short time.
At this time, the memory usage of dbus-broker increases, and the out-of-memory(OOM) issue happens.
The processes are killed when OOM happens, and BMC may reset unexpected.
Test Case: Check the frequency for post code file getting larger
Signed-off-by: Bonnie Lo <Bonnie_Lo@wiwynn.com> Change-Id: Ic5a397cfa7f053e196cc3d0eeae3e2b2fa5089b7
show more ...
|
8290e0f3 | 23-Nov-2022 |
Jonathan Doman <jonathan.doman@intel.com> |
Use binary serialization instead of JSON
The binary format is much more efficient than JSON in terms of computational speed and disk space consumption. The former is important in case the host is se
Use binary serialization instead of JSON
The binary format is much more efficient than JSON in terms of computational speed and disk space consumption. The former is important in case the host is sending a constant stream of POST codes. post-code-manager can fall behind because it takes too long to store each new POST code on disk, causing D-Bus messages to pile up and increase memory consumption inside dbus-broker.
Tested: Rebooted the host a few times and observed that POST code history is populated normally in Redfish. After upgrading to this change, old POST code history stored in JSON format is lost, but remains on disk until it gets overwritten during subsequent host boots.
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com> Change-Id: Id55909a55d950e6e62b78b3333df687b4c582c42
show more ...
|
c7fed5ca | 23-Nov-2022 |
Jonathan Doman <jonathan.doman@intel.com> |
Refactor singleton and filesystem path handling
- Remove singleton PostCodeDataHolder. It only contained a single int which could easily be held inside the main PostCode class instead. - Simplify
Refactor singleton and filesystem path handling
- Remove singleton PostCodeDataHolder. It only contained a single int which could easily be held inside the main PostCode class instead. - Simplify D-Bus match construction by using predefined PropertiesChanged rule. - Remove unnecessary PostCode members which were just copies of const strings. - Refactor some filesystem path construction/handling to simplify code.
Tested: Rebooted host a few times and observed that correct POST code history is still populated in Redfish.
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com> Change-Id: Ifd61751807da704eaf2a64dac34ca708fd28c872
show more ...
|
4e08156b | 01-Dec-2022 |
Kumar Thangavel <thangavel.k@hcl.com> |
Fix postcode dbus object path
Postcode dbus object path name is corrected as like postcode manager dbus service with host id for single and multi host postcode manager services
TESTED : Verified al
Fix postcode dbus object path
Postcode dbus object path name is corrected as like postcode manager dbus service with host id for single and multi host postcode manager services
TESTED : Verified all host postcode dbus objects are displayed correctly and tested in Facebook YosemiteV2 platform
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: I18dbdf221aa92544d7e652390564fc0a050bbdd0
show more ...
|
2018964a | 09-Nov-2022 |
Bonnie Lo <Bonnie_Lo@wiwynn.com> |
Fix singleton issue for not passing correct argument
Use reference to create instance instead of an object
Note: 1. User must revise the OBMC_HOST_INSTANCES in project configuration file to corr
Fix singleton issue for not passing correct argument
Use reference to create instance instead of an object
Note: 1. User must revise the OBMC_HOST_INSTANCES in project configuration file to correctly execute sled cycle. 2. The reason to revise is that OBMC_HOST_INSTANCES and OBMC_CHASSIS_INSTANCES are 1 to 1 relationship defined in phosphor-state-manager-systemd-links.inc 3. After revision, BMC creats a object path which is not used called /xyz/openbmc_project/state/boot/raw0 under xyz.openbmc_project.State.Boot.Raw
Test Case: Check the correcponding Dbus match path is created
Signed-off-by: Bonnie Lo <Bonnie_Lo@wiwynn.com> Change-Id: I84e5658c1919dc758efade4bd13122610997c067
show more ...
|
8d3d7b17 | 12-Dec-2022 |
Zhikui Ren <zhikui.ren@intel.com> |
OWNERS: Add Zhikui Ren
Change-Id: Ia1fe385212a14a6ee6ce3953de1a8e5ec5fcd436 Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> |
42d56641 | 09-Dec-2022 |
kuiying <wangkuiying.wky@alibaba-inc.com> |
Updagte Kuiying's email address
Kuiying's email address is changed to wangkuiying.wky@alibaba-inc.com
Signed-off-by: kuiying <wangkuiying.wky@alibaba-inc.com> Change-Id: I1d9ebe26aa3872c85e93b2a962
Updagte Kuiying's email address
Kuiying's email address is changed to wangkuiying.wky@alibaba-inc.com
Signed-off-by: kuiying <wangkuiying.wky@alibaba-inc.com> Change-Id: I1d9ebe26aa3872c85e93b2a962380097597b2d76
show more ...
|
fe9fbc13 | 08-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
Change-Id: I4c6395d774287f086af0b673ab3a900561b6344f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
eddf960a | 23-Nov-2022 |
Jonathan Doman <jonathan.doman@intel.com> |
Update .clang-format and reformat
Update the local .clang-format to the example configuration and reformat all the source code, as well as line wrap the README text.
Signed-off-by: Jonathan Doman <
Update .clang-format and reformat
Update the local .clang-format to the example configuration and reformat all the source code, as well as line wrap the README text.
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com> Change-Id: I996d96a14a271612e03113013e29f4613b782c35
show more ...
|
c1819379 | 27-Oct-2022 |
Bonnie Lo <Bonnie_Lo@wiwynn.com> |
Max post code file size per cycle setting
Let user could set POST code file size per cycle
The default size is 512 counts
Reason: BMC may crash caused by nonstop saving POST code when BIOS has som
Max post code file size per cycle setting
Let user could set POST code file size per cycle
The default size is 512 counts
Reason: BMC may crash caused by nonstop saving POST code when BIOS has some unusual behavior like PXE loop Thus, BMC should set a limit size to prevent this risk
Test Case: Manually send POST code to check the POST code file rotation
Signed-off-by: Bonnie Lo <Bonnie_Lo@wiwynn.com> Change-Id: Ic7fbafe532a79123e6ae880a8a3506f9c397d933
show more ...
|
a27519e9 | 04-Aug-2022 |
Patrick Williams <patrick@stwcx.xyz> |
MAINTAINERS: remove file
The MAINTAINERS file is deprecated in favor of OWNERS.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0da7cb31f85fc8f1fd4d1a1fccfe92c683e69286
|
e9feb957 | 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: Id93b8dfb6c81f62647dd56f1ce04c1a4fda4f7f4
show more ...
|