From 459a7e1f012df02393c0bc0a0885024e044cbafd Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Tue, 13 Sep 2016 14:45:26 +1000 Subject: 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 Signed-off-by: Stewart Smith --- include/centaur.h | 2 ++ include/opal-api.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include') 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 -- cgit v1.1