PHAL: Add BMC0001 procedure callout for SBE boot error
Added procedure callout during SBE boot error processing
function, when fail to get boot processor information.
Tested:
"Callout Section": {
"Callout Count": "1",
"Callouts": [{
"FRU Type": "Maintenance Procedure Required",
"Priority": "Mandatory, replace all with this
type as a unit",
"Procedure": "BMC0001"
}]
}
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: Ifd9311e25b8447409d901ba446185337e38ef305
diff --git a/extensions/phal/phal_error.cpp b/extensions/phal/phal_error.cpp
index 0a5246e..259cf27 100644
--- a/extensions/phal/phal_error.cpp
+++ b/extensions/phal/phal_error.cpp
@@ -543,10 +543,16 @@
if (procTarget == nullptr)
{
log<level::ERR>("processSbeBootError: fail to get primary processor");
- // Initialise the SRC6 with default data, not used in this use case.
- pelAdditionalData.emplace_back("SRC6", "00000000");
- openpower::pel::createPEL(
- "org.open_power.Processor.Error.SbeBootFailure", pelAdditionalData);
+ // Add BMC code callout and create PEL
+ json jsonCalloutDataList;
+ jsonCalloutDataList = json::array();
+ json jsonCalloutData;
+ jsonCalloutData["Procedure"] = "BMC0001";
+ jsonCalloutData["Priority"] = "H";
+ jsonCalloutDataList.emplace_back(jsonCalloutData);
+ openpower::pel::createErrorPEL(
+ "org.open_power.Processor.Error.SbeBootFailure",
+ jsonCalloutDataList);
return;
}
// SBE error object.