aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2016-07-02 21:03:41 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-21 16:33:20 +1000
commit1fb10de164d3ca034193df81c1f5d007aec37781 (patch)
tree3f9dc0e3584b8030bbc0ea5452a57d46e3307cb0
parentcec5750a4a86ff3f69e1d8817eda023f4d40c492 (diff)
downloadskiboot-1fb10de164d3ca034193df81c1f5d007aec37781.zip
skiboot-1fb10de164d3ca034193df81c1f5d007aec37781.tar.gz
skiboot-1fb10de164d3ca034193df81c1f5d007aec37781.tar.bz2
FSP/ELOG: Disable event notification if list is not consistent
Chances of elog_read_pending inconsistent state is very very less. Just to be on safer side, disable notification if list is not in consistent state. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/fsp/fsp-elog-read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/fsp/fsp-elog-read.c b/hw/fsp/fsp-elog-read.c
index c7582bc..b606236 100644
--- a/hw/fsp/fsp-elog-read.c
+++ b/hw/fsp/fsp-elog-read.c
@@ -315,6 +315,7 @@ static int64_t fsp_opal_elog_info(uint64_t *opal_elog_id,
*/
prlog(PR_ERR, "%s: Inconsistent internal list state !\n",
__func__);
+ fsp_elog_set_head_state(ELOG_STATE_NONE);
unlock(&elog_read_lock);
return OPAL_WRONG_STATE;
}
@@ -355,6 +356,7 @@ static int64_t fsp_opal_elog_read(uint64_t *buffer, uint64_t opal_elog_size,
*/
prlog(PR_ERR, "%s: Inconsistent internal list state !\n",
__func__);
+ fsp_elog_set_head_state(ELOG_STATE_NONE);
unlock(&elog_read_lock);
return OPAL_WRONG_STATE;
}