PHAL: Modify sbe error pel interface to pass in error type
At present all sbe related pels are created with severity
as Error(unrecoverable), modifying the API to specify the
severity type by the caller.
Some of the chip-op is expected to fail in power-off/error path.
This commit will help to set custom priority of the failure.
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: If072061bf995b2db58259eba64e7e8f7ace20f6c
diff --git a/extensions/phal/create_pel.cpp b/extensions/phal/create_pel.cpp
index 6ba71d0..13be9ba 100644
--- a/extensions/phal/create_pel.cpp
+++ b/extensions/phal/create_pel.cpp
@@ -87,7 +87,7 @@
}
uint32_t createSbeErrorPEL(const std::string& event, const sbeError_t& sbeError,
- const FFDCData& ffdcData)
+ const FFDCData& ffdcData, const Severity severity)
{
uint32_t plid = 0;
std::map<std::string, std::string> additionalData;
@@ -132,8 +132,7 @@
opLoggingInterface, "CreatePELWithFFDCFiles");
auto level =
sdbusplus::xyz::openbmc_project::Logging::server::convertForMessage(
- sdbusplus::xyz::openbmc_project::Logging::server::Entry::Level::
- Error);
+ severity);
method.append(event, level, additionalData, pelFFDCInfo);
auto response = bus.call(method);