diff options
author | Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> | 2018-04-16 23:03:49 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-17 03:52:10 -0500 |
commit | 67d738807da0bbd6fe73e30d25753b6de1299df8 (patch) | |
tree | ffa42db384950ac15ec042abe070452363839d7d /include | |
parent | 5e20a789d021dd14bb30439cd9b3beb3dfeed9b7 (diff) | |
download | skiboot-67d738807da0bbd6fe73e30d25753b6de1299df8.zip skiboot-67d738807da0bbd6fe73e30d25753b6de1299df8.tar.gz skiboot-67d738807da0bbd6fe73e30d25753b6de1299df8.tar.bz2 |
opal/hmi: Do not send HMI event if no errors are found.
For TOD errors, all the cores in the chip get HMIs. Any one thread from any
core can fix the issue and TFMR will have error conditions cleared. Rest of
the threads need take any action if TOD errors are already cleared. Hence
thread 0 of every core should get a fresh copy of TFMR before going ahead
recovery path. Initialize recover = -1, so that if no errors found that
thread need not send a HMI event to linux. This helps in stop flooding host
with hmi event by every thread even there are no errors found.
Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/chiptod.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/chiptod.h b/include/chiptod.h index 7708d48..667e6fd 100644 --- a/include/chiptod.h +++ b/include/chiptod.h @@ -29,7 +29,7 @@ enum chiptod_topology { extern void chiptod_init(void); extern bool chiptod_wakeup_resync(void); -extern int chiptod_recover_tb_errors(uint64_t tfmr, bool *out_resynced); +extern int chiptod_recover_tb_errors(bool *out_resynced); extern bool tfmr_recover_local_errors(uint64_t tfmr); extern bool recover_corrupt_tfmr(void); extern void tfmr_cleanup_core_errors(uint64_t tfmr); |