27a022ca | 10-Aug-2022 |
Andrew Jeffery <andrew@aj.id.au> |
libpldm: Migrate to subproject
Organize files in libpldm to make it a subproject
In the current state, libpldm is not readily consumable as a subproject.This commit does all the necessary re-organi
libpldm: Migrate to subproject
Organize files in libpldm to make it a subproject
In the current state, libpldm is not readily consumable as a subproject.This commit does all the necessary re-organisation of the source code to make it work as a subproject.
There are no .c/.h files changes in this commit, only meson changes and re-organising the code structure.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I20a71c0c972b1fd81fb359d604433618799102c6
show more ...
|
06fca441 | 17-Aug-2022 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Add missing dependencies
There are multiple places where the dependencies are explicitly missing & its working as of today because of the way the code was organised.
The intent behind this commit i
Add missing dependencies
There are multiple places where the dependencies are explicitly missing & its working as of today because of the way the code was organised.
The intent behind this commit is add the missing dependencies explicitly. This commit fixes : 1. common tests depends on header files in common folder, but it is not added as a dependency, fixing this by adding libpldmutils as the dependency. 2. fw-update tests depends on header files in common folder as well, but it is not added as a dependency , fixing this by adding libpldmutils as the dependency. 3. requester test code includes header files in the pldmd folder, but that is not added as a dependency as well, fixing this by adding include_directories and making it a dependency.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I102ea5096dd9edfc876fd60df7628fc061e085f2
show more ...
|
84b790cb | 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: I8e2242adb79be342562c9b7f3d2153dfdf578085
show more ...
|
ca1998f3 | 06-Jun-2022 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
update clang-format
This commit would update the repo's clang-format file to the latest of docs/style/cpp/clang-format file.
Following is the new change that is added: Brad : clang-format: cpp: r
update clang-format
This commit would update the repo's clang-format file to the latest of docs/style/cpp/clang-format file.
Following is the new change that is added: Brad : clang-format: cpp: remove empty lines
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: Ieaadd8a1cd779c9c12adf6d065cc1f9e9a8fa37b
show more ...
|
357b72dc | 13-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`. There was one case of an implicit conversion from a pointer to a boolean, which I think was an unintended parameter passing, and was cleaned up.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5eac859a083e014f13794703c1c194e7f3d2a35d
show more ...
|
9fffea2c | 27-Oct-2021 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Change the send Buffer size dynamically
On a Linux system the send buffer size has defaulted to around 90k, and when a pldm message is sent via the pldm_send() that is bigger than 90k, we get an err
Change the send Buffer size dynamically
On a Linux system the send buffer size has defaulted to around 90k, and when a pldm message is sent via the pldm_send() that is bigger than 90k, we get an error ENOBUFS (No buffer space avilable).
This commit would dynamically change the socket parameter (SO_SNDBUF) to set the new maximum socket send buffer size so that we can successfully send the message.
Tested By:
1. hard coded the current buffer size value to 10 and forced the buffer size to be increase for mutiple commands & was able to power on the host with out any problems.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I5f7a3948ea019b4dc983cf5e1926cfc128c02084
show more ...
|
1695b66d | 24-Nov-2021 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
fw-update: tests: add missing dependency
The tests added with ef90b0d3b have an unlisted dependency on gmock, which breaks the build when the gtest dependency is satisfied using the suproject. Add
fw-update: tests: add missing dependency
The tests added with ef90b0d3b have an unlisted dependency on gmock, which breaks the build when the gtest dependency is satisfied using the suproject. Add the missing dependency.
Change-Id: I352c8677c41d3763e252c92f590b1cbf68a5a612 Fixes: ef90b0d3b882766969afa2c2c430e1902bbc5e57 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
b7e083ea | 26-Oct-2021 |
Tom Joseph <rushtotom@gmail.com> |
fw-update : Optimize passing infra parameters
Refactor UpdateManager and DeviceUpdater to optimize passing the D-Bus event loop handle, handler for requester and instance ID requester.
Signed-off-b
fw-update : Optimize passing infra parameters
Refactor UpdateManager and DeviceUpdater to optimize passing the D-Bus event loop handle, handler for requester and instance ID requester.
Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: I1860ffc49513d941af372423a197b1d42eda6e36
show more ...
|
fb3bc06f | 17-Aug-2021 |
Tom Joseph <rushtotom@gmail.com> |
fw-update: Firmware discovery of MCTP endpoints
Tested:
a) Verified MCTP endpoints are discovered by PLDM and fetching the firmware inventory commands. b) PLDM firmware update successful after u
fw-update: Firmware discovery of MCTP endpoints
Tested:
a) Verified MCTP endpoints are discovered by PLDM and fetching the firmware inventory commands. b) PLDM firmware update successful after uploading the package, which depends on the firmware inventory commands. c) Verified MCTP endpoints are discovered irrespective of the startup order with the MCTP control application.
Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: I7ee9aed40433a8e5a4ebb8e61f917ec82dde9c35
show more ...
|
4d8d5770 | 17-Aug-2021 |
Tom Joseph <rushtotom@gmail.com> |
fw-update: Implement firmware UpdateManager
The UpdateManager parses the PLDM package and co-ordinates with the DeviceUpdater to update all the PLDM enabled firmware devices.
Tested: Completed firm
fw-update: Implement firmware UpdateManager
The UpdateManager parses the PLDM package and co-ordinates with the DeviceUpdater to update all the PLDM enabled firmware devices.
Tested: Completed firmware update using PLDM for an FD
Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: Ia87675e0a88cb1f72ad82934e539739db193b9f6
show more ...
|
ef90b0d3 | 17-Aug-2021 |
Tom Joseph <rushtotom@gmail.com> |
fw-update: Implement DeviceUpdater
The DeviceUpdater class implements the firmware update of a FD. The firmware update flow is implemented as per DSP0267_1.0.0 and DSP0267_1.0.1. All the components
fw-update: Implement DeviceUpdater
The DeviceUpdater class implements the firmware update of a FD. The firmware update flow is implemented as per DSP0267_1.0.0 and DSP0267_1.0.1. All the components applicable for the FD is updated. This patch doesn't handle error response codes and the further actions to the firmware update flow. The optional features of package like package data and device metadata is not included in this patch. Timeouts and retries of firmware update commands is not included in this patch.
Tested: Added unit tests for the firmware update commands where PLDM UA is the responder like RequestFirmwareData, TransferComplete, VerifyComplete and ApplyComplete.
Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: If686ca005230d6debc0a6fd2ee73184bd3c28ee1
show more ...
|
1630f399 | 29-Jun-2021 |
Tom Joseph <rushtotom@gmail.com> |
fw-update: Implement firmware update package parser
PackageParser implements parsing the common elements across version 1 and version 2 of the PackageHeader. PackageParserV1 handles parsing the pack
fw-update: Implement firmware update package parser
PackageParser implements parsing the common elements across version 1 and version 2 of the PackageHeader. PackageParserV1 handles parsing the package header version 1 as defined in DSP0267_1.0.0 and DSP0267_1.0.1.
Tested: Unit tests added
Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: Iddabd435755f462c042a85a286b1b0a50eb346b1
show more ...
|
75356c1a | 20-Jun-2021 |
Tom Joseph <rushtotom@gmail.com> |
fw-update: Implement inventory manager
1. Discover firmware devices that implement fw update specification 2. Implements request/response for QueryDeviceIdentifiers command 3. Implements request/res
fw-update: Implement inventory manager
1. Discover firmware devices that implement fw update specification 2. Implements request/response for QueryDeviceIdentifiers command 3. Implements request/response for GetFirmwareParameters command 4. Enumerates device identifiers and component information to be used for fw-update
Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: Ifa035c801a7c62bac9a7e947ed4a43d48f85a4ed
show more ...
|