aboutsummaryrefslogtreecommitdiff
path: root/include/fsp-elog.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2016-07-02 21:03:40 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-21 16:32:57 +1000
commitcec5750a4a86ff3f69e1d8817eda023f4d40c492 (patch)
treef341de6f1606e295b7034baf038f1659e86f64c4 /include/fsp-elog.h
parentec366ad4e2e871096fa4c614ad7e89f5bb6f884f (diff)
downloadskiboot-cec5750a4a86ff3f69e1d8817eda023f4d40c492.zip
skiboot-cec5750a4a86ff3f69e1d8817eda023f4d40c492.tar.gz
skiboot-cec5750a4a86ff3f69e1d8817eda023f4d40c492.tar.bz2
FSP/ELOG: Improve elog event states
ELOG enables event notification once new log is available. And this will be disabled after host completes reading logs (it has to complete both fsp_opal_elog_info and fsp_opal_elog_read). Ideally we should disable notification as soon as host consumes event (after fsp_opal_elog_info). Also if host fails to call fsp_opal_elog_read (ex: situations like duplicate event), then we endup keeping notification forever. This patch introduces new ELOG state (ELOG_STATE_HOST_INFO). As soon as host consumes event elog will move to this new state so that event notification is disabled. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsp-elog.h b/include/fsp-elog.h
index 37a1953..a796f5e 100644
--- a/include/fsp-elog.h
+++ b/include/fsp-elog.h
@@ -31,6 +31,7 @@ enum elog_head_state {
ELOG_STATE_FETCHING, /*In the process of reading log from FSP. */
ELOG_STATE_FETCHED_INFO,/* Indicates reading log info is completed */
ELOG_STATE_FETCHED_DATA,/* Indicates reading log is completed */
+ ELOG_STATE_HOST_INFO, /* Host read log info */
ELOG_STATE_NONE, /* Indicates to fetch next log */
ELOG_STATE_REJECTED, /* resend all pending logs to linux */
};