#
b3b84b49 |
| 23-Aug-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
clang-tidy: Enable modernize-deprecated-headers check
Some headers from C library were deprecated in C++ and are no longer welcome in C++ codebases. Some have no effect in C++ [1].
[1]: https://rel
clang-tidy: Enable modernize-deprecated-headers check
Some headers from C library were deprecated in C++ and are no longer welcome in C++ codebases. Some have no effect in C++ [1].
[1]: https://releases.llvm.org/13.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize-deprecated-headers.html
Change-Id: Ia3b1df10175e2e661c8fffb82e357c9db81b2e9c Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
#
16c2a0a0 |
| 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: I8c84201cb2343a8c8a5507a49de0721a1bee7063 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
a881c170 |
| 21-Jun-2021 |
George Liu <liuxiwei@inspur.com> |
Reduce multiple oem_ibm entry points in pldmd
Abstract the custom method of `OEM-IBM` into the oem-ibm.hpp file to prevent the continuous increase of custom code and reduce multiple `OEM-IBM` entry
Reduce multiple oem_ibm entry points in pldmd
Abstract the custom method of `OEM-IBM` into the oem-ibm.hpp file to prevent the continuous increase of custom code and reduce multiple `OEM-IBM` entry points in pldmd.
Tested: enabled oem-ibm and built pldm successfully.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ieddb8d12281553e70bdb1c333bd29425c9d14fb0
show more ...
|
#
90314a3f |
| 17-Oct-2023 |
Sagar Srinivas <sagar.srinivas@ibm.com> |
Reorganize the setEventReceiver code
This commit is to re-organise the code to make the setEventReceiver optional when GetTID gets called.
Currently, it is being called on every GetTID command. Thi
Reorganize the setEventReceiver code
This commit is to re-organise the code to make the setEventReceiver optional when GetTID gets called.
Currently, it is being called on every GetTID command. This is and OEM behaviour, which was implemented at - https://gerrit.openbmc.org/c/openbmc/pldm/+/41779/36
Also, setEventReceiver is a command defined in the platform Spec, so rightfully placing it under the platform handler.
Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: Ib60e9d46a8eaf4806c5ec2e9575f4e219bc80eab
show more ...
|
#
2abbce76 |
| 17-Oct-2023 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
InstanceIdDb: Move header from pldmd/ to common/
The header is used across all executables produced by the project, which makes it "common".
Change-Id: I022b179fad1de8dba2ef39fd33bc240ec73a2d33 Sig
InstanceIdDb: Move header from pldmd/ to common/
The header is used across all executables produced by the project, which makes it "common".
Change-Id: I022b179fad1de8dba2ef39fd33bc240ec73a2d33 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
#
a330b2f0 |
| 04-May-2023 |
Andrew Jeffery <andrew@aj.id.au> |
pldmd: Migrate instance ID allocation to pldm::InstanceIdDb
This removes use of `pldm::dbus_api::Requester` from around the code-base. This makes progress towards removing the DBus API entirely once
pldmd: Migrate instance ID allocation to pldm::InstanceIdDb
This removes use of `pldm::dbus_api::Requester` from around the code-base. This makes progress towards removing the DBus API entirely once all its consumers are converted to the libpldm instance ID APIs.
There was never a good reason for the code using the class to have knowledge that it was related to DBus anyway, so this is, in-effect, a double clean up improving separation of concerns.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I2d9397cae1b3c8c251c32e36ca520aad9c9b8cf6
show more ...
|
#
7c1dc7ea |
| 28-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
pldmd: move to libpldm instance ID alloc/free
Refactor the dbus_api::Requester class to be implemented in terms of libpldm's instance ID database. To make that easier to deal with we introduce a lig
pldmd: move to libpldm instance ID alloc/free
Refactor the dbus_api::Requester class to be implemented in terms of libpldm's instance ID database. To make that easier to deal with we introduce a light-weight RAII C++ binding along with a helper class for unit tests.
Change-Id: Ia03de8245dfb114e6266ba36dcf26ca4398a4ce0 Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
6da4f91b |
| 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: I61b093f75011417cc9c7acf9605200f4fa429bac Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
c453e164 |
| 21-Dec-2022 |
George Liu <liuxiwei@inspur.com> |
libpldm: Correct reference to libpldm header files
When relying on header files from external libraries, #include<> should be used instead of #include "" to avoid ambiguity.
Tested: Built pldm succ
libpldm: Correct reference to libpldm header files
When relying on header files from external libraries, #include<> should be used instead of #include "" to avoid ambiguity.
Tested: Built pldm successfully after enabling ibm-oem
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ia1997de7e0f61564055bbd837f4e24c8f14e55a5
show more ...
|
#
cb454677 |
| 29-Jun-2022 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
libpldm : Fix ver32 encoding declaration
This commit would attempt to fix the wrongly captured ver32 structure declaration in libpldm & impacted test cases.
Resolves : https://github.com/openbmc/pl
libpldm : Fix ver32 encoding declaration
This commit would attempt to fix the wrongly captured ver32 structure declaration in libpldm & impacted test cases.
Resolves : https://github.com/openbmc/pldm/issues/27
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I9dccd4377bb1ef0e7738527ff154fd75f6277f39
show more ...
|
#
79669c94 |
| 28-Apr-2021 |
Sagar Srinivas <sagar.srinivas@ibm.com> |
oem_ibm: Reset Watchdog Timer The watchdog timer is started as soon as the BMC is powered on. Host sends GetTID to BMC, BMC responds to that and sends SetEventReceiver command wi
oem_ibm: Reset Watchdog Timer The watchdog timer is started as soon as the BMC is powered on. Host sends GetTID to BMC, BMC responds to that and sends SetEventReceiver command with a specified time interval(Heartbeat). Host is supposed to send PlatformEventMessage to BMC within the elapsed interval. We use the same infrastructure as that of surveillance for implementing host watchdog. The difference between surveillance and host watchdog is that- -> Surveillance is host monitoring the BMC if it is functioning and its us up and running and if the BMC fails to respond to ping from host, then host will reset the BMC -> Watchdog is BMC monitoring if the host boots without failures, and if host does not respond to pings from BMC after the watchdog interval, then the watchdog app triggers a host dump. Watchdog monitoring is followed by surveillance. This commit adds change to reset the watchdog timer on receiving PlatformEventMessage for heartbeat elapsed time from Host Tester with pldmtool: ./pldmtool raw -d 0x80 0x02 0x0A 0x01 0x01 0x06 0x01 0x01 Request Message: 08 01 80 02 0a 01 01 06 01 01 Received Msg 08 01 80 02 0a 01 01 06 01 01 Sending Msg 00 02 0a 00 00 Received Msg 08 01 00 02 0a 00 00 Response Message: 08 01 00 02 0a 00 00 Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: I9fea658c3f2d3086ad2574ef827a5154dac6960e
show more ...
|
#
a6a8ccd9 |
| 01-Apr-2021 |
Sagar Srinivas <sagar.srinivas@ibm.com> |
PLDM: implement surveillance between Host and bmc This commit is to implement surveillance between host and bmc, wherein host monitors if bmc is up and running through constant pings
PLDM: implement surveillance between Host and bmc This commit is to implement surveillance between host and bmc, wherein host monitors if bmc is up and running through constant pings(by sending Platform EventMessages) sent from host to BMC. And if BMC fails to respond to the pings, then BMC will be reset using the KCS interface. 1. Host->BMC - GetTID 2. BMC->Host - Respond to GetTID, SetEventReceiver 3. Host->BMC - Respond to SetEventReceiver 4. BMC->Host - Send PlatformEventMessage after the elapsed time interval(specified with SetEventReceiver command) 4. Host->BMC - If BMC fails to send respond to host within specified interval, Host resets BMC via the KCS interface Tested with PLDMTOOL: SetEventReceiver command: root@rain127bmc:/tmp# ./pldmtool base GetTID -m 8 Received Msg 08 01 81 00 02 Sending Msg 01 00 02 00 01 { "Response": 1 } platformEventMessage command(which will be received by host): root@rain118bmc:/tmp# ./pldmtool raw -d 0x80 0x02 0x0A 0x01 0x01 0x06 0x01 0x01 Request Message: 08 01 80 02 0a 01 01 06 01 01 Received Msg 08 01 80 02 0a 01 01 06 01 01 eventClass Checking Sending Msg 00 02 0a 00 00 Response Message: 08 01 00 02 0a 00 00 Received Msg 08 01 00 02 0a 00 00 Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: Iac90b2233a873a54504ffa649d324d30525b7ce3
show more ...
|
#
5327988e |
| 28-Apr-2021 |
Tom Joseph <rushtotom@gmail.com> |
tests: Organize the test code to make it modular The unit test code for libpldmresponder, host-bmc and common is in a shared test directory. This patch separates the test code to the
tests: Organize the test code to make it modular The unit test code for libpldmresponder, host-bmc and common is in a shared test directory. This patch separates the test code to the respective directory. Tested: Ran the unit test and tests passed. Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: I31d53681fa6c0d8bc6eb7c4e3341aaff4bc341ee
show more ...
|