/openbmc/pldm/requester/test/ |
H A D | mctp_endpoint_discovery_test.cpp | 14 auto& bus = pldm::utils::DBusHandler::getBus(); in TEST() 15 pldm::MockManager manager; in TEST() 19 auto mctpDiscoveryHandler = std::make_unique<pldm::MctpDiscovery>( in TEST() 20 bus, std::initializer_list<pldm::MctpDiscoveryHandlerIntf*>{&manager}); in TEST() 26 auto& bus = pldm::utils::DBusHandler::getBus(); in TEST() 27 pldm::MockManager manager1; in TEST() 28 pldm::MockManager manager2; in TEST() 33 auto mctpDiscoveryHandler = std::make_unique<pldm::MctpDiscovery>( in TEST() 34 bus, std::initializer_list<pldm::MctpDiscoveryHandlerIntf*>{ in TEST() 41 auto& bus = pldm::utils::DBusHandler::getBus(); in TEST() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | base.h | 19 /** @brief PLDM Types 32 /** @brief PLDM Commands 47 /** @brief PLDM base codes 81 /** @brief PLDM transport protocol type 90 * The different message types supported by the PLDM specification. 93 PLDM_RESPONSE, //!< PLDM response 94 PLDM_REQUEST, //!< PLDM request 96 PLDM_ASYNC_REQUEST_NOTIFY, //!< Unacknowledged PLDM request messages 126 /** @brief Minimum length of response for a optional PLDM command 128 * For a optional PLDM command, the command handler might not be [all …]
|
H A D | transport.h | 10 #include <libpldm/pldm.h> 17 * @brief Waits for a PLDM event. 19 * @pre The pldm transport instance must be initialised; otherwise, 34 * @brief Asynchronously send a PLDM message. Control is immediately returned to 37 * @pre The pldm transport instance must be initialised; otherwise, 42 * @param[in] ctx - pldm transport instance 43 * @param[in] tid - destination PLDM TID 44 * @param[in] pldm_msg - caller owned pointer to PLDM msg. If this is NULL, 46 * @param[in] msg_len - size of PLDM msg. If this is less than the minimum size 47 * of a PLDM msg PLDM_REQUESTER_NOT_REQ_MSG is returned. [all …]
|
H A D | pldm.h | 42 * @brief Send a PLDM request message. Wait for corresponding response message, 47 * @param[in] pldm_req_msg - caller owned pointer to PLDM request msg 48 * @param[in] req_msg_len - size of PLDM request msg 49 * @param[out] pldm_resp_msg - *pldm_resp_msg will point to PLDM response msg, 53 * the size of the PLDM response msg. 63 * @brief Send a PLDM request message, don't wait for response. Essentially an 70 * @param[in] pldm_req_msg - caller owned pointer to PLDM request msg 71 * @param[in] req_msg_len - size of PLDM request msg 80 * data is a PLDM response message that matches eid and instance_id. 84 * @param[in] instance_id - PLDM instance id of previously sent PLDM request msg [all …]
|
/openbmc/docs/designs/ |
H A D | pldm-stack.md | 1 # PLDM stack on OpenBMC 16 This design aims to employ Platform Level Data Model (PLDM), a standard 17 application layer communication protocol defined by the DMTF. PLDM draws inputs 18 from IPMI, but it overcomes most of the latter's limitations. PLDM is also 21 channels, by defining hardware bindings. The solution of PLDM over MCTP also 24 PLDM's purpose is to enable all sorts of "inside the box communication": BMC - 30 PLDM is designed to be an effective interface and data model that provides 33 fan sensors can have a PLDM representation that can be used to monitor and 34 control the platform using a set of PLDM messages. PLDM defines data 37 PLDM groups commands under broader functions, and defines separate [all …]
|
/openbmc/pldm/pldmtool/ |
H A D | README.md | 3 pldmtool is a client tool that acts as a PLDM requester which runs on the BMC. 8 pldmtool supports the subcommands for PLDM types such as base, platform, bios, 12 - Consumes pldm/libpldm encode and decode functions. 14 - Enables writing functional test cases for PLDM stack. 16 please refer the [DMTF PLDM specifications](https://www.dmtf.org/) with respect 17 to the pldm types. 21 Source files in pldmtool repository are named with respect to the PLDM type. 29 pldmtool commands for corresponding PLDM type is constructed with the help of 30 encode request and decode response APIs which are implemented in pldm/libpldm. 34 Given a PLDM command "foo" of PLDM type "base" the pldmtool should consume [all …]
|
/openbmc/openbmc-test-automation/pldm/ |
H A D | test_pldm_base.robot | 3 Documentation Module to test PLDM base commands. 15 Verify Get PLDM Types 16 [Documentation] Verify supported PLDM types. 23 ${cmd}= Catenate ${pldm_output}[${i}][PLDM Type Code](${pldm_output}[${i}][PLDM Type]) 28 Verify Get PLDM Version For Base 29 [Documentation] Verify supported PLDM version for base type. 36 Verify Get PLDM Version For Platform 37 [Documentation] Verify supported PLDM version for platform type. 45 Verify Get PLDM Version For BIOS 46 [Documentation] Verify supported PLDM version for BIOS type. [all …]
|
/openbmc/pldm/ |
H A D | README.md | 1 # PLDM - Platform Level Data Model 7 PLDM (Platform Level Data Model) is a key component of the OpenBMC project, 12 The OpenBMC PLDM project aims to implement the specifications defined by the 18 - **Standardized Messaging:** Adheres to the DMTF's PLDM specifications, 21 - **Modularity:** Supports multiple PLDM types, including base, FRU,Firmware 23 - **Extensibility:** Easily extendable to support new PLDM types and custom OEM 32 To build and run PLDM, you need the following dependencies: 41 To build the PLDM project, follow these steps: 59 ### To enable pldm verbosity 61 pldm daemon accepts a command line argument `--verbose` or `--v` or `-v` to [all …]
|
/openbmc/pldm/requester/ |
H A D | README.md | 3 PLDM requester infrastructure enables the requester code in PLDM daemon to meet 4 the requirements of PLDM requesters. It provides the following features: 6 - Register a PLDM request and the response handler to be invoked on receiving 8 - The handling of the request and response is asynchronous. This means the PLDM 17 - Handle ERROR_NOT_READY completion code and retry the PLDM request after 250ms 20 The requester code needs to use the `registerRequest` API to register the PLDM 21 request. The destination endpoint ID, instance ID, PLDM type, PLDM command code, 22 PLDM request message (PLDM header and payload) and response function handler are 27 uint8_t command, pldm::Request&& requestMsg, 40 - If the response does not match with the PLDM instance ID, PLDM type and PLDM
|
H A D | request.hpp | 21 namespace pldm namespace 27 * The abstract base class for implementing the PLDM request retry logic. This 28 * class handles number of times the PLDM request needs to be retried if the 44 * @param[in] event - reference to PLDM daemon's main event loop 97 sdeventplus::Event& event; //!< reference to PLDM daemon's main event loop 103 /** @brief Sends the PLDM request message 126 * to send the PLDM request message over MCTP socket. 127 * This class encapsulates the PLDM request message, the number of times the 144 * @param[in] pldm_transport - PLDM transport object 147 * @param[in] event - reference to PLDM daemon's main event loop [all …]
|
H A D | handler.hpp | 29 namespace pldm namespace 35 * RequestKey uniquely identifies the PLDM request message to match it with the 36 * response and a combination of MCTP endpoint ID, PLDM instance ID, PLDM type 37 * and PLDM command is the key. 42 uint8_t instanceId; //!< PLDM instance ID 43 uint8_t type; //!< PLDM type 44 uint8_t command; //!< PLDM command 72 * The response when registers PLDM request message using the SendRecvMsg 111 * This class handles the lifecycle of the PLDM request message based on the 114 * response once the PLDM responder sends the response. If no response is [all …]
|
/openbmc/pldm/platform-mc/ |
H A D | event_manager.cpp | 16 namespace pldm namespace 34 /* EventClass sensorEvent `Table 11 - PLDM Event Types` DSP0248 */ in handlePlatformEvent() 70 /* EventClass CPEREvent as `Table 11 - PLDM Event Types` DSP0248 V1.3.0 */ in handlePlatformEvent() 76 /* EventClass pldmMessagePollEvent `Table 11 - PLDM Event Types` DSP0248 */ in handlePlatformEvent() 162 sensor->triggerThresholdEvent(pldm::utils::Level::WARNING, in processNumericSensorEvent() 163 pldm::utils::Direction::HIGH, in processNumericSensorEvent() 166 pldm::utils::Level::CRITICAL, in processNumericSensorEvent() 167 pldm::utils::Direction::HIGH, value, true, true); in processNumericSensorEvent() 172 pldm::utils::Level::WARNING, in processNumericSensorEvent() 173 pldm in processNumericSensorEvent() [all...] |
H A D | terminus_manager.hpp | 10 #include <libpldm/pldm.h> 20 namespace pldm namespace 42 * TerminusManager class to discover and initialize PLDM terminus. 56 pldm::InstanceIdDb& instanceIdDb, TerminiMapper& termini, in TerminusManager() 79 /** @brief Send request PLDM message to tid. The function will return when 85 * @param[in] request - request PLDM message 86 * @param[out] responseMsg - response PLDM message 87 * @param[out] responseLen - length of response PLDM message 88 * @return coroutine return_value - PLDM completion code 94 /** @brief Send request PLDM messag [all...] |
/openbmc/pldm/softoff/ |
H A D | softoff.cpp | 24 namespace pldm namespace 36 pldm::pdr::TerminusID TID = 0; 41 pldm::InstanceIdDb& instanceIdDb) : in SoftPowerOff() 62 pldm::pdr::EntityType entityType = entry.value("entityType", 0); in SoftPowerOff() 63 pldm::pdr::StateSetId stateSetId = entry.value("stateSetId", 0); in SoftPowerOff() 84 // Matches on the pldm StateSensorEvent signal in SoftPowerOff() 88 sdbusRule::path("/xyz/openbmc_project/pldm") + in SoftPowerOff() 89 sdbusRule::interface("xyz.openbmc_project.PLDM.Event"), in SoftPowerOff() 98 pldm::utils::PropertyValue propertyValue = in getHostState() 99 pldm in getHostState() [all...] |
/openbmc/pldm/host-bmc/ |
H A D | dbus_to_event_handler.hpp | 11 namespace pldm namespace 16 std::map<SensorId, std::tuple<pldm::responder::pdr_utils::DbusMappings, 17 pldm::responder::pdr_utils::DbusValMaps>>; 21 std::map<pldm::pdr::SensorID, pldm::responder::pdr_utils::EventStates>; 26 * @brief This class can listen to the state sensor PDRs and send PLDM event 43 * @param[in] handler - PLDM request handler 46 int mctp_fd, uint8_t mctp_eid, pldm::InstanceIdDb& instanceIdDb, 47 pldm::requester::Handler<pldm::requester::Request>* handler); 54 void listenSensorEvent(const pldm::responder::pdr_utils::Repo& repo, 68 inline void updateSensorCacheMaps(pldm::pdr::SensorID sensorId, in updateSensorCacheMaps() [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | fru_parser.hpp | 11 namespace pldm namespace 48 std::tuple<pldm::responder::dbus::Service, pldm::responder::dbus::RootPath, 49 pldm::responder::dbus::Interfaces>; 51 pldm::responder::dbus::Interface, pldm::responder::dbus::Property, 52 pldm::responder::dbus::PropertyType, pldm::responder::fru::FieldType>; 55 std::tuple<pldm::responder::fru::RecordType, 56 pldm::responder::fru::EncodingType, std::vector<FieldInfo>>; 64 * @brief Parses the PLDM FRU configuration files to populate the data 66 * inventory information into PLDM FRU Record. 90 /** @brief Get the information need to create PLDM FRU records for a [all …]
|
H A D | platform.hpp | 25 namespace pldm namespace 32 const pldm::utils::DBusHandler& dBusIntf, const pldm::utils::Json& json, 52 Handler(const pldm::utils::DBusHandler* dBusIntf, uint8_t eid, in Handler() 53 pldm::InstanceIdDb* instanceIdDb, const fs::path& pdrJsonDir, in Handler() 55 pldm::state_sensor::DbusToPLDMEvent* dbusToPLDMEventHandler, in Handler() 57 pldm::responder::platform_config::Handler* platformConfigHandler, in Handler() 58 pldm::requester::Handler<pldm::requester::Request>* handler, in Handler() 106 // Default handler for PLDM Events 121 // Additional OEM event handlers for PLDM events, append it to the 161 pldm::responder::pdr_utils::TypeId typeId = [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/PLDM/ |
H A D | Requester.interface.yaml | 2 Implement to provide features needed to build a PLDM Request message. This 3 API would be used by PLDM requester apps on the BMC. 6 xyz.openbmc_project.PLDM.Requester on /xyz/openbmc_project/pldm. 8 PLDM stands for Platform Level Data Model. More information about PLDM (and 14 Obtain a new PLDM instance id, for the input MCTP EID, to be used in a 15 PLDM request message. Instance ids help distinguish PLDM response 16 messages when a PLDM requester sends out multiple request messages, 17 without waiting for a response message. Refer the PLDM specification 19 https://github.com/openbmc/docs/blob/master/designs/pldm-stack.md#Requester. 22 EID that a PLDM requester is communicating with. An implementation of [all …]
|
H A D | Event.interface.yaml | 2 Implement to emit D-Bus signal for PLDM Event Messages. PLDM Event Messages 3 are PLDM monitoring and control messages that are used by a PLDM terminus to 4 synchronously or asynchronously report PLDM events to a central party called 5 the PLDM Event Receiver. 7 When the PLDM daemon receives a sensorEvent of type stateSensorState, it 10 This signal would be used by PLDM Requester apps on the BMC, which will rely 11 on this signal to determine state changes on a connected PLDM entity. 13 More information about PLDM Event Messages can be found at DSP0248 version 31 The sensorID is the value that is used in PDRs and PLDM sensor
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | oem_ibm_handler.hpp | 21 namespace pldm namespace 37 const pldm::pdr::TerminusID HYPERVISOR_TID = 208; 49 Handler(const pldm::utils::DBusHandler* dBusIntf, in Handler() 50 pldm::responder::CodeUpdate* codeUpdate, in Handler() 51 pldm::responder::SlotHandler* slotHandler, int mctp_fd, in Handler() 52 uint8_t mctp_eid, pldm::InstanceIdDb& instanceIdDb, in Handler() 54 pldm::requester::Handler<pldm::requester::Request>* handler) : in Handler() 68 pldm::utils::DBusHandler::getBus(), in Handler() 72 pldm::utils::DbusChangedProps props{}; in Handler() 78 pldm::utils::PropertyValue value = itr->second; in Handler() [all …]
|
H A D | file_io.hpp | 26 namespace pldm namespace 84 * @param[in] command - PLDM command 92 * @return PLDM response message 125 pldm::utils::CustomFD fd(file); in transferAll() 165 "xyz.openbmc_project.PLDM.Provider.Certs.Authority.CSR"; 170 uint8_t hostEid, pldm::InstanceIdDb* instanceIdDb, in Handler() 171 pldm::requester::Handler<pldm::requester::Request>* handler) : in Handler() 247 pldm::utils::DBusHandler::getBus(), in Handler() 280 std::make_unique<pldm in Handler() [all...] |
H A D | file_io_by_type.hpp | 5 namespace pldm namespace 27 * @param[in] oemPlatformHandler - oem handler for PLDM platform related 29 * @return PLDM status code 41 * @param[in] oemPlatformHandler - oem handler for PLDM platform related 43 * @return PLDM status code 49 /** @brief Method to read an oem file type's content into the PLDM response. 52 * @param[in] response - PLDM response 53 * @param[in] oemPlatformHandler - oem handler for PLDM platform related 55 * @return PLDM status code 64 * @param[in] oemPlatformHandler - oem handler for PLDM platfor [all...] |
/openbmc/pldm/pldmd/ |
H A D | invoker.hpp | 10 namespace pldm namespace 21 /** @brief Register a handler for a PLDM Type 23 * @param[in] pldmType - PLDM type code 24 * @param[in] handler - PLDM Type handler 31 /** @brief Invoke a PLDM command handler 33 * @param[in] tid - PLDM request TID 34 * @param[in] pldmType - PLDM type code 35 * @param[in] pldmCommand - PLDM command code 36 * @param[in] request - PLDM request message 37 * @param[in] reqMsgLen - PLDM request message size [all …]
|
H A D | oem_ibm.hpp | 18 namespace pldm namespace 23 using namespace pldm::state_sensor; 24 using namespace pldm::dbus_api; 59 const pldm::utils::DBusHandler* dBusIntf, int mctp_fd, uint8_t mctp_eid, in OemIBM() 60 pldm_pdr* repo, pldm::InstanceIdDb& instanceIdDb, in OemIBM() 66 pldm::requester::Handler<pldm::requester::Request>* reqHandler) : in OemIBM() 100 codeUpdate = std::make_unique<pldm::responder::CodeUpdate>(dBusIntf); in createCodeUpdate() 108 std::make_unique<pldm::responder::SlotHandler>(event, repo); in createSlotHandler() 127 dynamic_cast<pldm::responder::oem_ibm_platform::Handler*>( in createOemIbmPlatformHandler() 147 oemIbmFruHandler = dynamic_cast<pldm::responder::oem_ibm_fru::Handler*>( in createOemIbmFruHandler() [all …]
|
/openbmc/openpower-occ-control/ |
H A D | pldm.hpp | 8 #include <libpldm/pldm.h> 25 namespace pldm namespace 54 * @brief Abstracts the PLDM details related to the OCC 66 /** @brief Constructs the PLDM Interface object for OCC functions 86 MatchRules::path("/xyz/openbmc_project/pldm") + in Interface() 87 MatchRules::interface("xyz.openbmc_project.PLDM.Event"), in Interface() 148 * @return PLDM request message to be sent to host for OCC reset or SBE 155 /** @brief Send the PLDM message to reset the OCC 162 /** @brief Send the PLDM message to perform the HRESET 183 /** @brief PLDM instance ID database object used to get instance IDs [all …]
|