#
3c1e28e4 |
| 04-Feb-2024 |
George Liu <liuxiwei@ieisystem.com> |
utils: Unused methods are marked as deprecated
The getAllAncestors and deleteAllDbusObjects methods in utils.hpp are not used and are not used in the reops. This commit marks these methods as deprec
utils: Unused methods are marked as deprecated
The getAllAncestors and deleteAllDbusObjects methods in utils.hpp are not used and are not used in the reops. This commit marks these methods as deprecated marked for removal after 2025-03-30 unless disputed.
Tested: ipmitool works fine with this patch.
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Icd53a9effc53c12b5db05b90b75c3addf6c02d5b
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 ...
|
#
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 ...
|
#
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 ...
|
#
e7e8b816 |
| 28-Oct-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
rewrite Get Session Info to use new yielding D-Bus API The new yielding API does not use try/catch, and has slightly different parameters which makes the change look bigger than it is.
rewrite Get Session Info to use new yielding D-Bus API The new yielding API does not use try/catch, and has slightly different parameters which makes the change look bigger than it is. Tested: Run ipmitool session info active session handle : 1 slot count : 45 active sessions : 1 user id : 1 privilege level : ADMINISTRATOR session type : IPMIv2/RMCP+ channel number : 0x01 console ip : 0.0.0.0 console mac : 00:00:00:00:00:00 console port : 54884 Console ip is reported as all zero due to a current netipmid bug. Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com> Change-Id: Ia6574568c7f8863b3acffcf22e403c8be01d312a
show more ...
|
#
fe39ec9c |
| 02-Mar-2020 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Incorrect function declaration for getManagedObjects The implementation was correct but the declaration had the out parameter as the second parameter instead of the last. Change
Incorrect function declaration for getManagedObjects The implementation was correct but the declaration had the out parameter as the second parameter instead of the last. Change-Id: Ib0f1c23ad6617d637c17d9175bb7a93f8f481e0d Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
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::
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 refactori
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 maste
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 ...
|
#
33250240 |
| 12-Mar-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
move types.hpp to ipmid/types.hpp for export types.hpp is required by utility.hpp, which is exported, so it needs to be exported as well. This moves it to the include/libipmid directory,
move types.hpp to ipmid/types.hpp for export types.hpp is required by utility.hpp, which is exported, so it needs to be exported as well. This moves it to the include/libipmid directory, changes the Makefile to export it, and changes all the files that include it so it can be found in the right place. Change-Id: I30ec365446e4de466c266ec4faa327478460ec05 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
#
6a98fe7f |
| 11-Mar-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Move util.cpp/util.hpp to libipmid These are functions that are used widely by ipmid providers, so it makes sense to put them in libipmi.so (the library that all providers must link
Move util.cpp/util.hpp to libipmid These are functions that are used widely by ipmid providers, so it makes sense to put them in libipmi.so (the library that all providers must link against). Tested-by: use nm to inspect the binaries to see that the symbols are in the expected library. arm-openbmc-linux-gnueabi-nm libipmid.so.0.0.0 \ | grep getDbusObject 0001063c T _ZN4ipmi13getDbusObjectERN9sdbusplus.... Change-Id: I1221f807f2711c5301c5574623564ea1ae48a437 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|