Attn: Self boot engine (SBE) attention support
When an SBE vital attention is detected a plateform event log entry will
be created and an SBE dump will be requested. A request to transition
the host will be issued once the dump is completed.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I3e53292d7eb429a76a920bda0dfb051afbc9fe6b
diff --git a/attn/vital_handler.cpp b/attn/vital_handler.cpp
index 910c005..c07dfc7 100644
--- a/attn/vital_handler.cpp
+++ b/attn/vital_handler.cpp
@@ -1,5 +1,6 @@
#include <attn/attention.hpp>
#include <attn/attn_common.hpp>
+#include <attn/attn_dump.hpp>
#include <attn/attn_logging.hpp>
#include <sdbusplus/bus.hpp>
#include <util/dbus.hpp>
@@ -28,11 +29,18 @@
}
else
{
- // transition host state after analyses
- util::dbus::transitionHost(util::dbus::HostState::Quiesce);
-
// generate pel
- eventVital();
+ auto pelId = eventVital();
+
+ // conditionally request dump
+ if ((0 != pelId) && (util::dbus::HostRunningState::NotStarted ==
+ util::dbus::hostRunningState()))
+ {
+ requestDump(DumpParameters{pelId, 0, DumpType::SBE});
+ }
+
+ // transition host
+ util::dbus::transitionHost(util::dbus::HostState::Quiesce);
}
return rc;