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 ...
|
ce338fd1 | 17-Jul-2024 |
George Liu <liuxiwei@ieisystem.com> |
softoff: switch to lg2
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I9b4071a8647182278b25b044355c707a908b4338 |
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 ...
|
ba0da6b3 | 22-Jan-2024 |
Patrick Williams <patrick@stwcx.xyz> |
softoff: fix use of deprecated sdbusplus type
sdbusplus removed the `phosphor` namespace alias to `sdbusplus::Timer`. Fix here to use the original type.
Signed-off-by: Patrick Williams <patrick@stw
softoff: fix use of deprecated sdbusplus type
sdbusplus removed the `phosphor` namespace alias to `sdbusplus::Timer`. Fix here to use the original type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I73772df569aa6efb20e3647b205b8db55220a1f3
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 ...
|
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 ...
|
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 ...
|
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 ...
|
5adc2d41 | 07-Apr-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for signal action, but maintained a backwards compatible boolean mapping.
sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for signal action, but maintained a backwards compatible boolean mapping. It is time to remove this boolean to make it more observable which actions are being used in applications. Map all `true` occurrences to `action::defer_emit`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I18604dd269289a35705f52455980798c069a756f
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 ...
|
1c8ee490 | 28-Mar-2019 |
Patrick Venture <venture@google.com> |
build: install into bin instead of sbin
Installs into bin instead of sbin per guidelines.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: If171989d2c0c6a53d9368b776ac98dea743057da |
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 against).
Teste
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 ...
|
194375f2 | 14-Dec-2018 |
William A. Kennington III <wak@google.com> |
Create libipmid and libipmid-host
This starts a transition to common ipmid libraries that providers can link against. It will allow for a cleaner separation between common ipmid functionality and da
Create libipmid and libipmid-host
This starts a transition to common ipmid libraries that providers can link against. It will allow for a cleaner separation between common ipmid functionality and daemon type specific code. This is needed so we can resolve all of the symbols in the providers at link time instead of discovering bad linkage by building and running a full ipmi daemon.
In future commits libraries will be packaged for libipmid and libipmid-host which provide all of the symbols used by the current set of ipmid providers.
This is the first step, it just separates and renames the headers. Legacy symlinks are still kept around for compatability. It also adds stub libraries so that external users can start linking as intended.
Change-Id: I6bbd7a146362012d26812a7b039d1c4075862cbd Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
c64f8023 | 14-Nov-2018 |
Patrick Venture <venture@google.com> |
makefile cleanup
Cleanup the Makefile.am files to be consistent. Space indentation was replaced with tabs, and newlines consistently injected.
Change-Id: I5a5e343d6a3e9a7a65eae9827a61fcdd4fc33878
makefile cleanup
Cleanup the Makefile.am files to be consistent. Space indentation was replaced with tabs, and newlines consistently injected.
Change-Id: I5a5e343d6a3e9a7a65eae9827a61fcdd4fc33878 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
4f67cc37 | 18-Oct-2018 |
William A. Kennington III <wak@google.com> |
softoff: Convert to sdeventplus loop
Tested: Builds and passes unit tests
Change-Id: I6c37fa7088b7bcfbfc9f8b93185b826782a72c6a Signed-off-by: William A. Kennington III <wak@google.com> |
1181af74 | 08-Oct-2018 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Use the common timer class
The common timer class from sdbusplus offers all the timer goodness that we currently use. The unit test is also no longer needed (and has been added to sdbusplus's versio
Use the common timer class
The common timer class from sdbusplus offers all the timer goodness that we currently use. The unit test is also no longer needed (and has been added to sdbusplus's version of the timer.hpp implementation).
Change-Id: I278817489433a29ca739f70fdacd8bb897797d66 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
0b02be92 | 31-Aug-2018 |
Patrick Venture <venture@google.com> |
add .clang-format
Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com> |
510eb9cc | 30-May-2018 |
Joseph Reynolds <jrey@us.ibm.com> |
Use s.c_str() in log messages
Fixes issues with data passed to phosphor::logging::log(entry()). This is part of a series of commits that resolves openbmc 2905.
Tested: static_assert only
Change-Id
Use s.c_str() in log messages
Fixes issues with data passed to phosphor::logging::log(entry()). This is part of a series of commits that resolves openbmc 2905.
Tested: static_assert only
Change-Id: I9fac771f54e4acbec97ce1360c106b6e3eb4fe9d Signed-off-by: Joseph Reynolds <jrey@us.ibm.com>
show more ...
|
5fb14603 | 09-Nov-2017 |
Aditya Saripalli <adisarip@in.ibm.com> |
Reducing IPMI logging footprint
-host-ipmid is very noisy in terms of journal logging. A small step towards cleaning that up. -Also converted printfs to phosphor-logging.
Partially Resolves openbmc
Reducing IPMI logging footprint
-host-ipmid is very noisy in terms of journal logging. A small step towards cleaning that up. -Also converted printfs to phosphor-logging.
Partially Resolves openbmc/openbmc#2507
Change-Id: I749c19c18d1cabf6f0216830c8cb0a08ee43d6de Signed-off-by: Aditya Saripalli <aditya0124@gmail.com> Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
show more ...
|
8991dd62 | 25-Oct-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Spelling fixes
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2.
Change-Id: I78e9d
Spelling fixes
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2.
Change-Id: I78e9d126f19fd9fb2e3f2fa9fe8c2404dc505f82 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
3eb117a3 | 12-Jul-2017 |
Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
Use Host Command Manager in host interface implementation
Change-Id: Icefce510a3a0022bf0288fa99518459b732a2e04 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> |
5f4fe3c3 | 31-May-2017 |
Andrew Geissler <andrewg@us.ibm.com> |
Don't return error on SMS error
The state of the host is unknown when a host shutdown is requested. The defined behavior after asserting the SMS attention is to give the host a few seconds to respo
Don't return error on SMS error
The state of the host is unknown when a host shutdown is requested. The defined behavior after asserting the SMS attention is to give the host a few seconds to respond. If there is no response then just continue with the shutdown.
Change-Id: I7b25ddb572bd8dea9f6a3422997f53e5f38c7fc5 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
83527efe | 18-May-2017 |
Andrew Geissler <andrewg@us.ibm.com> |
Ensure softpoweroff application returns non-zero rc on fails
This will ensure we follow the OnFailure= behavior defined within the shutdown target and properly power the system off on fails
Change-
Ensure softpoweroff application returns non-zero rc on fails
This will ensure we follow the OnFailure= behavior defined within the shutdown target and properly power the system off on fails
Change-Id: I4367602741ec06f32e5a39a21fccc914739fdda6 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|