From ec366ad4e2e871096fa4c614ad7e89f5bb6f884f Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Sat, 2 Jul 2016 21:03:39 +0530 Subject: 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 Signed-off-by: Stewart Smith --- include/fsp-elog.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/fsp-elog.h') 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 */ -- cgit v1.1