b4b40918 | 17-Jul-2024 |
George Liu <liuxiwei@ieisystem.com> |
ipmid: switch to lg2
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I838587b2d564f3c00b78ce37e175d7e8ace51142 |
1318a5ed | 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: I01547e98d27910919e09ebf7907c86292a6c825d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
e11895fd | 04-Apr-2024 |
Konstantin Aladyshev <aladyshev22@gmail.com> |
meson: Use boost as a dependency
Currently boost library is found via the 'cpp.find_library' call. With this method local build of the project requires host to have the boost libraries installed. Si
meson: Use boost as a dependency
Currently boost library is found via the 'cpp.find_library' call. With this method local build of the project requires host to have the boost libraries installed. Since the meson have a subproject system to download missing dependencies, rewrite boost requirement to a 'dependency' object. This way it would be possible to build the project locally on the system without the boost library installed.
Tested: Both local meson build and Yocto build are performed successfully.
Change-Id: I082aeb1d6c09627ea53f58cb6cd375f080401d57 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
show more ...
|
50f186c1 | 04-Feb-2024 |
George Liu <liuxiwei@ieisystem.com> |
utils: Add the getSubTree method
The purpose of this patch is to prevent other methods from calling ObjectMapper's `GetSubTree` property, but to obtain the correct the objectTree values by calling t
utils: Add the getSubTree method
The purpose of this patch is to prevent other methods from calling ObjectMapper's `GetSubTree` property, but to obtain the correct the objectTree values by calling the standard the getSubTree method.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ia719f92ca31fa75f83a7ffd07fdcb680bd4243b0
show more ...
|
68d9d405 | 09-Nov-2023 |
Matt Simmering <matthew.simmering@intel.com> |
Update terminology used within repo
Update the terms to more inclusive language. This change if only for variables used in the repo.
Change-Id: I5151c9c2efab707b5dbc707e55333a3cb8c4e32b Signed-off-
Update terminology used within repo
Update the terms to more inclusive language. This change if only for variables used in the repo.
Change-Id: I5151c9c2efab707b5dbc707e55333a3cb8c4e32b Signed-off-by: Matt Simmering <matthew.simmering@intel.com>
show more ...
|
523e2d1b | 05-Sep-2023 |
Willy Tu <wltu@google.com> |
ipmid: Update sdbuspp namespaces
Fixed all errors when we remove `SDBUSPP_REMOVE_DEPRECATED_NAMESPACE` in sdbusplus.
Change-Id: I5607585b2709faa7aee347d26e458ef769ca1626 Signed-off-by: Willy Tu <wl
ipmid: Update sdbuspp namespaces
Fixed all errors when we remove `SDBUSPP_REMOVE_DEPRECATED_NAMESPACE` in sdbusplus.
Change-Id: I5607585b2709faa7aee347d26e458ef769ca1626 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
3e3cc35b | 26-Jul-2023 |
George Liu <liuxiwei@inspur.com> |
Remove is_method_error method
Remove the usage of is_method_error()[1], and add try-catch to handle D-Bus exceptions around mapper call.
[1]https://github.com/openbmc/sdbusplus/commit/079fb85a398d9
Remove is_method_error method
Remove the usage of is_method_error()[1], and add try-catch to handle D-Bus exceptions around mapper call.
[1]https://github.com/openbmc/sdbusplus/commit/079fb85a398d90800935e3985bb1266a7530a26e#diff-945669e8bd9cab4ecc83a574a732921281b2c79eb8bba65efff11736ad18f92bR237-R240
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I85192219c1c34cf5fd6c6aca06a8b207d7e06697
show more ...
|
f84c8314 | 22-May-2023 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Archive not getting added to shared object
The archive needs to be added with link_whole so that all the symbols get added to the shared object or gcc will optimize them out.
Tested: ran to see tha
Archive not getting added to shared object
The archive needs to be added with link_whole so that all the symbols get added to the shared object or gcc will optimize them out.
Tested: ran to see that no missing symbols are logged
Change-Id: I4f30b8e1d3ad2936ff57ed733e04b1227c6f3c54 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
9cf0838a | 28-Apr-2023 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
move entity_map_json to libipmid
entity_map_json is used by dbus-sdr sensor handling so it needs to be in a common location or loading order matters. This change moves the file from the ipmi20 provi
move entity_map_json to libipmid
entity_map_json is used by dbus-sdr sensor handling so it needs to be in a common location or loading order matters. This change moves the file from the ipmi20 provider library to libipmi, a common library.
Tested: Found that even though the dbus-sdr provider loads before ipmi20, it loads properly without missing symbols.
Change-Id: I9ab6833c78e6f3c89c02cf998ce0a36353059c3d Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
fbc6c9d7 | 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: I44441096113929ce96eb1439e2932e6ff3c87f27 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
b53049e8 | 02-Apr-2022 |
Albert Zhang <zhanghaodi@inspur.com> |
Adding a yielding option callDbusMethod
Currently there are a lot of yielding options that takes in utils.hpp the ipmi::Context::ptr, but without callDbusMethod, Now add this method to meet the need
Adding a yielding option callDbusMethod
Currently there are a lot of yielding options that takes in utils.hpp the ipmi::Context::ptr, but without callDbusMethod, Now add this method to meet the needs.
Tested: The callDbusMethod method is called in a library, the compilation is passed, and the functional test is successful.
Signed-off-by: Albert Zhang <zhanghaodi@inspur.com> Change-Id: Id46f93708728b4449804ceedfa6d269071e52278
show more ...
|
5d82f474 | 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: Ibd2a0b512bfb7caf65bfab64b271d194da520aac
show more ...
|
bbc6ad48 | 16-Jun-2022 |
Patrick Williams <patrick@stwcx.xyz> |
meson: minor dependency fix ups for wrap-builds
Add a few missing dependencies to enable full wrap-based builds.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0eab0c37acaad4be5b63
meson: minor dependency fix ups for wrap-builds
Add a few missing dependencies to enable full wrap-based builds.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0eab0c37acaad4be5b63d9804200566405f40c0b
show more ...
|
c710b975 | 11-Aug-2021 |
Willy Tu <wltu@google.com> |
build: Add meson build for phosphor-host-ipmi
Create meson and meson_options for the existing features.
Removed sample.h/cpp since that is not used at all.
Tested: Ipmi command works fine the clea
build: Add meson build for phosphor-host-ipmi
Create meson and meson_options for the existing features.
Removed sample.h/cpp since that is not used at all.
Tested: Ipmi command works fine the cleanup. ``` $ systemctl status phosphor-ipmi-host ● phosphor-ipmi-host.service - Phosphor Inband IPMI Loaded: loaded (/lib/systemd/system/phosphor-ipmi-host.service; enabled; vendor preset: enabled) Active: active (running) since Thu 1970-01-08 21:20:56 UTC; 21s ago Main PID: 24987 (ipmid) CGroup: /system.slice/phosphor-ipmi-host.service └─24987 /tmp/ipmid
Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X32] for Sys Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: I2C_WHITELIST_CHECK is disabled, do not populate whitelist Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X04] for Manual Zone Control Jan 08 21:20:56 $HOST systemd[1]: Started Phosphor Inband IPMI. Jan 08 21:20:56 $HOST ipmid[24987]: Loading whitelist filter Jan 08 21:20:56 $HOST ipmid[24987]: Set restrictedMode = true (reverse-i-search)`ipmi': systemctl status phosphor-^Cmi-host
$ ipmitool mc info Device ID : 32 Device Revision : 1 Firmware Revision : 0.00 IPMI Version : 2.0 Manufacturer ID : 7244 Manufacturer Name : Quanta Computer Inc. Product ID : 14426 (0x385a) Product Name : Unknown (0x385A) Device Available : yes Provides Device SDRs : yes Additional Device Support : Sensor Device SEL Device FRU Inventory Device Chassis Device Aux Firmware Rev Info : 0x00 0x00 0x00 0x00 ```
Change-Id: Ibaea9eea802b063a0207320654cbb817fde30c2a Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
11d68897 | 20-Jan-2022 |
Willy Tu <wltu@google.com> |
cleanup: Remove all warning errors for the Meson build support
Remove all the build warning to prepare for the meson build. Meson build will be in https://gerrit.openbmc-project.xyz/c/openbmc/phosph
cleanup: Remove all warning errors for the Meson build support
Remove all the build warning to prepare for the meson build. Meson build will be in https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/47748
Tested: Ipmi command works fine the cleanup. ``` $ systemctl status phosphor-ipmi-host ● phosphor-ipmi-host.service - Phosphor Inband IPMI Loaded: loaded (/lib/systemd/system/phosphor-ipmi-host.service; enabled; vendor preset: enabled) Active: active (running) since Thu 1970-01-08 21:20:56 UTC; 21s ago Main PID: 24987 (ipmid) CGroup: /system.slice/phosphor-ipmi-host.service └─24987 /tmp/ipmid
Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X32] for Sys Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: I2C_WHITELIST_CHECK is disabled, do not populate whitelist Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X04] for Manual Zone Control Jan 08 21:20:56 $HOST systemd[1]: Started Phosphor Inband IPMI. Jan 08 21:20:56 $HOST ipmid[24987]: Loading whitelist filter Jan 08 21:20:56 $HOST ipmid[24987]: Set restrictedMode = true (reverse-i-search)`ipmi': systemctl status phosphor-^Cmi-host
$ ipmitool mc info Device ID : 32 Device Revision : 1 Firmware Revision : 0.00 IPMI Version : 2.0 Manufacturer ID : 7244 Manufacturer Name : Quanta Computer Inc. Product ID : 14426 (0x385a) Product Name : Unknown (0x385A) Device Available : yes Provides Device SDRs : yes Additional Device Support : Sensor Device SEL Device FRU Inventory Device Chassis Device Aux Firmware Rev Info : 0x00 0x00 0x00 0x00 ```
Change-Id: I372c9433a274bc633a24d213b7a1bc205531e33d Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
a2ad2da8 | 06-Oct-2021 |
Patrick Williams <patrick@stwcx.xyz> |
catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic2b49715c7b81ac5bcfc12ff2d3b4c593cd95ce7 |
3e9101e9 | 25-Aug-2020 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
remove include boost/asio.hpp
This makes it possible to build without including asio.hpp. This should reduce build times and makes it more explicit what parts of asio are getting used.
Tested: buil
remove include boost/asio.hpp
This makes it possible to build without including asio.hpp. This should reduce build times and makes it more explicit what parts of asio are getting used.
Tested: builds as expected
Change-Id: Ibfdf1c3f842a8a86ef45ead3c964c51422ffd673 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
778418da | 18-Aug-2020 |
Ed Tanous <ed@tanous.net> |
Fix includes
This patchset tries to fix some of the include problems in phosphor-ipmi-host. First, it relies on io_service, which is deprecated, and will not compile in boost 1.74. It also relies
Fix includes
This patchset tries to fix some of the include problems in phosphor-ipmi-host. First, it relies on io_service, which is deprecated, and will not compile in boost 1.74. It also relies on the fact that sdbusplus #includes <asio.hpp> as a whole, this patchset makes it add the correct includes, so it can compile on its own, and we can improve compile times by removing asio.hpp from sdbusplus.
Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I0ab3b202b07a716368711dc6528d984c73bcb9d9
show more ...
|
f596798e | 06-Mar-2020 |
Jason M. Bills <jason.m.bills@linux.intel.com> |
Provide path parameter to GetObject()
In the new yielding getService() method, the GetObject() is missing the path paramter before the array of interfaces.
Tested: Ran an IPMI command using the yie
Provide path parameter to GetObject()
In the new yielding getService() method, the GetObject() is missing the path paramter before the array of interfaces.
Tested: Ran an IPMI command using the yielding getService() method and confirmed that it successfully gets the D-Bus service and data.
Change-Id: I30e57100d22e1e74271c8ef0659eb6c22e30beff Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
show more ...
|
3165569a | 04-Mar-2020 |
Vijay Khemka <vijaykhemka@fb.com> |
Fix getService function signature
There was a input parameter order issues in getService function as declaration in utils.hpp vs definition in utils.cpp.
Signed-off-by: Vijay Khemka <vijaykhemka@fb
Fix getService function signature
There was a input parameter order issues in getService function as declaration in utils.hpp vs definition in utils.cpp.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I2a956bce807e31667f508ac4edc6c3261c77b101
show more ...
|
eeb0f983 | 29-May-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Add yielding utility calls
utils.hpp provides a bunch of blocking D-Bus calls that are used liberally in the ipmi handlers. By adding a yielding option that takes the ipmi::Context::ptr, this can ea
Add yielding utility calls
utils.hpp provides a bunch of blocking D-Bus calls that are used liberally in the ipmi handlers. By adding a yielding option that takes the ipmi::Context::ptr, this can easily turn all the blocking calls into yielding calls as the handlers get rewritten.
Tested: Used the upcoming modification of XYZ call: Before: ipmitool get session info After: ipmitool get session info
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com> Change-Id: Ia537eeda060ea8e56b94b99ccb46b05f18372589
show more ...
|
c514d874 | 06-Apr-2019 |
William A. Kennington III <wak@google.com> |
transporthandler: Rewrite + New Handler
This rewrites the old transport handler to use the new ipmi handler registration functions. It attempts to clean up the old code, by refactoring any business
transporthandler: Rewrite + New Handler
This rewrites the old transport handler to use the new ipmi handler registration functions. It attempts to clean up the old code, by refactoring any business logic out of the code that parses the IPMI messages. This makes the code paths easier to understand and allows for better code re-use.
This also gets rid of the concept of the settings change timer. Clients expect to see their settings take effect as soon as they are set, regardless of the "Set In Progress" flag. This means we no longer need a cache for our network settings that are about to be set by the daemon, and a client can hold the BMC in "Set In Progress" while it verifies settings like other BMC implementations.
Change-Id: I5406a674f087600afdfc2c0b3adeacde10986abc Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
7dc4ac02 | 23-Aug-2019 |
Yong Li <yong.b.li@linux.intel.com> |
Move i2c WR api into libipmid
Move the low-level i2c write-read api into libipmid, to allow provider libraries access to i2c without duplicating this code.
Tested: I2c master write read command sti
Move i2c WR api into libipmid
Move the low-level i2c write-read api into libipmid, to allow provider libraries access to i2c without duplicating this code.
Tested: I2c master write read command still works: ipmitool i2c bus=2 0x9c 8 0
Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: I0d5f82cf46ecf871eebb47aae25537b5da1f2e6a
show more ...
|
f442e119 | 09-Apr-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
move variant to std namespace
sdbusplus::message::variant_ns has been std for a while now. This moves ipmid away from sdbusplus::message::variant_ns to directly use std::variant.
Tested-by: built,
move variant to std namespace
sdbusplus::message::variant_ns has been std for a while now. This moves ipmid away from sdbusplus::message::variant_ns to directly use std::variant.
Tested-by: built, compiles, and runs the same as before.
Change-Id: I8caa945f31c926c2721319f001b9d7f83fd3f1b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
7a614182 | 27-Nov-2018 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Catch sdbusplus exceptions in IPMI net
Missing the correct exception was causing issues with setting the IPV4 address
Change-Id: Ieaaacfcbaec82a0c3b110889817a7ceb9cda8d3c Signed-off-by: Dave Cobble
Catch sdbusplus exceptions in IPMI net
Missing the correct exception was causing issues with setting the IPV4 address
Change-Id: Ieaaacfcbaec82a0c3b110889817a7ceb9cda8d3c Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
show more ...
|