/openbmc/pldm/fw-update/ |
H A D | inventory_manager.cpp | 22 auto eid = std::get<pldm::eid>(mctpInfo); in discoverFDs() local 25 sendQueryDeviceIdentifiersRequest(eid); in discoverFDs() 30 "Failed to discover file descriptors for endpoint ID {EID} with {ERROR}", in discoverFDs() 31 "EID", eid, "ERROR", e); in discoverFDs() 40 auto eid = std::get<pldm::eid>(mctpInfo); in removeFDs() local 41 firmwareDeviceNameMap.erase(eid); in removeFDs() 42 descriptorMap.erase(eid); in removeFDs() 43 downstreamDescriptorMap.erase(eid); in removeFDs() 44 componentInfoMap.erase(eid); in removeFDs() 45 firmwareInventoryManager.deleteFirmwareEntry(eid); in removeFDs() [all …]
|
H A D | device_updater.cpp | 22 auto instanceId = updateManager->instanceIdDb.next(eid); in startFwUpdateFlow() 52 updateManager->instanceIdDb.free(eid, instanceId); in startFwUpdateFlow() 54 "Failed to encode request update request for endpoint ID '{EID}', response code '{RC}'", in startFwUpdateFlow() 55 "EID", eid, "RC", rc); in startFwUpdateFlow() 59 eid, instanceId, PLDM_FWUP, PLDM_REQUEST_UPDATE, std::move(request), in startFwUpdateFlow() 60 [this](mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen) { in startFwUpdateFlow() argument 61 this->requestUpdate(eid, response, respMsgLen); in startFwUpdateFlow() 67 "Failed to send request update for endpoint ID '{EID}', response code '{RC}'", in startFwUpdateFlow() 68 "EID", eid, "RC", rc); in startFwUpdateFlow() 72 void DeviceUpdater::requestUpdate(mctp_eid_t eid, const pldm_msg* response, in requestUpdate() argument [all …]
|
H A D | firmware_inventory_manager.cpp | 23 auto& eid = softwareIdentifier.first; in createFirmwareEntry() local 24 const auto inventoryPath = getInventoryPath(eid); in createFirmwareEntry() 27 error("No inventory path found for EID {EID}", "EID", eid); in createFirmwareEntry() 34 error("Failed to get board path for EID {EID}", "EID", eid); in createFirmwareEntry() 48 void FirmwareInventoryManager::deleteFirmwareEntry(const pldm::eid& eid) in deleteFirmwareEntry() argument 51 [&](const auto& pair) { return pair.first.first == eid; }); in deleteFirmwareEntry() 83 const pldm::eid& eid) const in getInventoryPath() 87 if (std::get<pldm::eid>(configMctpInfo) == eid) in getInventoryPath() 92 warning("No inventory path found for EID {EID}", "EID", eid); in getInventoryPath()
|
H A D | inventory_manager.hpp | 83 * @param[in] eid - Remote MCTP endpoint 87 void queryDeviceIdentifiers(mctp_eid_t eid, const pldm_msg* response, 92 * @param[in] eid - Remote MCTP endpoint 96 void queryDownstreamDevices(mctp_eid_t eid, const pldm_msg* response, 101 * @param[in] eid - Remote MCTP endpoint 105 void queryDownstreamIdentifiers(mctp_eid_t eid, const pldm_msg* response, 110 * @param[in] eid - Remote MCTP endpoint 115 mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen); 122 * @param[in] eid - Remote MCTP endpoint 126 void getFirmwareParameters(mctp_eid_t eid, const pldm_msg* response, [all …]
|
H A D | firmware_inventory_manager.hpp | 50 * @param[in] softwareIdentifier - Software identifier containing EID and 64 * @brief Deletes the firmware inventory entry for the given EID 65 * @param[in] eid - MCTP endpoint ID for which the firmware inventory entry 68 void deleteFirmwareEntry(const pldm::eid& eid); 72 * @brief Get the inventory path associated with the given EID 73 * @param[in] eid - MCTP endpoint ID 76 std::optional<InventoryPath> getInventoryPath(const pldm::eid& eid) const; 87 * identifiers (EID and component identifier).
|
/openbmc/pldm/requester/ |
H A D | handler.hpp | 41 mctp_eid_t eid; //!< MCTP endpoint ID member 48 return ((eid == e.eid) && (instanceId == e.instanceId) && in operator ==() 62 return (key.eid << 24 | key.instanceId << 16 | key.type << 8 | in operator ()() 68 mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen)>; 95 * the existing of the request message to the endpoint with its' EID. 99 mctp_eid_t eid; //!< Responder MCTP endpoint ID member 105 return (eid == mctpEid); in operator ==() 156 auto eid = key.eid; in instanceIdExpiryCallBack() local 160 "Instance ID expiry for EID '{EID}' using InstanceID '{INSTANCEID}'", in instanceIdExpiryCallBack() 161 "EID", key.eid, "INSTANCEID", key.instanceId); in instanceIdExpiryCallBack() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite5/recipes-phosphor/mctp/files/ |
H A D | mctp_setup.sh | 5 # Mapping table: "devname:iface:physaddr:eid" 19 local eid="$4" 21 if is_eid_assigned "$eid"; then 22 … echo "Setting up $devname on $iface (EID=$eid, Addr=$physaddr): Skipped (EID already assigned)" 28 "au.com.codeconstruct.MCTP.BusOwner1" AssignEndpointStatic ayy 1 "$physaddr" "$eid"; then 29 echo "Setting up $devname on $iface (EID=$eid, Addr=$physaddr): Success" 31 echo "Setting up $devname on $iface (EID=$eid, Addr=$physaddr): Failed" >&2 37 IFS=":" read -r devname iface physaddr eid <<< "$entry" 39 setup_endpoint "$devname" "$iface" "$physaddr" "$eid" 47 IFS=":" read -r devname iface physaddr eid <<< "$entry" [all …]
|
/openbmc/dbus-sensors/src/nvidia-gpu/ |
H A D | MctpRequester.cpp | 48 uint8_t eid = respAddr->smctp_addr.s_addr; in processRecvMsg() local 50 if (!completionCallbacks.contains(eid)) in processRecvMsg() 53 "MctpRequester failed to get the callback for the EID: {EID}", in processRecvMsg() 54 "EID", static_cast<int>(eid)); in processRecvMsg() 58 auto& callback = completionCallbacks.at(eid); in processRecvMsg() 110 uint8_t eid, const std::span<const uint8_t> reqMsg, in handleSendMsgCompletion() argument 114 if (!completionCallbacks.contains(eid)) in handleSendMsgCompletion() 117 "MctpRequester failed to get the callback for the EID: {EID}", in handleSendMsgCompletion() 118 "EID", static_cast<int>(eid)); in handleSendMsgCompletion() 122 auto& callback = completionCallbacks.at(eid); in handleSendMsgCompletion() [all …]
|
H A D | NvidiaDeviceDiscovery.cpp | 47 const std::string& path, uint8_t eid, int sendRecvMsgResult, in processQueryDeviceIdResponse() argument 53 … "Error processing MCTP endpoint with eid {EID} : sending message over MCTP failed, rc={RC}", in processQueryDeviceIdResponse() 54 "EID", eid, "RC", sendRecvMsgResult); in processQueryDeviceIdResponse() 70 …"Error processing MCTP endpoint with eid {EID} : decode failed, rc={RC}, cc={CC}, reasonCode={RESC… in processQueryDeviceIdResponse() 71 "EID", eid, "RC", rc, "CC", cc, "RESC", reasonCode); in processQueryDeviceIdResponse() 80 "Found the GPU with EID {EID}, DeviceType {DEVTYPE}, InstanceId {IID}.", in processQueryDeviceIdResponse() 81 "EID", eid, "DEVTYPE", responseDeviceType, "IID", in processQueryDeviceIdResponse() 88 std::make_shared<GpuDevice>(configs, gpuName, path, conn, eid, in processQueryDeviceIdResponse() 96 "Found the SMA Device with EID {EID}, DeviceType {DEVTYPE}, InstanceId {IID}.", in processQueryDeviceIdResponse() 97 "EID", eid, "DEVTYPE", responseDeviceType, "IID", in processQueryDeviceIdResponse() [all …]
|
H A D | NvidiaGpuSensor.cpp | 40 const std::string& sensorConfiguration, const uint8_t eid, uint8_t sensorId, in NvidiaGpuTempSensor() argument 46 eid(eid), sensorId{sensorId}, mctpRequester(mctpRequester), in NvidiaGpuTempSensor() 87 …"Error updating Temperature Sensor for eid {EID} and sensor id {SID} : sending message over MCTP f… in processResponse() 88 "EID", eid, "SID", sensorId, "RC", sendRecvMsgResult); in processResponse() 102 "Error updating Temperature Sensor for eid {EID} and sensor id {SID} : decode failed. " in processResponse() 104 "EID", eid, "SID", sensorId, "RC", rc, "CC", cc, "RESC", in processResponse() 120 … "Error updating Temperature Sensor for eid {EID} and sensor id {SID} : encode failed, rc={RC}", in update() 121 "EID", eid, "SID", sensorId, "RC", rc); in update() 125 eid, getTemperatureReadingRequest, getTemperatureReadingResponse, in update()
|
H A D | NvidiaGpuEnergySensor.cpp | 42 const std::string& sensorConfiguration, const uint8_t eid, uint8_t sensorId, in NvidiaGpuEnergySensor() argument 48 eid(eid), sensorId{sensorId}, mctpRequester(mctpRequester), in NvidiaGpuEnergySensor() 88 …"Error updating Energy Sensor for eid {EID} and sensor id {SID} : sending message over MCTP failed… in processResponse() 89 "EID", eid, "SID", sensorId, "RC", sendRecvMsgResult); in processResponse() 103 …"Error updating Energy Sensor for eid {EID} and sensor id {SID} : decode failed, rc={RC}, cc={CC},… in processResponse() 104 "EID", eid, "SID", sensorId, "RC", rc, "CC", cc, "RESC", in processResponse() 121 … "Error updating Energy Sensor for eid {EID} and sensor id {SID} : encode failed, rc={RC}", in update() 122 "EID", eid, "SID", sensorId, "RC", rc); in update() 127 eid, request, response, in update()
|
H A D | NvidiaGpuPowerSensor.cpp | 42 const std::string& sensorConfiguration, uint8_t eid, uint8_t sensorId, in NvidiaGpuPowerSensor() argument 48 eid(eid), sensorId{sensorId}, in NvidiaGpuPowerSensor() 90 …"Error updating Power Sensor for eid {EID} and sensor id {SID} : sending message over MCTP failed,… in processResponse() 91 "EID", eid, "SID", sensorId, "RC", sendRecvMsgResult); in processResponse() 105 …"Error updating Power Sensor eid {EID} and sensor id {SID} : decode failed, rc={RC}, cc={CC}, reas… in processResponse() 106 "EID", eid, "SID", sensorId, "RC", rc, "CC", cc, "RESC", in processResponse() 124 … "Error updating Temperature Sensor for eid {EID} and sensor id {SID} : encode failed, rc={RC}", in update() 125 "EID", eid, "SID", sensorId, "RC", rc); in update() 129 eid, request, response, in update()
|
H A D | NvidiaGpuThresholds.cpp | 55 void readThermalParameter(uint8_t eid, uint8_t id, in readThermalParameter() argument 69 … "Error reading thermal parameter for eid {EID} and parameter id {PID} : encode failed. rc={RC}", in readThermalParameter() 70 "EID", eid, "PID", id, "RC", rc); in readThermalParameter() 76 eid, *reqMsg, *respMsg, in readThermalParameter() 84 uint8_t eid, const std::shared_ptr<std::vector<uint8_t>>& ids, in readThermalParameterCallback() argument 93 "Error reading thermal parameter for eid {EID} and parameter id {PID}. rc={RC}", in readThermalParameterCallback() 94 "EID", eid, "PID", (*ids)[index], "RC", rc); in readThermalParameterCallback() 108 readThermalParameter(eid, (*ids)[index], mctpRequester, in readThermalParameterCallback() 109 std::bind_front(readThermalParameterCallback, eid, in readThermalParameterCallback() 116 uint8_t eid, const std::vector<uint8_t>& ids, in readThermalParameters() argument [all …]
|
/openbmc/qemu/scripts/ |
H A D | replay-dump.py | 95 Decoder = namedtuple("Decoder", "eid name fn") 99 decoder = next((d for d in table if d.eid == index), None) 106 return decoder.fn(decoder.eid, decoder.name, dumpfile) 109 def print_event(eid, name, string=None, event_count=None): argument 115 print("%d:%s(%d) %s" % (event_count, name, eid, string)) 117 print("%d:%s(%d)" % (event_count, name, eid)) 122 def decode_unimp(eid, name, _unused_dumpfile): argument 127 def decode_plain(eid, name, _unused_dumpfile): argument 129 print_event(eid, name, "no data") 133 def swallow_async_qword(eid, name, dumpfile): argument [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
H A D | rescan-cxl-eid | 11 # Function to check if CXL EID needs to be established for the slot 22 # Function to check if an EID is already set 24 local eid="$1" 25 …TP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$eid" xyz.openbmc_project.MCTP.Endpoint EID … 29 # Function to set up EID for CXL1 or CXL2 37 # Function to check readiness and setup EID 39 local eid="$1" 45 echo "${cxl_type} EID ${eid} is ready; attempting setup." 47 echo "${cxl_type} EID $eid setup was successful." 49 echo "${cxl_type} EID $eid setup failed." [all …]
|
H A D | wait-until-mctp-EID-remove | 15 echo "Starting MCTP EID check for SLOT: $SLOT" 20 …/com/codeconstruct/mctp1/networks/1/endpoints/"$SD_EID" xyz.openbmc_project.MCTP.Endpoint EID 2>&1) 21 …/com/codeconstruct/mctp1/networks/1/endpoints/"$WF_EID" xyz.openbmc_project.MCTP.Endpoint EID 2>&1) 31 echo "SD EID $SD_EID is removed." 34 echo "SD EID $SD_EID is still present." 38 echo "WF EID $WF_EID is removed." 41 echo "WF EID $WF_EID is still present." 45 echo "Both SD EID $SD_EID and WF EID $WF_EID are removed successfully." 50 echo "SD EID $SD_EID not removed yet." 53 echo "WF EID $WF_EID not removed yet." [all …]
|
H A D | wait-until-mctp-connection-done | 3 EID=$(($1*10)) 7 …MCTP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$EID" xyz.openbmc_project.MCTP.Endpoint EID 11 echo "MCTP ETD $EID connection successfully." 15 echo "MCTP EID $EID not connection yet." 20 echo "timeout waiting for MCTP EID $EID connection."
|
/openbmc/openbmc/meta-facebook/meta-santabarbara/recipes-phosphor/mctp/files/ |
H A D | mctp_setup.sh | 5 # Mapping table: "DeviceLabel:PhysicalAddress:EID" 76 local eid="$4" 78 if is_eid_assigned "$eid"; then 79 echo "Setting up $label on $iface (EID=$eid, Addr=$physaddr): Skipped (EID already assigned)" 85 "au.com.codeconstruct.MCTP.BusOwner1" AssignEndpointStatic ayy 1 "$physaddr" "$eid"; then 86 echo "Setting up $label on $iface (EID=$eid, Addr=$physaddr): Success" 88 echo "Setting up $label on $iface (EID [all...] |
/openbmc/pldm/requester/test/ |
H A D | handler_test.cpp | 31 mctp_eid_t eid = 0; member in HandlerTest 61 void pldmResponseCallBack(mctp_eid_t /*eid*/, const pldm_msg* response, in pldmResponseCallBack() 82 auto instanceId = instanceIdDb.next(eid); in TEST_F() 85 eid, instanceId, 0, 0, std::move(request), in TEST_F() 86 [this](mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen) { in TEST_F() argument 87 this->pldmResponseCallBack(eid, response, respMsgLen); in TEST_F() 93 reqHandler.handleResponse(eid, instanceId, 0, 0, responsePtr, in TEST_F() 105 auto instanceId = instanceIdDb.next(eid); in TEST_F() 108 eid, instanceId, 0, 0, std::move(request), in TEST_F() 109 [this](mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen) { in TEST_F() argument [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | rescan-wf-bic | 9 # slot and not probe MCTP EID yet, and then go to the workaround to probe 10 # MCTP EID again. In this case we found that MCTP EID was already probed 12 # MCTP response timeout for EID e.g. 72 (WF-7) occurred and it caused mctpd 13 # to remove this EID 72 due to this timeout and then PLDM sensor missing happened. 20 # This method of probing the Wf EID through SetupEndpointByConfigPath 21 # should ensure that it only executes if the Wf EID has truly not been probed. 22 # Check if we got WF BIC's EID 24 …P1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$wf_eid" xyz.openbmc_project.MCTP.Endpoint EID 28 echo "WF BIC's EID $wf_eid found successfully" 31 echo "WF BIC's EID $wf_eid not found yet." [all …]
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-catalina/plat-svc/files/ |
H A D | iob-nic-temp-read | 25 local eid=$1 26 if mapper get-service "/au/com/codeconstruct/mctp1/networks/1/endpoints/${eid}" 2>/dev/null; then 27 …busctl call au.com.codeconstruct.MCTP1 "/au/com/codeconstruct/mctp1/networks/1/endpoints/${eid}" a… 51 echo "Set EID:${mctp_eid} at INTF:${mctp_intf} failed. Retry $cur_retry/$MAX_RETRY" 61 # Set EID for IOB0_NIC0 and IOB0_NIC1 67 # Set EID for IOB1_NIC0 and IOB1_NIC1 76 local eid=$1 80 pldmtool_out="$(pldmtool platform GetSensorReading -i "$snr_id" -r 0 -m "$eid")" 91 local eid="$1" 96 if ! snr_val="$(get_numeric_sensor_by_eid "${eid}" "${snr_id}")"; then [all …]
|
H A D | frontend-nic-temp-read | 11 local eid=$1 12 if mapper get-service "/au/com/codeconstruct/mctp1/networks/1/endpoints/${eid}" 2>/dev/null; then 13 …busctl call au.com.codeconstruct.MCTP1 "/au/com/codeconstruct/mctp1/networks/1/endpoints/${eid}" a… 35 echo "Set EID:${mctp_eid} at INTF:${mctp_intf} failed. Retry $cur_retry/$MAX_RETRY" 51 local eid=$1 55 pldmtool_out="$(pldmtool platform GetSensorReading -i "$snr_id" -r 0 -m "$eid")" 66 local eid="$1" 71 if ! snr_val="$(get_numeric_sensor_by_eid "${eid}" "${snr_id}")"; then 72 …echo "update_numeric_sensor_value(): pldmtool failed, eid: $eid, snr_id: $snr_id, snr_name: $snr_n…
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-networking/mctp/ |
H A D | mctp_%.bbappend | 5 file://setup-eid.conf \ 6 file://setup-local-eid \ 7 file://setup-bic-eid \ 17 install -m 0644 ${UNPACKDIR}/setup-eid.conf \ 18 ${override_dir}/setup-eid.conf 22 install -m 0755 ${UNPACKDIR}/setup-local-eid \ 24 install -m 0755 ${UNPACKDIR}/setup-bic-eid \
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/oem/ibm/ |
H A D | pldm_oem_cmds.cpp | 71 mctp_eid_t eid = defaultEIDValue; in readEID() local 76 lg2::error("Could not open host EID file"); in readEID() 86 eid = strtol(eidStr.c_str(), nullptr, 10); in readEID() 90 lg2::error("EID file was empty"); in readEID() 97 return eid; in readEID() 113 mctp_eid_t eid = readEID(); in requestOffload() local 115 auto instanceID = getPLDMInstanceID(eid); in requestOffload() 124 freePLDMInstanceID(instanceID, eid); in requestOffload() 130 rc = openPLDM(eid); in requestOffload() 133 freePLDMInstanceID(instanceID, eid); in requestOffload() [all …]
|
/openbmc/libpldm/src/transport/ |
H A D | mctp-demux.c | 29 /* In the future this probably needs to move to a tid-eid-uuid/network 84 pldm_tid_t tid, mctp_eid_t *eid) in pldm_transport_mctp_demux_get_eid() argument 89 *eid = i; in pldm_transport_mctp_demux_get_eid() 93 *eid = -1; in pldm_transport_mctp_demux_get_eid() 99 mctp_eid_t eid, pldm_tid_t *tid) in pldm_transport_mctp_demux_get_tid() argument 102 if (ctx->tid_eid_map[eid] != 0) { in pldm_transport_mctp_demux_get_tid() 103 *tid = ctx->tid_eid_map[eid]; in pldm_transport_mctp_demux_get_tid() 111 pldm_tid_t tid, mctp_eid_t eid) in pldm_transport_mctp_demux_map_tid() argument 113 ctx->tid_eid_map[eid] = tid; in pldm_transport_mctp_demux_map_tid() 121 mctp_eid_t eid) in pldm_transport_mctp_demux_unmap_tid() argument [all …]
|