0fd6a092 | 31-May-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
oem-ibm: Setting the slot power state to Off
The commit sets the slot power state to off when the host powers off. The host only powers on the slots and the BMC needs to turn all the slots off when
oem-ibm: Setting the slot power state to Off
The commit sets the slot power state to off when the host powers off. The host only powers on the slots and the BMC needs to turn all the slots off when the host powers off.
Tested by powering off and using busctl commands to verify the power state.
Change-Id: I3eb531105ea58e06d0dc5ffdf35491e2e0c63b2e Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
8394c457 | 06-Apr-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
oem-ibm : File I/O read-write with length 0
This commit implements pldm to dishonor file I/O read/write for length zero. Additional changes: - Implemented check for response code of encode/decode AP
oem-ibm : File I/O read-write with length 0
This commit implements pldm to dishonor file I/O read/write for length zero. Additional changes: - Implemented check for response code of encode/decode APIs and along with appropriate error message. - Added check for performing read operation from a file size 0.
Tested: Functional testing passed.
Change-Id: Ibab1981202775b672b3d50040884e9db4c16d5c2 Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
89644441 | 31-Mar-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
libpldmresponder: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti
libpldmresponder: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern document [1]. Additionally, based on the requirement this commit adds more debug information to logs.
[1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#ill-defined-data-structuring-in-lg2-message-strings
Change-Id: I7dc5c308a8cd76573995e07d01d1a6037bca31ba Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
a85c69d3 | 09-Jan-2024 |
Gilbert Chen <gilbert.chen@arm.com> |
requester: Add coroutine API
Added coroutine API to Handler using stdexec to help send and receive messages in one function call.
For example, to get all PDRs from terminus needs multiple getPDR co
requester: Add coroutine API
Added coroutine API to Handler using stdexec to help send and receive messages in one function call.
For example, to get all PDRs from terminus needs multiple getPDR commands. Except first getPDR commands, the following getPDR command request data(e.g. dataTransferHandle) needs the previous getPDR command response data(e.g. nextDataTransferHandle). By using C++ co_await, the code to get all PDRs can straightforward be implemented by a while loop.
Pseudo code example: do { auto rc = co_await getPDR(dataTransferHndl, ...);
// update dataTransferHndl for next getPDR command dataTransferHndl = nextDataTransferHndl;
} while(...);
Signed-off-by: Gilbert Chen <gilbert.chen@arm.com> Signed-off-by: Khang Nguyen <khangng@amperecomputing.com> Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I7b47d15ac15f6ae661ec94dca6a281844b939a44
show more ...
|
087a751f | 06-Apr-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
pldmd, requester, softoff & utilities: Improving logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as
pldmd, requester, softoff & utilities: Improving logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern document [1]. Additionally, based on the requirement this commit adds more debug information to logs.
[1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#ill-defined-data-structuring-in-lg2-message-strings
Change-Id: I230e9e1404db8c92c81e2f872183d691c91ff16c Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
fc84f634 | 06-Apr-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
oem-ibm: Improving logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern
oem-ibm: Improving logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern document [1]. Additionally, based on the requirement this commit adds more debug information to logs.
[1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#ill-defined-data-structuring-in-lg2-message-strings
Change-Id: I24ca21de35d5a1a9b3cc64b28a149e4c213055f9 Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
18145f7d | 11-Apr-2022 |
Sagar Srinivas <sagar.srinivas@ibm.com> |
oem_ibm: Implement timer for Surveillance Pings
This commit introduces a timer for surveillance pings sent by the remote terminus to monitor the BMC. If a ping is not received within 120 seconds, an
oem_ibm: Implement timer for Surveillance Pings
This commit introduces a timer for surveillance pings sent by the remote terminus to monitor the BMC. If a ping is not received within 120 seconds, an informational error will be logged.
Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: Ia52ed2461b2c2f8ea0102e60ed2a22c7691b2d2a
show more ...
|
56c78807 | 07-May-2024 |
Kamalkumar Patel <kamalkumar.patel@ibm.com> |
oem-ibm: Fix size corruption during DMA transfer
When the remote terminus performs read/write operations on BMC utilizing DMA(Direct Memory Access), the BMC verifies the data length to be transferre
oem-ibm: Fix size corruption during DMA transfer
When the remote terminus performs read/write operations on BMC utilizing DMA(Direct Memory Access), the BMC verifies the data length to be transferred and segments it into chunks if the length exceeds the maximum allowable size (8384512 byte) by DMA. This modification addresses an issue in PLDM where it incorrectly reports data transfer status to the remote terminus, including the leftover length in its response, which is erroneous. With this enhancement, PLDM now delivers accurate responses with the appropriate length specified.
Tested: Tested IPL flow on simulator.
Change-Id: I48d4f825f1e049b06f291e401a02f8dacc1ad970 Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
show more ...
|
15ce5a18 | 07-May-2024 |
Kamalkumar Patel <kamalkumar.patel@ibm.com> |
oem-ibm: Adding entity path correction function
This commit introduces enhancements to rectify entity paths over DBus. Formerly, the conventional DBus path involved appending an instance number, suc
oem-ibm: Adding entity path correction function
This commit introduces enhancements to rectify entity paths over DBus. Formerly, the conventional DBus path involved appending an instance number, such as 'system' becoming 'system1', 'motherboard' becoming 'motherboard1', and 'chassis' becoming 'chassis1'. This function is designed to align with IBM's specific use case, ensuring the numbering system adheres appropriately.
Testing: Unit tests passed
Change-Id: I671f8486078054b44110ffa2cbf169c63d164cf1 Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
show more ...
|
516122e0 | 07-May-2024 |
Kamalkumar Patel <kamalkumar.patel@ibm.com> |
Add Json Config support for entity to DBus string
The entity map comprises both entity types and their corresponding names, essential for generating unique D-Bus paths for each entity. However, chal
Add Json Config support for entity to DBus string
The entity map comprises both entity types and their corresponding names, essential for generating unique D-Bus paths for each entity. However, challenges arise due to variations in path generation across companies, often dictated by differing entity types. To address this, enabling configurability of EntityID becomes imperative, empowering communities to tailor configurations to their specific use cases.
Testing: Unit tests passed
Change-Id: I3981fde64bd00940caa5067a9472fd948e74cbf0 Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
show more ...
|
4e69d252 | 10-May-2024 |
Kamalkumar Patel <kamalkumar.patel@ibm.com> |
host-bmc: refine remote terminus functionality
This commit introduces support for migrating remote terminus-related functionalities into the host-bmc directory, a move aimed at optimizing remote ter
host-bmc: refine remote terminus functionality
This commit introduces support for migrating remote terminus-related functionalities into the host-bmc directory, a move aimed at optimizing remote terminus operations for future endeavors. By consolidating these functionalities, tracking and implementing future enhancements become more streamlined and manageable.
Change-Id: I52b6ced7acacb004b6055ae710193a959d986659 Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
show more ...
|
76f2c60a | 28-Mar-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
common & fw-update: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the an
common & fw-update: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern document [1]. Additionally, based on the requirement this commit adds more debug information to logs.
[1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#ill-defined-data-structuring-in-lg2-message-strings
Change-Id: I1481c025b6dc6a9200a13de38a4fe55b81bb25ea Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
d6e10ada | 28-Mar-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
host-bmc: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern
host-bmc: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern document [1]. Additionally, based on the requirement this commit adds more debug information to logs.
[1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#ill-defined-data-structuring-in-lg2-message-strings
Change-Id: I75a2b54ac1d363cfb675f29e811ab341046fbccd Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
9e0e826c | 15-Apr-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
oem-ibm: Add util API to get the connector object paths
This commit adds a common API to find all the port object paths if present under a connected adapter.
Change-Id: I340838570a3c5add02ef92ecac3
oem-ibm: Add util API to get the connector object paths
This commit adds a common API to find all the port object paths if present under a connected adapter.
Change-Id: I340838570a3c5add02ef92ecac3df9278b0faffb Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
2ec8269f | 29-Apr-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
Add getSubtreePaths utility functions
Added a getSubTreePaths utility function that can return the subtree dbus paths that implement the particular dbus interface.
Change-Id: Ifb8f6d571bcb2291ca3a4
Add getSubtreePaths utility functions
Added a getSubTreePaths utility function that can return the subtree dbus paths that implement the particular dbus interface.
Change-Id: Ifb8f6d571bcb2291ca3a47f285ebf46261646496 Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
ba741d5f | 08-May-2024 |
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
Change-Id: Ib77ec68be0c5ffd73a8dcc140e22f011191c9de5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
44524a5f | 14-Feb-2022 |
Gilbert Chen <gilbert.chen@arm.com> |
requester: Modified MctpDiscovery class
Modified MctpDiscovery class to take list of managers instead of single fwManager. The change is for adding platform-mc manager. Added loadStaticEndpoints API
requester: Modified MctpDiscovery class
Modified MctpDiscovery class to take list of managers instead of single fwManager. The change is for adding platform-mc manager. Added loadStaticEndpoints API for MCTP layer which doesn't implement /xyz/openbmc_project/MCTP/Endpoint.Interface
The patch is part of implementation of design document below. https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/47252
Signed-off-by: Gilbert Chen <gilbert.chen@arm.com> Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I1e1673504583a87f2a9bc3adf76fb49c2dc30254
show more ...
|
a13bf143 | 24-Apr-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Remove dead host_pdr_handler code & json-file
The content from host_fru.json is being parsed and parents map is being populated with that data, but the parents map isn't being used anywhere in the c
Remove dead host_pdr_handler code & json-file
The content from host_fru.json is being parsed and parents map is being populated with that data, but the parents map isn't being used anywhere in the code base making it a dead code, so removing the json file & also the code that parses it.
This part of code was once added to normalize the PDR's, but now we have a better/efficient/dynamic way to normalize the PDR's which does not need any JSON files & static configuration.So we don't need this code anymore.
Tested: Code builds & unit tests are passed.
Change-Id: I3c9af49ef3644c08d80e207b86614de1b5b919c2 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
cea52d9b | 21-Mar-2024 |
nothingIIersonal <velochimc@mail.ru> |
pldmtool: Add NumericSensor PDR
Added NumericSensor PDR to provide general sensor information, such as the factors that are used for converting raw sensor readings to normalized units, etc.
Tested
pldmtool: Add NumericSensor PDR
Added NumericSensor PDR to provide general sensor information, such as the factors that are used for converting raw sensor readings to normalized units, etc.
Tested result: ``` root@bmc:~# pldmtool platform getPdr -m9 -t numericSensor | head [ ,,,,,{ "nextRecordHandle": 1301, "responseCount": 105, "recordHandle": 1300, "PDRHeaderVersion": 1, "PDRType": "Numeric Sensor PDR", "recordChangeNumber": 0, "dataLength": 95, "PLDMTerminusHandle": 100, ```
Change-Id: If64fc9d538dc673dacfba6e4c2dd2360cfe50a68 Signed-off-by: Ruslan Magomedov <velochimc@mail.ru>
show more ...
|
bb405a70 | 25-Apr-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
Remove unused variables defined
The commit removes unused private variables defined. This also helps in clang-tidy check clang-diagnostic-unused-private- field error when enabled.
Change-Id: I6e075
Remove unused variables defined
The commit removes unused private variables defined. This also helps in clang-tidy check clang-diagnostic-unused-private- field error when enabled.
Change-Id: I6e075746f4f25e0bf9e63d319e96834789ee793c Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
13d6761f | 11-Jul-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Remove repeated branches
Removes repeated branches in if/else if/else chains,consecutive repeated branches in switch statements and identical true and false branches in conditional operators. This a
Remove repeated branches
Removes repeated branches in if/else if/else chains,consecutive repeated branches in switch statements and identical true and false branches in conditional operators. This also helps in clang-tidy checks.
Change-Id: Ia9c27163ae07054fdceb65c14fea13052c5160a4 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
09a89821 | 24-Apr-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
common: modernize getCurrentSystemTime() API
Leverage `std::format` from c++20, which provides a more concise and readable way to format strings compared to `std::stringstream`. Also use zoned time
common: modernize getCurrentSystemTime() API
Leverage `std::format` from c++20, which provides a more concise and readable way to format strings compared to `std::stringstream`. Also use zoned time from c++20 chrono, which makes the API to handle different time zones if needed & is more accurate.
Tested : Before the fix the API returns: 2024-04-24 UTC 05:19:00.533100 With this patch the API returns: 2024-04-24 UTC 05:19:00.533266342
Change-Id: Ida3ae3bdd8901422303a1812a30346d19f6bb5cb Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
93f1e00f | 11-Jul-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Replace sizeof() with .size()
This change replaces the usage of sizeof() with .size() to calculate size of arrays and expressions of STL container types. Using .size() with containers like std::vect
Replace sizeof() with .size()
This change replaces the usage of sizeof() with .size() to calculate size of arrays and expressions of STL container types. Using .size() with containers like std::vector, std::array, and std::string improves code readability and adheres to modern C++ standards. This also helps in clang-tidy checks.
Change-Id: I1e9e6e453a3b9218682098887763a4908f186815 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
ace4e14d | 24-Apr-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Deprecate the support for x86 sdk
OpenBMC as a project has moved away from using yocto x86 sdks for unit testing. Instead now the preferred way to build and test code is by two ways:
1. Leveraging
Deprecate the support for x86 sdk
OpenBMC as a project has moved away from using yocto x86 sdks for unit testing. Instead now the preferred way to build and test code is by two ways:
1. Leveraging the meson subproject support 2. Using openbmc docker container
Since x86 sdks needed some weird hacks in the code base like figuring out the linker arguments ourselves & running custom bash commands from the meson build files. Also with changing yocto code base, its a large maintainer burden to make sure this support works.
Tested: Code builds & unit tests are passed with both the approaches mentioned above.
Change-Id: Iaf55e2c003ffd9ee1a295de5bdfd14d81222e94b Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
07a07e2a | 24-Apr-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix a potential crash due to unbound array access
It was reported that, there is an inaccurate check in host_pdr_handler code that could lead to an unbound access of an array resulting in pldm crash
Fix a potential crash due to unbound array access
It was reported that, there is an inaccurate check in host_pdr_handler code that could lead to an unbound access of an array resulting in pldm crash. This commit aims at fixing it.
Resolves openbmc/pldm/#36
Change-Id: I1bba25f5b1cad55a30ce956f83b8c15b93149219 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|