Attn: use phal library for get TI info calls
Switch from using pdbg library sbe_mpipl_get_ti_info() to using phal
library getTiInfo() for retrieving pointer to TI info shared memory
region.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I916d9195493b2759eed1695b36b9ae156b37be7e
diff --git a/attn/attn_logging.cpp b/attn/attn_logging.cpp
index 8aed00f..55c782b 100644
--- a/attn/attn_logging.cpp
+++ b/attn/attn_logging.cpp
@@ -365,6 +365,10 @@
eventName = "org.open_power.Attn.Error.Fail";
eventValid = true;
break;
+ case EventType::PhalSbeChipop:
+ eventName = "org.open_power.Processor.Error.SbeChipOpFailure";
+ eventValid = true;
+ break;
default:
eventValid = false;
break;
@@ -498,6 +502,26 @@
}
/**
+ * Commit SBE timeout event to log
+ *
+ * Create an event log indicating an SBE operation timed out.
+ *
+ * @param proc - processor that encountered the error
+ */
+void eventPhalSbeChipop(uint32_t proc)
+{
+ trace<level::ERROR>("SBE error while getting TI info");
+
+ // report proc number in event log entry
+ std::map<std::string, std::string> additionalData;
+ additionalData.emplace("SRC6", std::to_string(proc << 16));
+
+ // create event with additional data and no ffdc
+ event(EventType::PhalSbeChipop, additionalData,
+ createFFDCFiles(nullptr, 0));
+}
+
+/**
* Parse systemd journal message field
*
* Parse the journal looking for the specified field and return the journal