Home
last modified time | relevance | path

Searched full:terminus (Results 1 – 25 of 81) sorted by relevance

1234

/openbmc/pldm/platform-mc/
H A Dplatform_manager.cpp19 for (auto& [tid, terminus] : termini) in initTerminus()
21 if (terminus->initialized) in initTerminus()
28 if (terminus->doesSupportCommand(PLDM_FRU, in initTerminus()
36 "Failed to get FRU Metadata for terminus {TID}, error {ERROR}", in initTerminus()
47 terminus->doesSupportCommand(PLDM_FRU, PLDM_GET_FRU_RECORD_TABLE)) in initTerminus()
54 "Failed to get Fru Record table for terminus {TID}, error {ERROR}", in initTerminus()
59 if (terminus->doesSupportCommand(PLDM_PLATFORM, PLDM_GET_PDR)) in initTerminus()
61 auto rc = co_await getPDRs(terminus); in initTerminus()
65 "Failed to fetch PDRs for terminus with TID: {TID}, error: {ERROR}", in initTerminus()
67 continue; // Continue to next terminus in initTerminus()
[all …]
H A Dterminus.hpp7 #include "terminus.hpp"
30 * @brief Terminus
32 * Terminus class holds the TID, supported PLDM Type or PDRs which are needed by
35 class Terminus class
38 Terminus(pldm_tid_t tid, uint64_t supportedPLDMTypes,
41 /** @brief Check if the terminus supports the PLDM type message
48 /** @brief Check if the terminus supports the PLDM command message
56 /** @brief Set the supported PLDM commands for terminus
81 /** @brief Set the PLDM supported type version for terminus
103 /** @brief The getter to return terminus's TID */
[all …]
H A Dsensor_manager.cpp32 lg2::info("Terminus ID {TID}: sensor poll timer already exists.", "TID", in startPolling()
62 "Terminus ID {TID}: Failed to start sensor polling timer. Exception: {EXCEPTION}", in startSensorPollTimer()
76 auto terminus = termini[tid]; in disableTerminusSensors() local
77 if (!terminus) in disableTerminusSensors()
82 for (auto& sensor : terminus->numericSensors) in disableTerminusSensors()
139 lg2::info("Stopped polling for Terminus ID {TID}", "TID", tid); in doSensorPolling()
152 "Terminus ID {TID}: Failed to stop polling timer. Exception: {EXCEPTION}", in doSensorPolling()
180 * Terminus is not available for PLDM request. in doSensorPollingTask()
181 * The terminus manager will trigger recovery process to recovery the in doSensorPollingTask()
182 * communication between the local terminus and the remote terminus. in doSensorPollingTask()
[all …]
H A Dterminus_manager.hpp7 #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.
67 /** @brief start a coroutine to discover terminus
80 * received the response message from terminus. The function will
95 * return when received the response message from terminus.
115 * @return tid - Terminus tid
120 * Terminus TID when mctpInfo is already in the data base. Response
125 * @return tid - Terminus tid
[all …]
H A Dterminus_manager.cpp209 … "Failed to initialize terminus with EID {EID}, networkId {NETWORK}, response code {RC}.", in discoverMctpTerminusTask()
218 /* Get TID of initialized terminus */ in discoverMctpTerminusTask()
223 "Failed to get TID for terminus with EID {EID}, networkId {NETWORK}.", in discoverMctpTerminusTask()
251 // remove terminus in removeMctpTerminus()
279 lg2::error("Failed to Get Terminus ID, error {ERROR}.", "ERROR", rc); in initMctpTerminus()
285 lg2::error("Terminus responses the reserved {TID}.", "TID", tid); in initMctpTerminus()
289 /* Terminus already has TID */ in initMctpTerminus()
292 /* TID is used by one discovered terminus */ in initMctpTerminus()
297 /* The discovered terminus has the same MCTP Info */ in initMctpTerminus()
309 * Maybe the terminus supports multiple medium interfaces in initMctpTerminus()
[all …]
H A Dterminus.cpp1 #include "terminus.hpp"
17 Terminus::Terminus(pldm_tid_t tid, uint64_t supportedTypes, in Terminus() function in pldm::platform_mc::Terminus
24 bool Terminus::doesSupportType(uint8_t type) in doesSupportType()
29 bool Terminus::doesSupportCommand(uint8_t type, uint8_t command) in doesSupportCommand()
47 "PLDM type {TYPE} command {CMD} is supported by terminus {TID}", in doesSupportCommand()
60 std::optional<std::string_view> Terminus::findTerminusName() in findTerminusName()
68 * terminus. The entity auxiliary name PDR of that terminus with the in findTerminusName()
69 * that type of containerID will include terminus name. in findTerminusName()
90 bool Terminus::createInventoryPath(std::string tName) in createInventoryPath()
121 void Terminus::parseTerminusPDRs() in parseTerminusPDRs()
[all …]
H A Dplatform_manager.hpp3 #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 Dsensor_manager.hpp5 #include "terminus.hpp"
27 * This class manages the sensors found in terminus and provides
53 /** @brief Helper function to set all terminus sensor as nan when the
54 * terminus is not available for pldm request
62 /** @brief Set available state of terminus for pldm request.
69 /** @brief Get available state of terminus for pldm request.
85 /** @brief polling all sensors in each terminus
119 /** @brief Available state for pldm request of terminus */
122 /** @brief Round robin sensor iter of terminus */
H A Dmanager.hpp47 /** @brief Helper function to do the actions before discovering terminus
53 /** @brief Helper function to do the actions after discovering terminus
88 /* Get TID of initialized terminus */ in updateMctpEndpointAvailability()
105 /** @brief Helper function to start sensor polling of the terminus TID
113 * polling and event polling) of the terminus TID. The `false` state
126 /** @brief Helper function to stop sensor polling of the terminus TID
137 * @param[in] tid - Terminus ID
160 * @param[in] tid - Terminus ID
183 * @param[in] tid - Terminus ID
204 * @param[in] tid - Terminus ID
[all …]
H A Devent_manager.cpp29 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()
228 "Failed to decode numericSensorState event for terminus ID {TID}, error {RC} ", in processNumericSensorEvent()
241 lg2::error("Terminus ID {TID} is not in the managing list.", "TID", in processNumericSensorEvent()
[all …]
H A Devent_manager.hpp6 #include "terminus.hpp"
34 * This class manages PLDM events from terminus. The function includes providing
84 /** @brief Set available state of terminus for pldm request.
86 * @param[in] tid - terminus ID
87 * @param[in] state - Terminus available state for PLDM request messages
94 /** @brief Get available state of terminus for pldm request.
96 * @param[in] tid - terminus ID
107 /** @brief A Coroutine to poll all events from terminus
163 * @param[in] typeName - Terminus name which creates CPER event
179 * @param[out] eventTid - Event terminus ID
[all …]
H A Dmanager.cpp13 // 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/pldm/platform-mc/test/
H A Dplatform_manager_test.cpp32 std::map<pldm_tid_t, std::shared_ptr<pldm::platform_mc::Terminus>> termini;
37 // Add terminus in TEST_F()
41 termini[tid] = std::make_shared<pldm::platform_mc::Terminus>( in TEST_F()
43 auto terminus = termini[tid]; in TEST_F() local
45 /* Set supported command by terminus */ in TEST_F()
191 EXPECT_EQ(true, terminus->initialized); in TEST_F()
192 EXPECT_EQ(true, terminus->doesSupportCommand(PLDM_PLATFORM, PLDM_GET_PDR)); in TEST_F()
193 EXPECT_EQ(2, terminus->pdrs.size()); in TEST_F()
197 EXPECT_EQ(1, terminus->numericSensors.size()); in TEST_F()
198 EXPECT_EQ("S0", terminus->getTerminusName().value()); in TEST_F()
[all …]
H A Dterminus_test.cpp2 #include "platform-mc/terminus.hpp"
11 auto t1 = pldm::platform_mc::Terminus(1, 1 << PLDM_BASE, event); in TEST()
12 auto t2 = pldm::platform_mc::Terminus( in TEST()
25 auto t1 = pldm::platform_mc::Terminus(tid, 1 << PLDM_BASE, event); in TEST()
33 auto t1 = pldm::platform_mc::Terminus( in TEST()
117 auto t1 = pldm::platform_mc::Terminus( in TEST()
237 auto t1 = pldm::platform_mc::Terminus( in TEST()
359 auto t1 = pldm::platform_mc::Terminus( in TEST()
/openbmc/docs/designs/
H A Dpldm-stack.md402 ### 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/
H A Dmeson.options67 # PLDM Daemon Terminus options
69 'terminus-id',
74 description: '''The terminus id value of the device that is running this
79 'terminus-handle',
84 description: '''The terminus handle value of the device that is running this
211 of the monitoring terminus after each configured
225 polling timer of each terminus which will trigger the
226 terminus sensor reading task. The task will check
227 whether the sensor in the terminus sensors list need to
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/terminus-font/
H A Dterminus-font_4.49.1.bb1 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/pldm/common/
H A Dtransport.hpp38 /** @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 Dinstance_id.hpp54 /** @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 Dterminus_2x100g_nic_tsff.json6 "Name": "Terminus NIC FRU $bus",
35 "Name": "Terminus NIC FRU $bus",
36 "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'Terminus 2x100G NIC TSFF'})",
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/console/
H A Dobmc-console_%.bbappend5 file://99-terminus-usb-serial.rules \
13 …install -m 0644 ${UNPACKDIR}/99-terminus-usb-serial.rules ${D}${sysconfdir}/udev/rules.d/99-termin…
/openbmc/libpldm/include/libpldm/
H A Dpdr.h34 * 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/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/PLDM/
H A DEvent.interface.yaml3 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 Dmain.cpp28 "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 Duse-no-name-option-for-gzip.patch15 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

1234