aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-09-13 14:45:26 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-09-13 15:50:41 +1000
commit459a7e1f012df02393c0bc0a0885024e044cbafd (patch)
tree18f693f7ffe4147c8964f81f7428c609e773fa8b /include
parentd6a64f99f3c9c39b00d0821cc04dc9a51fe06490 (diff)
downloadskiboot-459a7e1f012df02393c0bc0a0885024e044cbafd.zip
skiboot-459a7e1f012df02393c0bc0a0885024e044cbafd.tar.gz
skiboot-459a7e1f012df02393c0bc0a0885024e044cbafd.tar.bz2
centaur: Mark centaur offline after 10 consecutive access errors
This avoids spamming the logs when the centaur is dead and PRD constantly tries to access it Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/centaur.h2
-rw-r--r--include/opal-api.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/centaur.h b/include/centaur.h
index 6453e13..7a50bee 100644
--- a/include/centaur.h
+++ b/include/centaur.h
@@ -24,6 +24,7 @@
struct centaur_chip {
bool valid;
+ bool online;
uint8_t ec_level;
uint32_t part_id;
uint32_t fsi_master_chip_id;
@@ -31,6 +32,7 @@ struct centaur_chip {
uint32_t fsi_master_engine;
uint32_t scache_disable_count;
bool scache_was_enabled;
+ uint32_t error_count;
struct lock lock;
/* Used by hw/p8-i2c.c */
diff --git a/include/opal-api.h b/include/opal-api.h
index ac9e869..f607a41 100644
--- a/include/opal-api.h
+++ b/include/opal-api.h
@@ -52,6 +52,7 @@
#define OPAL_XSCOM_CLOCK_ERROR -27
#define OPAL_XSCOM_PARITY_ERROR -28
#define OPAL_XSCOM_TIMEOUT -29
+#define OPAL_XSCOM_CTR_OFFLINED -30
/* API Tokens (in r0) */
#define OPAL_INVALID_CALL -1