aboutsummaryrefslogtreecommitdiff
path: root/include/fsp-elog.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2016-07-02 21:03:39 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-21 16:31:14 +1000
commitec366ad4e2e871096fa4c614ad7e89f5bb6f884f (patch)
tree8d554f725194b09e6a887d23dcb7e1f57a3f0308 /include/fsp-elog.h
parentd2ae07fd97bb9408456279cec799f72cb78680a6 (diff)
downloadskiboot-ec366ad4e2e871096fa4c614ad7e89f5bb6f884f.zip
skiboot-ec366ad4e2e871096fa4c614ad7e89f5bb6f884f.tar.gz
skiboot-ec366ad4e2e871096fa4c614ad7e89f5bb6f884f.tar.bz2
FSP/ELOG: Fix OPAL generated elog event notification
We use elog notifier to notify logs from multiple sources (FSP generated logs - fsp-elog-read.c and OPAL generated logs - fsp-elog-write.c). OPAL generated logs sets elog event bit whenever it has new logs to send to host. But it relies on fsp-elog-read.c to disable the event bit..which is wrong! This patch creates common function to enable/disable event notification. It will enable event notification if any of the source is ready to send error log to host and disables notification once it completes sending all errors to host. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp-elog.h')
-rw-r--r--include/fsp-elog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fsp-elog.h b/include/fsp-elog.h
index 1522b18..37a1953 100644
--- a/include/fsp-elog.h
+++ b/include/fsp-elog.h
@@ -50,4 +50,6 @@ bool opal_elog_ack(uint64_t ack_id) __warn_unused_result;
void opal_resend_pending_logs(void);
+void elog_set_head_state(bool opal_logs, enum elog_head_state state);
+
#endif /* __ELOG_H */