/openbmc/pldm/platform-mc/ |
H A D | platform_manager.cpp | 18 for (auto& [tid, terminus] : termini) in initTerminus() 20 if (terminus->initialized) in initTerminus() 27 if (terminus->doesSupportCommand(PLDM_FRU, in initTerminus() 35 "Failed to get FRU Metadata for terminus {TID}, error {ERROR}", in initTerminus() 46 terminus->doesSupportCommand(PLDM_FRU, PLDM_GET_FRU_RECORD_TABLE)) in initTerminus() 53 "Failed to get Fru Record table for terminus {TID}, error {ERROR}", in initTerminus() 58 if (terminus->doesSupportCommand(PLDM_PLATFORM, PLDM_GET_PDR)) in initTerminus() 60 auto rc = co_await getPDRs(terminus); in initTerminus() 64 "Failed to fetch PDRs for terminus with TID: {TID}, error: {ERROR}", in initTerminus() 66 continue; // Continue to next terminus in initTerminus() [all …]
|
H A D | terminus.hpp | 10 #include "terminus.hpp" 63 * @brief Terminus 65 * Terminus class holds the TID, supported PLDM Type or PDRs which are needed by 68 class Terminus class 71 Terminus(pldm_tid_t tid, uint64_t supportedPLDMTypes); 73 /** @brief Check if the terminus supports the PLDM type message 80 /** @brief Check if the terminus supports the PLDM command message 88 /** @brief Set the supported PLDM commands for terminus 113 /** @brief Set the PLDM supported type version for terminus 135 /** @brief The getter to return terminus's TID */ [all …]
|
H A D | sensor_manager.cpp | 32 lg2::info("Terminus ID {TID}: sensor poll timer already exists.", "TID", in startPolling() 37 auto terminus = termini[tid]; in startPolling() local 38 for (auto& sensor : terminus->numericSensors) in startPolling() 47 lg2::info("Terminus ID {TID}: no sensors to poll.", "TID", tid); in startPolling() 68 "Terminus ID {TID}: Failed to start sensor polling timer. Exception: {EXCEPTION}", in startPolling() 124 lg2::info("Stopped polling for Terminus ID {TID}", "TID", tid); in doSensorPolling() 137 "Terminus ID {TID}: Failed to stop polling timer. Exception: {EXCEPTION}", in doSensorPolling() 165 * Terminus is not available for PLDM request. in doSensorPollingTask() 166 * The terminus manager will trigger recovery process to recovery the in doSensorPollingTask() 167 * communication between the local terminus and the remote terminus. in doSensorPollingTask() [all …]
|
H A D | terminus_manager.cpp | 182 /* Get TID of initialized terminus */ in discoverMctpTerminusTask() 208 // remove terminus in removeMctpTerminus() 235 lg2::error("Failed to Get Terminus ID, error {ERROR}.", "ERROR", rc); in initMctpTerminus() 241 lg2::error("Terminus responses the reserved {TID}.", "TID", tid); in initMctpTerminus() 245 /* Terminus already has TID */ in initMctpTerminus() 248 /* TID is used by one discovered terminus */ in initMctpTerminus() 253 /* The discovered terminus has the same MCTP Info */ in initMctpTerminus() 265 * Maybe the terminus supports multiple medium interfaces in initMctpTerminus() 266 * Or the TID is used by other terminus. in initMctpTerminus() 272 /* Use the terminus TID for mapping */ in initMctpTerminus() [all …]
|
H A D | terminus_manager.hpp | 10 #include "terminus.hpp" 35 /** @brief Type definition for Terminus handler mapper */ 36 using TerminiMapper = std::map<pldm_tid_t, std::shared_ptr<Terminus>>; 42 * TerminusManager class to discover and initialize PLDM terminus. 66 /** @brief start a coroutine to discover terminus 79 * received the response message from terminus. The function will 94 * return when received the response message from terminus. 114 * @return tid - Terminus tid 119 * Terminus TID when mctpInfo is already in the data base. Response 124 * @return tid - Terminus tid [all …]
|
H A D | terminus.cpp | 1 #include "terminus.hpp" 17 Terminus::Terminus(pldm_tid_t tid, uint64_t supportedTypes) : in Terminus() function in pldm::platform_mc::Terminus 23 bool Terminus::doesSupportType(uint8_t type) in doesSupportType() 28 bool Terminus::doesSupportCommand(uint8_t type, uint8_t command) in doesSupportCommand() 46 "PLDM type {TYPE} command {CMD} is supported by terminus {TID}", in doesSupportCommand() 59 std::optional<std::string_view> Terminus::findTerminusName() in findTerminusName() 67 * terminus. The entity auxiliary name PDR of that terminus with the in findTerminusName() 68 * that type of containerID will include terminus name. in findTerminusName() 89 bool Terminus::createInventoryPath(std::string tName) in createInventoryPath() 120 void Terminus::parseTerminusPDRs() in parseTerminusPDRs() [all …]
|
H A D | platform_manager.hpp | 7 #include "terminus.hpp" 38 /** @brief Initialize terminus which supports PLDM Type 2 52 /** @brief Fetch all PDRs from terminus. 54 * @param[in] terminus - The terminus object to store fetched PDRs 57 exec::task<int> getPDRs(std::shared_ptr<Terminus> terminus); 59 /** @brief Fetch PDR from terminus 101 * generation from the terminus 102 * @param[in] eventReceiverEid - The EID of eventReceiver that terminus 107 * elapsing of which the terminus shall emit a heartbeat event. 131 * supported by the terminus [all …]
|
H A D | event_manager.cpp | 29 lg2::error("Terminus ID {TID} is not in the managing list.", "TID", in handlePlatformEvent() 46 …"Failed to decode sensor event data from terminus ID {TID}, event class {CLASS}, event ID {EVENTID… in handlePlatformEvent() 63 … "Unsupported class type {CLASSTYPE} for the sensor event from terminus ID {TID} sensorId {SID}", in handlePlatformEvent() 79 lg2::info("Received pldmMessagePollEvent for terminus {TID}", "TID", in handlePlatformEvent() 95 auto& terminus = it->second; // Reference for clarity in handlePlatformEvent() local 96 terminus->pollEvent = true; in handlePlatformEvent() 97 terminus->pollEventId = poll_event.event_id; in handlePlatformEvent() 98 terminus->pollDataTransferHandle = poll_event.data_transfer_handle; in handlePlatformEvent() 123 "Failed to decode numericSensorState event for terminus ID {TID}, error {RC} ", in processNumericSensorEvent() 136 lg2::error("Terminus ID {TID} is not in the managing list.", "TID", in processNumericSensorEvent() [all …]
|
H A D | event_manager.hpp | 10 #include "terminus.hpp" 28 * This class manages PLDM events from terminus. The function includes providing 78 /** @brief Set available state of terminus for pldm request. 80 * @param[in] tid - terminus ID 81 * @param[in] state - Terminus available state for PLDM request messages 88 /** @brief Get available state of terminus for pldm request. 90 * @param[in] tid - terminus ID 101 /** @brief A Coroutine to poll all events from terminus 157 * @param[in] typeName - Terminus name which creates CPER event 173 * @param[out] eventTid - Event terminus ID [all …]
|
H A D | manager.hpp | 47 /** @brief Helper function to do the actions before discovering terminus 53 /** @brief Helper function to do the actions after discovering terminus 79 /** @brief Helper function to start sensor polling of the terminus TID 87 * polling and event polling) of the terminus TID. The `false` state 100 /** @brief Helper function to stop sensor polling of the terminus TID 111 * @param[in] tid - Terminus ID 134 * @param[in] tid - Terminus ID 157 * @param[in] tid - Terminus ID 178 * @param[in] tid - Terminus ID 236 /** @brief Terminus interface for calling the hook functions */
|
H A D | sensor_manager.hpp | 8 #include "terminus.hpp" 25 * This class manages the sensors found in terminus and provides 51 /** @brief Set available state of terminus for pldm request. 58 /** @brief Get available state of terminus for pldm request. 74 /** @brief polling all sensors in each terminus 108 /** @brief Available state for pldm request of terminus */
|
H A D | manager.cpp | 13 // Add any setup or checks needed before discovering a terminus in beforeDiscoverTerminus() 40 auto& terminus = it->second; in pollForPlatformEvent() local 43 terminus->pollEvent = false; in pollForPlatformEvent()
|
/openbmc/docs/designs/ |
H A D | pldm-stack.md | 402 ### Terminus management and discovery 404 `pldmd` will maintain a terminus table to manage the PLDM terminus in system. 407 which is not in the terminus table yet. When the terminus EID is removed from 409 terminus table. 411 For each of terminus in the table, `pldmd` will go through the below steps: 413 - Terminus initialization 414 - Terminus discovery 415 - Terminus monitor and control 418 tasks of the terminus will be removed when it is removed from the terminus 421 #### Terminus initialization [all …]
|
/openbmc/pldm/platform-mc/test/ |
H A D | platform_manager_test.cpp | 31 std::map<pldm_tid_t, std::shared_ptr<pldm::platform_mc::Terminus>> termini; 36 // Add terminus in TEST_F() 39 termini[tid] = std::make_shared<pldm::platform_mc::Terminus>( in TEST_F() 41 auto terminus = termini[tid]; in TEST_F() local 43 /* Set supported command by terminus */ in TEST_F() 187 EXPECT_EQ(true, terminus->initialized); in TEST_F() 188 EXPECT_EQ(2, terminus->pdrs.size()); in TEST_F() 189 EXPECT_EQ(1, terminus->numericSensors.size()); in TEST_F() 190 EXPECT_EQ("S0", terminus->getTerminusName().value()); in TEST_F() 195 // Add terminus in TEST_F() [all …]
|
H A D | event_manager_test.cpp | 47 termini[tid] = std::make_shared<pldm::platform_mc::Terminus>( in TEST_F() 169 // Add terminus in TEST_F() 172 termini[tid] = std::make_shared<pldm::platform_mc::Terminus>( in TEST_F() 174 auto terminus = termini[tid]; in TEST_F() local 176 /* Set supported command by terminus */ in TEST_F() 374 EXPECT_EQ(true, terminus->initialized); in TEST_F() 375 EXPECT_EQ(32, terminus->maxBufferSize); in TEST_F() 376 EXPECT_EQ(0x06, terminus->synchronyConfigurationSupported.byte); in TEST_F() 377 EXPECT_EQ(2, terminus->pdrs.size()); in TEST_F() 378 EXPECT_EQ(1, terminus->numericSensors.size()); in TEST_F() [all …]
|
H A D | terminus_test.cpp | 4 #include "platform-mc/terminus.hpp" 10 auto t1 = pldm::platform_mc::Terminus(1, 1 << PLDM_BASE); in TEST() 12 pldm::platform_mc::Terminus(2, 1 << PLDM_BASE | 1 << PLDM_PLATFORM); in TEST() 23 auto t1 = pldm::platform_mc::Terminus(tid, 1 << PLDM_BASE); in TEST() 31 pldm::platform_mc::Terminus(1, 1 << PLDM_BASE | 1 << PLDM_PLATFORM); in TEST() 114 pldm::platform_mc::Terminus(1, 1 << PLDM_BASE | 1 << PLDM_PLATFORM); in TEST() 233 pldm::platform_mc::Terminus(1, 1 << PLDM_BASE | 1 << PLDM_PLATFORM); in TEST() 354 pldm::platform_mc::Terminus(1, 1 << PLDM_BASE | 1 << PLDM_PLATFORM); in TEST()
|
/openbmc/pldm/ |
H A D | meson.options | 72 # PLDM Daemon Terminus options 74 'terminus-id', 79 description: '''The terminus id value of the device that is running this 84 'terminus-handle', 89 description: '''The terminus handle value of the device that is running this 197 of the monitoring terminus after each configured 211 polling timer of each terminus which will trigger the 212 terminus sensor reading task. The task will check 213 whether the sensor in the terminus sensors list need to
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/terminus-font/ |
H A D | terminus-font_4.49.1.bb | 1 SUMMARY = "Terminus fonts packages (console and X11)" 2 DESCRIPTION = "Terminus Font is a clean, fixed width bitmap font, designed for \ 4 HOMEPAGE = "http://terminus-font.sourceforge.net/" 31 --x11dir=${datadir}/fonts/terminus 45 FILES:${PN}-pcf = "${datadir}/fonts/terminus"
|
/openbmc/libpldm/include/libpldm/ |
H A D | pdr.h | 34 * to a PLDM terminus id. 70 * @param[in] is_remote - if true, then the PDR is not from this terminus 71 * @param[in] terminus_handle - terminus handle of the input PDR record 97 /** @brief Get terminus handle of a PDR record 105 * @return uint16_t - terminus handle assigned to PDR record 172 /** @brief Remove all PDR records that belong to a remote terminus 180 /** @brief Remove all remote PDR's that belong to a specific terminus 183 * @param[in] terminus_handle - Terminus Handle of the remove PLDM terminus 194 * @param[in] terminus_handle - PLDM terminus handle 195 * @param[in] tid - Terminus ID [all …]
|
/openbmc/pldm/common/ |
H A D | transport.hpp | 38 /** @brief Asynchronously send a PLDM message to the specified terminus 42 * @param[in] tid - The terminus ID of the message destination 52 * terminus 56 * @param[out] tid - The terminus ID of the message source 66 * terminus. 78 * @param[in] tid - The terminus ID of the endpoint with which the exchange
|
H A D | instance_id.hpp | 54 /** @brief Allocate an instance ID for the given terminus 55 * @param[in] tid - the terminus ID the instance ID is associated with 78 * @param[in] tid - the terminus ID the instance ID is associated with
|
/openbmc/entity-manager/configurations/meta/ |
H A D | terminus_2x100g_nic_tsff.json | 6 "Name": "Terminus NIC FRU $bus", 28 "Name": "Terminus NIC FRU $bus", 29 "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'Terminus 2x100G NIC TSFF'})",
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/PLDM/ |
H A D | Event.interface.yaml | 3 are PLDM monitoring and control messages that are used by a PLDM terminus to 26 A terminus id. 33 within a terminus.
|
/openbmc/pldm/softoff/ |
H A D | main.cpp | 28 "Failure in gracefully shutdown by remote terminus, exiting pldm-softpoweroff app"); in main() 35 "Remote terminus current state is not Running, exiting pldm-softpoweroff app"); in main() 44 … "Failure in sending soft off request to the remote terminus. Exiting pldm-softpoweroff app"); in main()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/terminus-font/terminus-font/ |
H A D | use-no-name-option-for-gzip.patch | 15 Index: terminus-font-4.49.1/Makefile 17 --- terminus-font-4.49.1.orig/Makefile 18 +++ terminus-font-4.49.1/Makefile 19 @@ -92,9 +92,9 @@ otbdir = $(prefix)/share/fonts/terminus
|