- Jun 21, 2024
-
-
Manojkiran Eda authored
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool. [1]: https://github.com/codespell-project/codespell Change-Id: I16082f7e664541e98fa1cae2b2bcce59dd9cb250 Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com>
-
Manojkiran Eda authored
There are a lot of warnings reported by markdownlint in the CI, this commit aims at fixing all of them. Tested : No more warnings reported by markdownlint in the CI. Change-Id: I92d24bc0efd230dd0974ff49853ef928caf1febd Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com>
-
Riya Dixit authored
This commit adds value_name json key to BIOS attribute that allows user to enable/disable the dynamic deallocation of memory based on predictive memory fail events. Tested: Verified the BIOS attribute with get bios attribute command from pldmtool. Change-Id: I913d2062c1d7af024a447f9eb4e0289fa7ebdf12 Signed-off-by:
Riya Dixit <riyadixitagra@gmail.com>
-
Kamalkumar Patel authored
This commit introduces essential D-Bus infrastructure support for hosting the `Item.CPUCore` D-Bus object. Additionally, it includes getter and setter functions to enable get/set properties within the `CPUCore` interface, such as core count and microcode. Testing: Unit test passed Change-Id: I728522b34e96ee7d6609efb5746b40cf923812e8 Signed-off-by:
Kamalkumar Patel <kamalkumar.patel@ibm.com>
-
Andrew Jeffery authored
The non-deprecated paths for OEM header files use a directory hierarchy that reflects the OEM in question. The fix was generated using the following command with the coccinelle patch from [1]: ``` $ spatch \ --sp-file ../libpldm/origin/evolutions/current/oem-ibm-header-compat.cocci \ --in-place \ $(git ls-files | grep -E '\.[ch](pp)?') ``` [1]: https://gerrit.openbmc.org/c/openbmc/libpldm/+/72202 Change-Id: Iabea7a20e6e59b9671abb7b4f838215c50873594 Signed-off-by:
Andrew Jeffery <andrew@codeconstruct.com.au>
-
Andrew Jeffery authored
libpldm is now an external dependency rather than an in-tree library. Adjust the includes accordingly. Change-Id: I97218ec9cf7ffb7afa98e78c01dc9d030271c3f4 Signed-off-by:
Andrew Jeffery <andrew@codeconstruct.com.au>
-
- Jun 20, 2024
-
-
Kamalkumar Patel authored
This commit aims at migrating the custom_dbus files from the host_bmc directory to the host-bmc/dbus directory. This makes the code cleaner since it abstracts all the dbus objects hosting code to the dbus folder Change-Id: Ia310e8a16f9489060ef228496d364c602a4fa6a8 Signed-off-by:
Kamalkumar Patel <kamalkumar.patel@ibm.com>
-
Patrick Williams authored
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: I3aa6b1e86072f2af81e7792bc4a13a012c359187 Signed-off-by:
Patrick Williams <patrick@stwcx.xyz>
-
Andrew Jeffery authored
Fixes the following error when building with gmock supplied by subproject: ``` FAILED: common/test/pldm_utils_test.p/pldm_utils_test.cpp.o ccache c++ -Icommon/test/pldm_utils_test.p -I../subprojects/googletest/googletest/include -I../subprojects/googletest/googletest -Isubprojects/googletest/__CMake_build -I../subprojects/googletest/__CMake_build -Isubprojects/googletest -I../subprojects/googletest -Isubprojects/phosphor-dbus-interfaces/gen -I../subprojects/phosphor-dbus-interfaces/gen -I../subprojects/sdbusplus/include -Isubprojects/phosphor-logging/lib/include -I../subprojects/phosphor-logging/lib/include -I. -I.. -I/usr/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++23 -O2 -g -Wno-psabi -DLIBPLDMRESPONDER -DOEM_IBM -include /home/andrew/src/openbmc.org/openbmc/pldm/build/config.h -DBOOST_ASIO_DISABLE_THREADS -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -pthread -isystem../subprojects/nlohmann_json/single_include -isystem../subprojects/libpldm/include -isystemsubprojects/libpldm/include -isystem../subprojects/googletest/googletest -isystem../subprojects/googletest/googletest/include -MD -MQ common/test/pldm_utils_test.p/pldm_utils_test.cpp.o -MF common/test/pldm_utils_test.p/pldm_utils_test.cpp.o.d -o common/test/pldm_utils_test.p/pldm_utils_test.cpp.o -c ../common/test/pldm_utils_test.cpp In file included from ../common/test/pldm_utils_test.cpp:2: ../common/test/mocked_utils.hpp:3:10: fatal error: gmock/gmock.h: No such file or directory 3 | #include <gmock/gmock.h> | ^~~~~~~~~~~~~~~ compilation terminated. ``` Change-Id: I56cedd3df2d07f850fc0d13599ed52f99981e35b Signed-off-by:
Andrew Jeffery <andrew@codeconstruct.com.au>
-
Gilbert Chen authored
Added requester::sendRecvPldmMsg awaiter type to be able to send and receive PLDM message by coroutine. Added TerminusManager to discover terminus from EID list updated by MCTPDiscovery class. The TerminusManager will initialize TID. Signed-off-by:
Gilbert Chen <gilbert.chen@arm.com> Signed-off-by:
Thu Nguyen <thu@os.amperecomputing.com> Change-Id: Ifa5bdfff50648f1d7fba8710e160de662e8f9e06
-
- Jun 19, 2024
-
-
Kamalkumar Patel authored
This commit adds support to eliminating duplication of datatypes which enhancing clarity and manageability throughout the pldm repository. This is rearrangement of declaration of data types so it can be used host-bmc and oem layer both the places. Change-Id: Ieb1232884b8e2128e8bf97dafd01e4ad5524ede0 Signed-off-by:
Kamalkumar Patel <kamalkumar.patel@ibm.com>
-
- Jun 17, 2024
-
-
Manojkiran Eda authored
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool. [1]: https://github.com/codespell-project/codespell Change-Id: I539a0c5baa63be240fc1c76367c0af338dd89c7b Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com>
-
- Jun 14, 2024
-
-
Archana Kakani authored
PLDM receives topology data in IBM proprietary format from remote terminus. As part of this commit, we are parsing the topology and cable data and caching the information. Tested: Power ON/OFF successful Change-Id: I15a563aeecdd2b193fbc40b23dc225456b882be2 Signed-off-by:
Archana Kakani <archana.kakani@ibm.com>
-
- Jun 11, 2024
-
-
George Liu authored
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
-
- Jun 10, 2024
-
-
Archana Kakani authored
Converting following bios attribute json keys to lower snake case displayName --> display_name helpText --> help_text readOnly --> read_only Tested: Power on/off Gtest passed Change-Id: Iad88ed7bc381d66182c99e31e7d385f65750e0ed Signed-off-by:
Archana Kakani <archana.kakani@ibm.com>
-
Archana Kakani authored
Removing default string length from BIOS json configuration files. String BIOS attributes defined in BIOS configuration json file contains "default_string_length". Providing default string length manually is error prone. As String length can be calculated and populated easily in the code, removing json support for default_string_length. Tested: Power on/off Gtests passed. Change-Id: I7604d8ccedd60a39ba07e1df67ff5712f31e7f6e Signed-off-by:
Archana Kakani <archana.kakani@ibm.com>
-
Archana Kakani authored
Currently bios attributes are added in three json configuration files based on the attribute type(integer, string, enum). Combining all the attributes in single bios attribute json file to organize the attributes based on the usage pattern. Tested: BMC powered on successfully Unit tests passed Change-Id: I42cc7c2394918e48d27dca2041f8ce00509c565a Signed-off-by:
Archana Kakani <archana.kakani@ibm.com>
-
Riya Dixit authored
This commit removes the unnecessary type casting of values of the journal logs based on supported types mentioned in LG2 documentation [1]. Testing: Verified the debug traces to correct. ''' For Instance: Earlier - error(”TYPE = {TYPE} “, “TYPE”, static_cast<unsigned>(PLDM_STATE_EFFECTER_PDR)); Journal trace - May 27 08:16:51 p10bmc pldmd[931]: TYPE = 11 After Correction - error(”TYPE = {TYPE}“, “TYPE”, PLDM_STATE_EFFECTER_PDR); Journal trace - May 27 08:16:51 p10bmc pldmd[931]: TYPE = Enum(11) ''' [1]: https://github.com/openbmc/phosphor-logging/blob/master/docs/structured-logging.md#lg2 Change-Id: Ia649ecd4ecbb73c421f7844885f58a6835805719 Signed-off-by:
Riya Dixit <riyadixitagra@gmail.com>
-
Manojkiran Eda authored
During the PDR exchange, normalization causes the container IDs of remote entities to change. Therefore, checking for a predefined container ID from a remote terminus for sensor events does not provide any benefit. This commit adds support for optionally skipping the check for remote container id for sensor events when needed. Tested: Unit tests passed. Change-Id: I871044815194b7aed507c105ae04f1418e084de1 Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com>
-
- Jun 05, 2024
-
-
Riya Dixit authored
This commit adds BIOS attribute for allowing user to enable/disable the dynamic deallocation of memory. Tested: Verified the BIOS attribute with get bios attribute command from pldmtool. Change-Id: Ife96c4544adf142e6c354e0dbd658d96625b8c13 Signed-off-by:
Riya Dixit <riyadixitagra@gmail.com>
-
- Jun 03, 2024
-
-
Kamalkumar Patel authored
This commit removes redundant traces that were unnecessarily flooding the FFDC logs. The excess trace information could potentially mislead users, so it's being removed to prevent confusion. Change-Id: I54e68ac611d3d8f8e13090ab1b6eb521d9d28969 Signed-off-by:
Kamalkumar Patel <kamalkumar.patel@ibm.com>
-
Pavithra Barithaya authored
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>
-
Riya Dixit authored
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>
-
- May 30, 2024
-
-
Riya Dixit authored
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>
-
- May 28, 2024
-
-
Gilbert Chen authored
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
-
- May 27, 2024
-
-
Riya Dixit authored
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>
-
Riya Dixit authored
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>
-
- May 21, 2024
-
-
Sagar Srinivas authored
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
-
- May 20, 2024
-
-
Kamalkumar Patel authored
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>
-
- May 13, 2024
-
-
Kamalkumar Patel authored
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>
-
Kamalkumar Patel authored
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>
-
Kamalkumar Patel authored
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>
-
Riya Dixit authored
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>
-
Riya Dixit authored
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>
-
- May 11, 2024
-
-
Pavithra Barithaya authored
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>
-
Pavithra Barithaya authored
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>
-
- May 08, 2024
-
-
Patrick Williams authored
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>
-
Gilbert Chen authored
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
-
- May 07, 2024
-
-
Manojkiran Eda authored
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>
-
- Apr 27, 2024
-
-
nothingIIersonal authored
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>
-