diff options
author | Deepthi Dharwar <deepthi@linux.vnet.ibm.com> | 2014-07-24 12:01:36 +0530 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-25 14:10:51 +1000 |
commit | 6e993f3fffcbe96d3760c5ebb5815245358fd367 (patch) | |
tree | c9016298ee7c96c2ef7fcf00b4ec327fb7e49cf0 /include | |
parent | 2c47605b579ef500295352c8fa3cc83270833da6 (diff) | |
download | blackbird-skiboot-6e993f3fffcbe96d3760c5ebb5815245358fd367.tar.gz blackbird-skiboot-6e993f3fffcbe96d3760c5ebb5815245358fd367.zip |
elog: Queue errors to be committed in FSP with timeout value.
This patch aims to queues all the OPAL errors to the FSP
with a time-out value. If the error gets
committed in FSP and an ack is recevied for the same
within the time-out interval, then it is not reported
in the host. Else on expiry of the time-out value the
error is committed in the host.
Currently the time-out value is set to 180 seconds.
Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsp-elog.h | 3 | ||||
-rw-r--r-- | include/opal.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/fsp-elog.h b/include/fsp-elog.h index ce3813af..49e98720 100644 --- a/include/fsp-elog.h +++ b/include/fsp-elog.h @@ -245,6 +245,9 @@ struct opal_v6_header { #define ORG_SAPPHIRE 1 #define ORG_POWERNV 2 +/* MAX time for error log commit */ +#define ERRORLOG_TIMEOUT_INTERVAL 180 + /*struct opal_private head section_ */ struct opal_private_header_section { diff --git a/include/opal.h b/include/opal.h index 689ecaae..8dcb9f36 100644 --- a/include/opal.h +++ b/include/opal.h @@ -886,6 +886,7 @@ struct __attribute__((__packed__)) opal_errorlog { uint32_t plid; uint32_t log_size; + uint64_t elog_timeout; char user_data_dump[OPAL_LOG_MAX_DUMP]; struct list_node link; |