Lines Matching +full:- +full:chn +full:- +full:disabled

3  * Copyright (c)  2018-present Facebook.
9 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <phosphor-logging/log.hpp>
58 //----------------------------------------------------------------------
60 //----------------------------------------------------------------------
95 return -1; in fromHexStr()
100 return -1; in fromHexStr()
191 return -1; in clear()
222 return -1; in getEntry()
235 return -1; in addEntry()
277 errLog = "Cause of Time change - "; in logSysEvent()
297 errLog += " - First Time"; in logSysEvent()
299 errLog += " - Second Time"; in logSysEvent()
370 errLog += ", TPM Self-Test FAIL Detected"; in logPostErr()
471 "IRP0", "IRP1", " IIO-Core", "VT-d", "Intel Quick Data", in logIioErr()
477 byteToStr(data[1]) + " - "; in logIioErr()
514 errLog = "Correctable ECC error Logging Disabled"; in logMemErr()
521 errLog = "Correctable ECC error Logging Limit Disabled"; in logMemErr()
532 errLog = "Correctable Memory Error Logging Disabled"; in logMemErr()
551 * Bit[7:5]: Socket number (Range: 0-7) in logMemErr()
552 * Bit[4:3]: Channel number (Range: 0-3) in logMemErr()
553 * Bit[2:0]: DIMM number (Range: 0-7) in logMemErr()
558 std::string chStr = "CHN# " + std::to_string((data[2] & 0x18) >> 3); in logMemErr()
598 /* CHN info not valid */ in logMemErr()
724 "Flash Wear-Out Protection Warning", in logSPSFwHealth()
729 "Auto-configuration finished", in logSPSFwHealth()
732 "CPU Debug Capability Disabled", in logSPSFwHealth()
770 "Lower Non-critical", in logPCHThermal()
774 "Lower Non-recoverable", in logPCHThermal()
777 "Upper Non-critical", in logPCHThermal()
781 "Upper Non-recoverable"}; in logPCHThermal()
813 "Real-time Clock Synchronization Failure", in logNmHealth()
858 errLog = "Threshold Number:" + std::to_string(thresNum) + "-" + in logNmThreshold()
951 if (data->sensorType == 0x1F) in parseSelHelper()
954 switch (data->eventData1 & 0xF) in parseSelHelper()
974 auto findSensorName = sensorNameTable.find(data->sensorNum); in parseSelHelper()
982 switch (data->sensorNum) in parseSelHelper()
987 findSensorName->second.second(&(data->sensorType), errStr); in parseSelHelper()
991 findSensorName->second.second(&(data->eventData1), errStr); in parseSelHelper()
995 if (((data->eventData3 & 0x80) >> 7) == 0) in parseSelHelper()
1008 uint8_t chNum = (data->eventData3 & 0x18) >> 3; in parseDimmPhyloc()
1009 uint8_t dimmNum = data->eventData3 & 0x7; in parseDimmPhyloc()
1010 uint8_t rankNum = data->eventData2 & 0x03; in parseDimmPhyloc()
1011 uint8_t nodeNum = (data->eventData3 & 0xE0) >> 5; in parseDimmPhyloc()
1061 switch (data->sensorNum) in parseStdSel()
1064 switch (data->eventData1 & 0x0F) in parseStdSel()
1069 << data->eventData3 << " ECC err"; in parseStdSel()
1075 << data->eventData3 << " UECC err"; in parseStdSel()
1089 if ((data->eventData1 & 0x0F) == 0) in parseStdSel()
1091 errStr = "Correctable Memory Error Logging Disabled"; in parseStdSel()
1103 errStr += " (DIMM " + std::to_string(data->eventData3) + ")"; in parseStdSel()
1104 errStr += " Logical Rank " + std::to_string(data->eventData2 & 0x03); in parseStdSel()
1106 switch ((data->eventData2 & 0x0C) >> 2) in parseStdSel()
1115 errStr += " CHN info not valid"; in parseStdSel()
1124 if (((data->eventType & 0x80) >> 7) == 0) in parseStdSel()
1141 switch (data->recordType) in parseOemSel()
1144 tmpStream << "VID:0x" << std::setw(2) << (int)data->oemData[1] in parseOemSel()
1145 << std::setw(2) << (int)data->oemData[0] << " DID:0x" in parseOemSel()
1146 << std::setw(2) << (int)data->oemData[3] << std::setw(2) in parseOemSel()
1147 << (int)data->oemData[2] << " Slot:0x" << std::setw(2) in parseOemSel()
1148 << (int)data->oemData[4] << " Error ID:0x" << std::setw(2) in parseOemSel()
1149 << (int)data->oemData[5]; in parseOemSel()
1153 << (int)data->oemData[1] << " MSCOD:0x" << std::setw(2) in parseOemSel()
1154 << (int)data->oemData[3] << std::setw(2) in parseOemSel()
1155 << (int)data->oemData[2] << " MCACOD:0x" << std::setw(2) in parseOemSel()
1156 << (int)data->oemData[5] << std::setw(2) in parseOemSel()
1157 << (int)data->oemData[4]; in parseOemSel()
1160 int bank = (data->oemData[1] & 0xf0) >> 4; in parseOemSel()
1161 int col = ((data->oemData[1] & 0x0f) << 8) | data->oemData[2]; in parseOemSel()
1164 << (int)data->oemData[0] << " Bank:0x" << std::setw(2) in parseOemSel()
1167 << (int)data->oemData[3] << std::setw(2) in parseOemSel()
1168 << (int)data->oemData[4] << std::setw(2) in parseOemSel()
1169 << (int)data->oemData[5]; in parseOemSel()
1207 uint8_t* ptr = data->oemData; in parseOemUnifiedSel()
1225 "TPM Self-Test Fail", in parseOemUnifiedSel()
1249 "Memory disable/map-out for FRB", in parseOemUnifiedSel()
1261 "Bank VLS", "r-Bank VLS + re-buddy", "r-Bank VLS + Rank VLS", in parseOemUnifiedSel()
1262 "r-Rank VLS + re-buddy", "Reserved"}; in parseOemUnifiedSel()
1284 static_cast<uint8_t>(dimmErr.size() - 1))]); in parseOemUnifiedSel()
1308 eventType, static_cast<uint8_t>(postEvent.size() - 1))]); in parseOemUnifiedSel()
1328 ptr[9], static_cast<uint8_t>(certErr.size() - 1))]); in parseOemUnifiedSel()
1341 eventType, static_cast<uint8_t>(pcieEvent.size() - 1))]); in parseOemUnifiedSel()
1371 memEvent.size() - 1))], in parseOemUnifiedSel()
1374 static_cast<uint8_t>(memAdddc.size() - 1))]); in parseOemUnifiedSel()
1380 static_cast<uint8_t>(memEvent.size() - 1))]); in parseOemUnifiedSel()
1396 static_cast<uint8_t>(pprEvent.size() - 1))], in parseOemUnifiedSel()
1433 if (data->sensorType == 0x1F) in parseSelData()
1439 auto findSensorName = sensorNameTable.find(data->sensorNum); in parseSelData()
1446 sensorName = findSensorName->second.first; in parseSelData()
1451 ptr = &(data->eventData1); in parseSelData()
1458 << std::setw(2) << (int)(data->sensorNum); in parseSelData()
1468 ptr = data->mfrId; in parseSelData()
1473 ptr = data->oemData; in parseSelData()
1497 ptr = data->oemData; in parseSelData()
1553 if (reqData->reservID != 0) in ipmiStorageGetSELEntry()
1555 if (!checkSELReservation(reqData->reservID)) in ipmiStorageGetSELEntry()
1568 if (reqData->recordID == fb_oem::ipmi::sel::firstEntry) in ipmiStorageGetSELEntry()
1571 reqData->recordID = 1; in ipmiStorageGetSELEntry()
1573 else if (reqData->recordID == fb_oem::ipmi::sel::lastEntry) in ipmiStorageGetSELEntry()
1576 reqData->recordID = selCnt; in ipmiStorageGetSELEntry()
1581 if (selObj.getEntry(reqData->recordID, ipmiRaw) < 0) in ipmiStorageGetSELEntry()
1597 if (reqData->recordID == selCnt) in ipmiStorageGetSELEntry()
1603 nextRecord = reqData->recordID + 1; in ipmiStorageGetSELEntry()
1606 if (reqData->readLen == fb_oem::ipmi::sel::entireRecord) in ipmiStorageGetSELEntry()
1612 if (reqData->offset >= fb_oem::ipmi::sel::selRecordSize || in ipmiStorageGetSELEntry()
1613 reqData->readLen > fb_oem::ipmi::sel::selRecordSize) in ipmiStorageGetSELEntry()
1619 auto diff = fb_oem::ipmi::sel::selRecordSize - reqData->offset; in ipmiStorageGetSELEntry()
1620 auto readLength = std::min(diff, static_cast<int>(reqData->readLen)); in ipmiStorageGetSELEntry()
1624 recPartData.push_back(recDataBytes[i + reqData->offset]); in ipmiStorageGetSELEntry()
1630 // Retry function to log the SEL entry message and make D-Bus call
1645 // Create D-Bus call in logWithRetry()
1654 // Attempt to make the D-Bus call in logWithRetry()
1656 return true; // D-Bus call successful, exit the loop in logWithRetry()
1660 lg2::error("D-Bus call failed: {ERROR}", "ERROR", e); in logWithRetry()
1689 fb_oem::ipmi::sel::parseSelData((ctx->hostIdx + 1), data, logErr); in ipmiStorageAddSELEntry()