summaryrefslogtreecommitdiffstats
path: root/hw/fsp/fsp-elog-read.c
diff options
context:
space:
mode:
authorDeepthi Dharwar <deepthi@linux.vnet.ibm.com>2014-07-24 12:02:27 +0530
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-25 14:10:52 +1000
commit97faf5b43a139228c75ae92a5e833cb93c7d88d6 (patch)
treeeab784151c72c8bb9e051d6823c5711098d57b55 /hw/fsp/fsp-elog-read.c
parent566cb50023f37ad6f5dff778807ca891fc4409eb (diff)
downloadtalos-skiboot-97faf5b43a139228c75ae92a5e833cb93c7d88d6.tar.gz
talos-skiboot-97faf5b43a139228c75ae92a5e833cb93c7d88d6.zip
elog: Support for re-sending Sapphire pending logs.
This patch adds support to re-send Sapphire logs to 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-elog-read.c')
-rw-r--r--hw/fsp/fsp-elog-read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/fsp/fsp-elog-read.c b/hw/fsp/fsp-elog-read.c
index 95a63a78..571e79a6 100644
--- a/hw/fsp/fsp-elog-read.c
+++ b/hw/fsp/fsp-elog-read.c
@@ -366,8 +366,10 @@ static void fsp_opal_resend_pending_logs(void)
{
struct fsp_log_entry *entry;
- lock(&elog_read_lock);
+ /* Check if any Sapphire logs are pending */
+ opal_resend_pending_logs();
+ lock(&elog_read_lock);
/*
* If processed list is not empty add all record from
* processed list to pending list at head of the list
OpenPOWER on IntegriCloud