summaryrefslogtreecommitdiffstats
path: root/core/opal.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-05-05 15:55:28 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-10 14:32:17 +1000
commitf3a5741408a11be6992cf8779f2eae10b08c020a (patch)
tree568e079d35f41cab7cbe0e3d7eba1467d4122424 /core/opal.c
parentd55194c5d9ada77eee2c9a69814708304f34d334 (diff)
downloadtalos-skiboot-f3a5741408a11be6992cf8779f2eae10b08c020a.tar.gz
talos-skiboot-f3a5741408a11be6992cf8779f2eae10b08c020a.zip
FSP: Notify FSP of Platform Log ID after Host Initiated Reset Reload
Trigging a Host Initiated Reset (when the host detects the FSP has gone out to lunch and should be rebooted), would cause "Unknown Command" messages to appear in the OPAL log. This patch implements those messages How to trigger FSP RR(HIR): $ putmemproc 300000f8 0x00000000deadbeef s1 k0:n0:s0:p00 ecmd_ppc putmemproc 300000f8 0x00000000deadbeef Log showing unknown command: / # cat /sys/firmware/opal/msglog | grep -i ,3 [ 110.232114723,3] FSP: fsp_trigger_reset() entry [ 188.431793837,3] FSP #0: Link down, starting R&R [ 464.109239162,3] FSP #0: Got XUP with no pending message ! [ 466.340598554,3] FSP-DPO: Unknown command 0xce0900 [ 466.340600126,3] FSP: Unhandled message ce0900 The message we need to handle is "Get PLID after host initiated FipS reset/reload". When the FSP comes back from HIR, it asks "hey, so, which error log explains why you rebooted me?". So, we tell it. Reported-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/opal.c')
-rw-r--r--core/opal.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/opal.c b/core/opal.c
index 73223b1f..14357cc3 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -30,6 +30,7 @@
#include <opal-msg.h>
#include <timer.h>
#include <elf-abi.h>
+#include <errorlog.h>
/* Pending events to signal via opal_poll_events */
uint64_t opal_pending_events;
@@ -51,6 +52,13 @@ static uint64_t opal_dynamic_events;
extern uint32_t attn_trigger;
extern uint32_t hir_trigger;
+/* We make this look like a Surveillance error, even though it really
+ * isn't one.
+ */
+DEFINE_LOG_ENTRY(OPAL_INJECTED_HIR, OPAL_MISC_ERR_EVT, OPAL_SURVEILLANCE,
+ OPAL_SURVEILLANCE_ERR, OPAL_PREDICTIVE_ERR_GENERAL,
+ OPAL_MISCELLANEOUS_INFO_ONLY);
+
void opal_table_init(void)
{
struct opal_table_entry *s = __opal_table_start;
@@ -408,7 +416,9 @@ static int64_t opal_poll_events(__be64 *outstanding_event_mask)
/* Test the host initiated reset */
if (hir_trigger == 0xdeadbeef) {
- fsp_trigger_reset();
+ uint32_t plid = log_simple_error(&e_info(OPAL_INJECTED_HIR),
+ "SURV: Injected HIR, initiating FSP R/R\n");
+ fsp_trigger_reset(plid);
hir_trigger = 0;
}
OpenPOWER on IntegriCloud