Stop instructions before collecting dump
The instructions need to be stopped before attempting to collect
the hostboot dump. This commit calls stop instructions chip-op
on each processor SBE to make sure the instructions are stopped
before collecting the dump.
If some SBEs are not ready to accept the chip-op or timed out
the hostboot dump will not be collected from those SBEs and an
SBE dump will lbe collected in the case of a timeout.
Tests:
Tested hardware dump and hostboot dump successfully
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I0b0ff9e6c6d62187a680395931de0a4dfaff579a
diff --git a/dump/create_pel.cpp b/dump/create_pel.cpp
index 916d312..f6b15ee 100644
--- a/dump/create_pel.cpp
+++ b/dump/create_pel.cpp
@@ -31,7 +31,7 @@
constexpr auto opLoggingInterface = "org.open_power.Logging.PEL";
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::unordered_map<std::string, std::string> additionalData = {
@@ -77,8 +77,7 @@
"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);