| /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 | inventory_manager.hpp | 85 * @param[in] eid - Remote MCTP endpoint 89 void queryDeviceIdentifiers(mctp_eid_t eid, const pldm_msg* response, 94 * @param[in] eid - Remote MCTP endpoint 98 void queryDownstreamDevices(mctp_eid_t eid, const pldm_msg* response, 103 * @param[in] eid - Remote MCTP endpoint 107 void queryDownstreamIdentifiers(mctp_eid_t eid, const pldm_msg* response, 112 * @param[in] eid - Remote MCTP endpoint 117 mctp_eid_t eid, const pldm_msg* response, size_t respMsgLen); 124 * @param[in] eid - Remote MCTP endpoint 128 void getFirmwareParameters(mctp_eid_t eid, cons [all...] |
| H A D | firmware_inventory_manager.cpp | 30 // Determine the inventory board path for this EID. If Entity-Manager in createFirmwareEntry() 36 auto& eid = softwareIdentifier.first; in createFirmwareEntry() 37 const auto inventoryPath = getInventoryPath(eid); in createFirmwareEntry() 57 void FirmwareInventoryManager::deleteFirmwareEntry(const pldm::eid& eid) in getBoardPath() 60 [&](const auto& pair) { return pair.first.first == eid; }); in getBoardPath() 63 return softwareIdentifier.first == eid; in getBoardPath() 96 const pldm::eid& eid) const in getInventoryPath() 100 if (std::get<pldm::eid>(configMctpInf 29 auto& eid = softwareIdentifier.first; createFirmwareEntry() local 50 deleteFirmwareEntry(const pldm::eid & eid) deleteFirmwareEntry() argument [all...] |
| H A D | firmware_inventory_manager.hpp | 52 * @param[in] softwareIdentifier - Software identifier containing EID and 66 * @brief Deletes the firmware inventory entry for the given EID 67 * @param[in] eid - MCTP endpoint ID for which the firmware inventory entry 70 void deleteFirmwareEntry(const pldm::eid& eid); 74 * @brief Get the inventory path associated with the given EID 75 * @param[in] eid - MCTP endpoint ID 78 std::optional<InventoryPath> getInventoryPath(const pldm::eid& eid) const; 89 * identifiers (EID an [all...] |
| /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/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/pldm/oem/meta/ |
| H A D | utils.cpp | 11 /* @brief map PLDM TID to MCTP EID; currently, they have a one-to-one 14 eid mapTIDtoEID(const pldm_tid_t& tid) in mapTIDtoEID() 16 eid EID = static_cast<eid>(tid); in mapTIDtoEID() local 17 return EID; in mapTIDtoEID() 24 [[maybe_unused]] const eid& EID = mapTIDtoEID(tid); in checkMetaIana() local 30 [[maybe_unused]] const eid& EID = mapTIDtoEID(tid); in getSlotNumberStringByTID() local
|
| /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/dbus-sensors/src/nvidia-gpu/ |
| H A D | MctpRequester.cpp | 89 std::optional<uint8_t> expectedEid = recvEndPoint.eid(); in processRecvMsg() 109 uint8_t eid = *expectedEid; in processRecvMsg() local 116 handleResult(eid, static_cast<std::error_code>(ec), {}); in processRecvMsg() 132 lg2::error("MctpRequester: Unable to decode message from eid {EID}", in processRecvMsg() 133 "EID", eid); in processRecvMsg() 147 auto it = requestContextQueues.find(eid); in processRecvMsg() 162 lg2::error("Invalid iid {IID} from eid {EID}, expected {E_IID}", "IID", in processRecvMsg() 163 iid, "EID", eid, "E_IID", it->second.iid); in processRecvMsg() 167 handleResult(eid, std::error_code{}, responseBuffer); in processRecvMsg() 171 uint8_t eid, const boost::system::error_code& ec, size_t /* length */) in handleSendMsgCompletion() argument [all …]
|
| H A D | NvidiaGpuSensor.cpp | 41 const std::string& sensorConfiguration, const uint8_t eid, uint8_t sensorId, in NvidiaGpuTempSensor() argument 47 eid(eid), sensorId{sensorId}, mctpRequester(mctpRequester), in NvidiaGpuTempSensor() 82 … "Error initializing Type Interface for Temperature Sensor for eid {EID} and sensor id {SID}", 83 "EID", eid, "SID", sensorId); 113 …"Error updating Temperature Sensor for eid {EID} and sensor id {SID} : sending message over MCTP f… in processResponse() 114 "EID", eid, "SID", sensorId, "RC", ec.message()); in processResponse() 128 "Error updating Temperature Sensor for eid {EID} and sensor id {SID} : decode failed. " in processResponse() 130 "EID", eid, "SID", sensorId, "RC", rc, "CC", cc, "RESC", in processResponse() 146 … "Error updating Temperature Sensor for eid {EID} and sensor id {SID} : encode failed, rc={RC}", in update() 147 "EID", eid, "SID", sensorId, "RC", rc); in update() [all …]
|
| H A D | NvidiaGpuPowerPeakReading.cpp | 32 mctp::MctpRequester& mctpRequester, const std::string& name, uint8_t eid, 34 eid(eid), sensorId{sensorId}, mctpRequester(mctpRequester), 74 "Error updating Peak Power Sensor for eid {EID} and sensor id {SID} : sending message over MCTP failed, rc={RC}", in processResponse() 75 "EID", eid, "SID", sensorId, "RC", ec.message()); in processResponse() 89 "Error updating Peak Power Sensor eid {EID} and sensor id {SID} : decode failed, rc={RC}, cc={CC}, reasonCode={RESC}", in update() 90 "EID", ei in update() 29 NvidiaGpuPowerPeakReading(mctp::MctpRequester & mctpRequester,const std::string & name,uint8_t eid,uint8_t sensorId,sdbusplus::asio::object_server & objectServer) NvidiaGpuPowerPeakReading() argument [all...] |
| H A D | NvidiaDeviceDiscovery.cpp | 51 const std::string& path, uint8_t eid, in processQueryDeviceIdResponse() 58 "Error processing MCTP endpoint with eid {EID} : sending message over MCTP failed, rc={RC}", in processQueryDeviceIdResponse() 59 "EID", eid, "RC", sendRecvMsgResult.message()); in processQueryDeviceIdResponse() 75 "Error processing MCTP endpoint with eid {EID} : decode failed, rc={RC}, cc={CC}, reasonCode={RESC}", in processQueryDeviceIdResponse() 76 "EID", eid, "RC", rc, "CC", cc, "RESC", reasonCode); in processQueryDeviceIdResponse() 85 "Found the GPU with EID {EI in processQueryDeviceIdResponse() 47 processQueryDeviceIdResponse(boost::asio::io_context & io,sdbusplus::asio::object_server & objectServer,boost::container::flat_map<std::string,std::shared_ptr<GpuDevice>> & gpuDevices,boost::container::flat_map<std::string,std::shared_ptr<SmaDevice>> & smaDevices,const std::shared_ptr<sdbusplus::asio::connection> & conn,mctp::MctpRequester & mctpRequester,const SensorConfigs & configs,const std::string & path,uint8_t eid,const std::error_code & sendRecvMsgResult,std::span<const uint8_t> queryDeviceIdentificationResponse) processQueryDeviceIdResponse() argument 128 queryDeviceIdentification(boost::asio::io_context & io,sdbusplus::asio::object_server & objectServer,boost::container::flat_map<std::string,std::shared_ptr<GpuDevice>> & gpuDevices,boost::container::flat_map<std::string,std::shared_ptr<SmaDevice>> & smaDevices,const std::shared_ptr<sdbusplus::asio::connection> & conn,mctp::MctpRequester & mctpRequester,const SensorConfigs & configs,const std::string & path,uint8_t eid) queryDeviceIdentification() argument 173 uint8_t eid{}; processEndpoint() local [all...] |
| H A D | NvidiaGpuPowerSensor.cpp | 43 const std::string& sensorConfiguration, uint8_t eid, uint8_t sensorId, in NvidiaGpuPowerSensor() argument 49 eid(eid), sensorId{sensorId}, in NvidiaGpuPowerSensor() 92 …"Error updating Power Sensor for eid {EID} and sensor id {SID} : sending message over MCTP failed,… in processResponse() 93 "EID", eid, "SID", sensorId, "RC", ec.message()); in processResponse() 107 …"Error updating Power Sensor eid {EID} and sensor id {SID} : decode failed, rc={RC}, cc={CC}, reas… in processResponse() 108 "EID", eid, "SID", sensorId, "RC", rc, "CC", cc, "RESC", in processResponse() 127 … "Error updating Temperature Sensor for eid {EID} and sensor id {SID} : encode failed, rc={RC}", in update() 128 "EID", eid, "SID", sensorId, "RC", rc); in update() 132 eid, request, in update()
|
| H A D | NvidiaGpuEnergySensor.cpp | 43 const std::string& sensorConfiguration, const uint8_t eid, uint8_t sensorId, in NvidiaGpuEnergySensor() argument 49 eid(eid), sensorId{sensorId}, mctpRequester(mctpRequester), in NvidiaGpuEnergySensor() 90 …"Error updating Energy Sensor for eid {EID} and sensor id {SID} : sending message over MCTP failed… in processResponse() 91 "EID", eid, "SID", sensorId, "RC", ec.message()); in processResponse() 105 …"Error updating Energy Sensor for eid {EID} and sensor id {SID} : decode failed, rc={RC}, cc={CC},… in processResponse() 106 "EID", eid, "SID", sensorId, "RC", rc, "CC", cc, "RESC", in processResponse() 123 … "Error updating Energy Sensor for eid {EID} and sensor id {SID} : encode failed, rc={RC}", in update() 124 "EID", eid, "SID", sensorId, "RC", rc); in update() 129 eid, request, in update()
|
| /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-devices-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-devices-eid \
|
| /openbmc/openbmc/meta-facebook/meta-santabarbara/recipes-phosphor/mctp/files/ |
| H A D | mctp_setup.sh | 8 # Mapping table: "DeviceLabel:PhysicalAddress:EID" 96 local eid="$4" 98 if is_eid_assigned "$eid"; then 99 … echo "Setting up $label on $iface (EID=$eid, Addr=$physaddr): Skipped (EID already assigned)" 105 "au.com.codeconstruct.MCTP.BusOwner1" AssignEndpointStatic ayy 1 "$physaddr" "$eid"; then 106 echo "Setting up $label on $iface (EID=$eid, Addr=$physaddr): Success" 108 echo "Setting up $label on $iface (EID=$eid, Addr=$physaddr): Failed" >&2 114 IFS=":" read -r label physaddr eid <<< "$entry" 121 setup_endpoint "$iface" "$label" "$physaddr" "$eid" 129 IFS=":" read -r label physaddr eid <<< "$entry" [all …]
|
| /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 …]
|