diff options
author | Deepthi Dharwar <deepthi@linux.vnet.ibm.com> | 2014-07-24 12:02:35 +0530 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-25 14:10:52 +1000 |
commit | 685fab6439fb46b13d3de383e3c9288607c7d389 (patch) | |
tree | c108ddb25dcff4f078626501e5a11e5c122465da /hw/fsp/fsp-surveillance.c | |
parent | 97faf5b43a139228c75ae92a5e833cb93c7d88d6 (diff) | |
download | talos-skiboot-685fab6439fb46b13d3de383e3c9288607c7d389.tar.gz talos-skiboot-685fab6439fb46b13d3de383e3c9288607c7d389.zip |
elog: Report surveillance failure in the host
This patch enables logging of surveillance failure
in the host.
Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/fsp/fsp-surveillance.c')
-rw-r--r-- | hw/fsp/fsp-surveillance.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/fsp/fsp-surveillance.c b/hw/fsp/fsp-surveillance.c index c1d19b64..a10e9bf7 100644 --- a/hw/fsp/fsp-surveillance.c +++ b/hw/fsp/fsp-surveillance.c @@ -38,6 +38,10 @@ DEFINE_LOG_ENTRY(OPAL_RC_SURVE_STATUS, OPAL_MISC_ERR_EVT, OPAL_SURVEILLANCE, OPAL_SURVEILLANCE_ERR, OPAL_PREDICTIVE_ERR_GENERAL, OPAL_MISCELLANEOUS_INFO_ONLY, NULL); +DEFINE_LOG_ENTRY(OPAL_RC_SURVE_ACK, OPAL_MISC_ERR_EVT, OPAL_SURVEILLANCE, + OPAL_SURVEILLANCE_ERR, OPAL_PREDICTIVE_ERR_GENERAL, + OPAL_MISCELLANEOUS_INFO_ONLY, NULL); + static void fsp_surv_ack(struct fsp_msg *msg) { uint8_t val; @@ -71,7 +75,8 @@ static void fsp_surv_check_timeout(void) /* XXX: We should be logging a PEL to the host, assuming * the FSP is dead, pending a R/R. */ - prerror("SURV: [%16llx] Surv ACK timed out; initiating R/R\n", + log_simple_error(&e_info(OPAL_RC_SURVE_ACK), + "SURV: [%16llx] Surv ACK timed out; initiating R/R\n", now); /* Reset the pending trigger too */ |