/openbmc/pldm/platform-mc/ |
H A D | sensor_manager.cpp | 22 void SensorManager::startPolling(pldm_tid_t tid) in startPolling() argument 24 if (!termini.contains(tid)) in startPolling() 29 /* tid already initializes roundRobinSensors list */ in startPolling() 30 if (sensorPollTimers.contains(tid)) in startPolling() 32 lg2::info("Terminus ID {TID}: sensor poll timer already exists.", "TID", in startPolling() 33 tid); in startPolling() 37 roundRobinSensorItMap[tid] = 0; in startPolling() 39 updateAvailableState(tid, true); in startPolling() 41 sensorPollTimers[tid] = std::make_unique<sdbusplus::Timer>( in startPolling() 42 event.get(), [this, tid] { this->doSensorPolling(tid); }); in startPolling() [all …]
|
H A D | platform_manager.cpp | 19 for (auto& [tid, terminus] : termini) in initTerminus() 32 co_await getFRURecordTableMetadata(tid, &totalTableRecords); in initTerminus() 36 "Failed to get FRU Metadata for terminus {TID}, error {ERROR}", in initTerminus() 37 "TID", tid, "ERROR", rc); in initTerminus() 50 co_await getFRURecordTables(tid, totalTableRecords, fruData); in initTerminus() 54 "Failed to get Fru Record table for terminus {TID}, error {ERROR}", in initTerminus() 55 "TID", tid, "ERROR", rc); in initTerminus() 65 "Failed to fetch PDRs for terminus with TID: {TID}, error: {ERROR}", in initTerminus() 66 "TID", tid, "ERROR", rc); in initTerminus() 79 updateInventoryWithFru(tid, fruData.data(), fruData.size()); in initTerminus() [all …]
|
H A D | terminus_manager.cpp | 14 std::optional<MctpInfo> TerminusManager::toMctpInfo(const pldm_tid_t& tid) in toMctpInfo() argument 16 if (tid == PLDM_TID_UNASSIGNED || tid == PLDM_TID_RESERVED) in toMctpInfo() 21 if ((!this->transportLayerTable.contains(tid)) || in toMctpInfo() 22 (this->transportLayerTable[tid] != SupportedTransportLayer::MCTP)) in toMctpInfo() 27 auto mctpInfoIt = mctpInfoTable.find(tid); in toMctpInfo() 56 const MctpInfo& mctpInfo, pldm_tid_t tid) in storeTerminusInfo() argument 58 if (tid == PLDM_TID_UNASSIGNED || tid == PLDM_TID_RESERVED) in storeTerminusInfo() 68 if (tidPool[tid]) in storeTerminusInfo() 73 tidPool[tid] = true; in storeTerminusInfo() 74 transportLayerTable[tid] = SupportedTransportLayer::MCTP; in storeTerminusInfo() [all …]
|
H A D | event_manager.cpp | 23 pldm_tid_t tid, uint16_t eventId, uint8_t eventClass, in handlePlatformEvent() argument 27 if (!termini.contains(tid)) in handlePlatformEvent() 29 lg2::error("Terminus ID {TID} is not in the managing list.", "TID", in handlePlatformEvent() 30 tid); in handlePlatformEvent() 46 …"Failed to decode sensor event data from terminus ID {TID}, event class {CLASS}, event ID {EVENTID… in handlePlatformEvent() 47 "TID", tid, "CLASS", eventClass, "EVENTID", eventId, "RC", rc); in handlePlatformEvent() 56 return processNumericSensorEvent(tid, sensorId, sensorData, in handlePlatformEvent() 63 … "Unsupported class type {CLASSTYPE} for the sensor event from terminus ID {TID} sensorId {SID}", in handlePlatformEvent() 64 "CLASSTYPE", sensorEventClassType, "TID", tid, "SID", in handlePlatformEvent() 73 return processCperEvent(tid, eventId, eventData, eventDataSize); in handlePlatformEvent() [all …]
|
H A D | terminus_manager.hpp | 31 /** @brief Size of TID Pool in pldmd */ 79 /** @brief Send request PLDM message to tid. The function will return when 84 * @param[in] tid - Destination TID 90 exec::task<int> sendRecvPldmMsg(pldm_tid_t tid, Request& request, 107 /** @brief member functions to map/unmap tid 109 std::optional<MctpInfo> toMctpInfo(const pldm_tid_t& tid); 111 /** @brief Member functions to response the TID of specific MCTP interface 115 * @return tid - Terminus tid 119 /** @brief Member functions to find the TID for MCTP interface. Response the 120 * Terminus TID when mctpInfo is already in the data base. Response [all …]
|
H A D | manager.hpp | 19 using PollHandler = std::function<exec::task<int>(pldm_tid_t tid)>; 88 /* Get TID of initialized terminus */ in updateMctpEndpointAvailability() 89 auto tid = terminusManager.toTid(mctpInfo); in updateMctpEndpointAvailability() local 90 if (tid) in updateMctpEndpointAvailability() 94 sensorManager.startSensorPollTimer(tid.value()); in updateMctpEndpointAvailability() 98 sensorManager.disableTerminusSensors(tid.value()); in updateMctpEndpointAvailability() 100 updateAvailableState(tid.value(), availability); in updateMctpEndpointAvailability() 105 /** @brief Helper function to start sensor polling of the terminus TID 107 void startSensorPolling(pldm_tid_t tid) in startSensorPolling() argument 109 sensorManager.startPolling(tid); in startSensorPolling() [all …]
|
H A D | platform_manager.hpp | 46 * @param[in] tid - Destination TID 49 exec::task<int> configEventReceiver(pldm_tid_t tid); 61 * @param[in] tid - Destination TID 76 const pldm_tid_t tid, const uint32_t recordHndl, 85 * @param[in] tid - Destination TID 94 const pldm_tid_t tid, uint8_t& repositoryState, uint32_t& recordCount, 99 * @param[in] tid - Destination TID 111 pldm_tid_t tid, 116 * @param[in] tid - Destination TID 121 exec::task<int> eventMessageBufferSize(pldm_tid_t tid, [all …]
|
H A D | event_manager.hpp | 19 std::function<int(pldm_tid_t tid, uint16_t eventId, 56 {[this](pldm_tid_t tid, uint16_t eventId, const uint8_t* eventData, in EventManager() 58 return this->handlePlatformEvent(tid, eventId, in EventManager() 64 {[this](pldm_tid_t tid, uint16_t eventId, const uint8_t* eventData, in EventManager() argument 66 return this->handlePlatformEvent(tid, eventId, PLDM_CPER_EVENT, in EventManager() 73 * @param[in] tid - tid where the event is from 80 int handlePlatformEvent(pldm_tid_t tid, uint16_t eventId, argument 86 * @param[in] tid - terminus ID 89 void updateAvailableState(pldm_tid_t tid, Availability state) in updateAvailableState() argument 91 availableState[tid] = state; in updateAvailableState() [all …]
|
H A D | sensor_manager.hpp | 47 void startPolling(pldm_tid_t tid); 51 void startSensorPollTimer(pldm_tid_t tid); 56 void disableTerminusSensors(pldm_tid_t tid); 60 void stopPolling(pldm_tid_t tid); 64 void updateAvailableState(pldm_tid_t tid, Availability state) in updateAvailableState() argument 66 availableState[tid] = state; in updateAvailableState() 71 bool getAvailableState(pldm_tid_t tid) in getAvailableState() argument 73 if (!availableState.contains(tid)) in getAvailableState() 77 return availableState[tid]; in getAvailableState() 83 virtual void doSensorPolling(pldm_tid_t tid); [all …]
|
H A D | terminus.cpp | 17 Terminus::Terminus(pldm_tid_t tid, uint64_t supportedTypes, in Terminus() argument 20 synchronyConfigurationSupported(0), pollEvent(false), tid(tid), in Terminus() 47 "PLDM type {TYPE} command {CMD} is supported by terminus {TID}", in doesSupportCommand() 48 "TYPE", type, "CMD", command, "TID", getTid()); in doesSupportCommand() 207 lg2::info("Terminus {TID} has Auxiliary Name {NAME}.", "TID", tid, in parseTerminusPDRs() 213 terminusName = std::format("Terminus_{}", tid); in parseTerminusPDRs() 220 "Terminus ID {TID}: DOES NOT have name. Skip Adding sensors.", in parseTerminusPDRs() 221 "TID", tid); in parseTerminusPDRs() 227 lg2::info("Terminus ID {TID}: Created Inventory path {PATH}.", "TID", in parseTerminusPDRs() 228 tid, "PATH", inventoryPath); in parseTerminusPDRs() [all …]
|
/openbmc/libpldm/tests/ |
H A D | instance-id.cpp | 92 const pldm_tid_t tid = 1; in TEST_F() local 94 EXPECT_EQ(pldm_instance_id_alloc(db, tid, &iid), -EINVAL); in TEST_F() 100 const pldm_tid_t tid = 1; in TEST_F() local 103 EXPECT_EQ(pldm_instance_id_free(db, tid, iid), -EINVAL); in TEST_F() 109 const pldm_tid_t tid = 1; in TEST_F() local 113 EXPECT_EQ(pldm_instance_id_alloc(db, tid, &iid), 0); in TEST_F() 114 EXPECT_EQ(pldm_instance_id_free(db, tid, iid), 0); in TEST_F() 120 static constexpr pldm_tid_t tid = 1; in TEST_F() local 127 EXPECT_EQ(pldm_instance_id_alloc(db, tid, &first), 0); in TEST_F() 128 EXPECT_EQ(pldm_instance_id_free(db, tid, first), 0); in TEST_F() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | runqueue.py | 36 def fn_from_tid(tid): argument 37 return tid.rsplit(":", 1)[0] 39 def taskname_from_tid(tid): argument 40 return tid.rsplit(":", 1)[1] 42 def mc_from_tid(tid): argument 43 if tid.startswith('mc:') and tid.count(':') >= 2: 44 return tid.split(':')[1] 47 def split_tid(tid): argument 48 (mc, fn, taskname, _) = split_tid_mcfn(tid) 57 def split_tid_mcfn(tid): argument [all …]
|
H A D | siggen.py | 114 def get_cached_unihash(self, tid): argument 117 def get_unihash(self, tid): argument 118 unihash = self.get_cached_unihash(tid) 121 return self.taskhash[tid] 124 return {tid: self.get_unihash(tid) for tid in tids} 126 def prep_taskhash(self, tid, deps, dataCaches): argument 129 def get_taskhash(self, tid, deps, dataCaches): argument 130 self.taskhash[tid] = hashlib.sha256(tid.encode("utf-8")).hexdigest() 131 return self.taskhash[tid] 258 tid = mcfn + ":" + task [all …]
|
/openbmc/pldm/oem/ampere/event/ |
H A D | oem_event_manager.hpp | 255 * @param[in] tid - TID 261 uint8_t /* formatVersion */, pldm_tid_t tid, 266 * @param[in] tid - terminus ID 273 int processOemMsgPollEvent(pldm_tid_t tid, uint16_t eventId, 281 * @param[in] tid - TID 288 uint8_t /* formatVersion */, pldm_tid_t tid, size_t eventDataOffset); 292 * @param[in] tid - the destination TID 295 exec::task<int> oemPollForPlatformEvent(pldm_tid_t tid); 300 * @param[in] tid - TID 305 std::string prefixMsgStrCreation(pldm_tid_t tid, uint16_t sensorId); [all …]
|
H A D | oem_event_manager.cpp | 74 pldmd will always use TID 1 for S0 and TID 2 for S1 (if available). 224 std::string OemEventManager::prefixMsgStrCreation(pldm_tid_t tid, in prefixMsgStrCreation() argument 228 if (!tidToSocketNameMap.contains(tid)) in prefixMsgStrCreation() 230 description += "TID " + std::to_string(tid) + ": "; in prefixMsgStrCreation() 234 description += tidToSocketNameMap[tid] + ": "; in prefixMsgStrCreation() 294 pldm_tid_t /*tid*/, uint16_t /*sensorId*/, uint32_t presentReading) in handleBootOverallEvent() 387 pldm_tid_t tid, uint16_t sensorId, const uint8_t* sensorData, in processNumericSensorEvent() argument 400 "Failed to decode numericSensorState event for terminus ID {TID}, error {RC} ", in processNumericSensorEvent() 401 "TID", tid, "RC", rc); in processNumericSensorEvent() 408 handleDIMMStatusEvent(tid, sensorId, presentReading); in processNumericSensorEvent() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ui/ |
H A D | uihelper.py | 25 def removetid(pid, tid): argument 26 self.running_pids.remove(tid) 27 del self.running_tasks[tid] 28 if self.pidmap[pid] == tid: 33 tid = event._fn + ":" + event._task 35 …self.running_tasks[tid] = { 'title' : "mc:%s:%s %s" % (event._mc, event._package, event._task), 's… 37 …self.running_tasks[tid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.… 38 self.running_pids.append(tid) 39 self.pidmap[event.pid] = tid 42 tid = event._fn + ":" + event._task [all …]
|
/openbmc/qemu/hw/xen/ |
H A D | xen-bus-helper.c | 50 void xs_node_create(struct qemu_xs_handle *h, xs_transaction_t tid, in xs_node_create() argument 56 if (!qemu_xen_xs_create(h, tid, owner, domid, perms, node)) { in xs_node_create() 61 void xs_node_destroy(struct qemu_xs_handle *h, xs_transaction_t tid, in xs_node_destroy() argument 66 if (!qemu_xen_xs_destroy(h, tid, node)) { in xs_node_destroy() 71 void xs_node_vprintf(struct qemu_xs_handle *h, xs_transaction_t tid, in xs_node_vprintf() argument 84 if (!qemu_xen_xs_write(h, tid, path, value, len)) { in xs_node_vprintf() 93 void xs_node_printf(struct qemu_xs_handle *h, xs_transaction_t tid, in xs_node_printf() argument 100 xs_node_vprintf(h, tid, node, key, errp, fmt, ap); in xs_node_printf() 104 int xs_node_vscanf(struct qemu_xs_handle *h, xs_transaction_t tid, in xs_node_vscanf() argument 112 value = xs_node_read(h, tid, NULL, errp, "%s/%s", node, key); in xs_node_vscanf() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | transport.h | 39 * TID to transport specific identifier mapping, this must already be set 43 * @param[in] tid - destination PLDM TID 54 pldm_tid_t tid, 64 * TID to transport specific identifier mapping, this must already be set 68 * @param[out] tid - source PLDM TID 82 pldm_tid_t *tid, void **pldm_msg, 96 * TID to transport specific identifier mapping, this must already be set 100 * @param[in] tid - destination PLDM TID 118 pldm_transport_send_recv_msg(struct pldm_transport *transport, pldm_tid_t tid,
|
/openbmc/pldm/oem/ampere/ |
H A D | oem_ampere.hpp | 82 uint8_t formatVersion, uint8_t tid, in createOemEventHandler() 85 request, payloadLength, formatVersion, tid, in createOemEventHandler() 92 {[oemEventManager](pldm_tid_t tid, uint16_t eventId, in createOemEventHandler() 95 tid, eventId, eventData, eventDataSize); in createOemEventHandler() 99 {[oemEventManager](pldm_tid_t tid, uint16_t eventId, in createOemEventHandler() argument 102 tid, eventId, eventData, eventDataSize); in createOemEventHandler() 112 uint8_t formatVersion, uint8_t tid, in createOemEventHandler() 115 request, payloadLength, formatVersion, tid, in createOemEventHandler() 121 {[platformManager](pldm_tid_t tid, uint16_t eventId, in createOemEventHandler() argument 124 tid, eventId, eventData, eventDataSize); in createOemEventHandler() [all …]
|
/openbmc/pldm/common/ |
H A D | instance_id.hpp | 55 * @param[in] tid - the terminus ID the instance ID is associated with 59 uint8_t next(uint8_t tid) in next() argument 62 int rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &id); in next() 78 * @param[in] tid - the terminus ID the instance ID is associated with 81 void free(uint8_t tid, uint8_t instanceId) in free() argument 83 int rc = pldm_instance_id_free(pldmInstanceIdDb, tid, instanceId); in free() 87 "Instance ID " + std::to_string(instanceId) + " for TID " + in free() 88 std::to_string(tid) + " was not previously allocated"); in free()
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/ |
H A D | pldm_utils.cpp | 62 pldm_instance_id_t getPLDMInstanceID(uint8_t tid) in getPLDMInstanceID() argument 66 auto rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &instanceID); in getPLDMInstanceID() 70 rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &instanceID); in getPLDMInstanceID() 81 "INSTANCE_ID", instanceID, "EID", tid); in getPLDMInstanceID() 86 void freePLDMInstanceID(pldm_instance_id_t instanceID, uint8_t tid) in freePLDMInstanceID() argument 88 auto rc = pldm_instance_id_free(pldmInstanceIdDb, tid, instanceID); in freePLDMInstanceID() 92 "pldm_instance_id_free failed to free id = {ID} of tid = {TID} rc = {RC}", in freePLDMInstanceID() 93 "ID", instanceID, "TID", tid, "RC", rc); in freePLDMInstanceID() 137 "openMctpDemuxTransport: Failed to setup tid to eid mapping. rc = {RC}", in openMctpDemuxTransport()
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | sstatesig.py | 162 def get_taskhash(self, tid, deps, dataCaches): argument 163 if tid in self.lockedhashes: 164 if self.lockedhashes[tid]: 165 return self.lockedhashes[tid] 167 return super().get_taskhash(tid, deps, dataCaches) 169 h = super().get_taskhash(tid, deps, dataCaches) 171 (mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid) 196 self.lockedhashes[tid] = h_locked 198 unihash = self.get_unihash(tid) 209 self.lockedhashes[tid] = False [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/gphoto2/gphoto2/ |
H A D | 0001-Match-prototypes-of-callbacks-with-libgphoto.patch | 32 pthread_create (&tid, NULL, thread_func, td); 34 - return (tid); 35 + return (unsigned int)tid; 43 - pthread_t tid = id; 44 + pthread_t tid = (pthread_t)id; 46 pthread_cancel (tid); 47 pthread_join (tid, NULL);
|
/openbmc/pldm/test/ |
H A D | pldmd_registration_test.cpp | 13 constexpr pldm_tid_t tid = 0; variable 20 handlers.emplace(testCmd, [this](uint8_t tid, const pldm_msg* request, in TestHandler() 22 return this->handle(tid, request, payloadLength); in TestHandler() 26 Response handle(uint8_t /*tid*/, const pldm_msg* /*request*/, in handle() 48 auto result = invoker.handle(tid, testType, testCmd, nullptr, 0); in TEST() 56 ASSERT_THROW(invoker.handle(tid, testType, testCmd, nullptr, 0), in TEST() 60 ASSERT_THROW(invoker.handle(tid, testType, badCmd, nullptr, 0), in TEST()
|
/openbmc/qemu/include/hw/xen/ |
H A D | xen-bus-helper.h | 15 void xs_node_create(struct qemu_xs_handle *h, xs_transaction_t tid, 18 void xs_node_destroy(struct qemu_xs_handle *h, xs_transaction_t tid, 22 void xs_node_vprintf(struct qemu_xs_handle *h, xs_transaction_t tid, 26 void xs_node_printf(struct qemu_xs_handle *h, xs_transaction_t tid, 32 int xs_node_vscanf(struct qemu_xs_handle *h, xs_transaction_t tid, 36 int xs_node_scanf(struct qemu_xs_handle *h, xs_transaction_t tid, 45 char *xs_node_read(struct qemu_xs_handle *h, xs_transaction_t tid,
|