diff options
author | Michael Neuling <mikey@neuling.org> | 2018-05-09 07:17:37 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-05-09 16:33:16 -0500 |
commit | 6790a941cc05743feceab628af39d6c9c900c11e (patch) | |
tree | 909f727dc7e11f26951aabcab8bdee6b6290320e | |
parent | 6449e2ac7dc51f206395c258032bb1bf5c53dfbb (diff) | |
download | skiboot-6790a941cc05743feceab628af39d6c9c900c11e.zip skiboot-6790a941cc05743feceab628af39d6c9c900c11e.tar.gz skiboot-6790a941cc05743feceab628af39d6c9c900c11e.tar.bz2 |
hmi: Fix clearing HMER on debug trigger
In the recent patch:
eddff9bf40 hmi: Clear unknown debug trigger
I rebased the code from an older skiboot before the HMI rework. When I
did this, I missed the handled flag. Without this the HMER is not
cleared properly and the HMI keeps happening.
This properly sets the handled flag and hence clears the HMER bit.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | core/hmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1259,6 +1259,7 @@ static int handle_hmi_exception(uint64_t hmer, struct OpalHMIEvent *hmi_evt, } } if (hmer & SPR_HMER_TRIG_FIR_HMI) { + handled |= SPR_HMER_TRIG_FIR_HMI; hmer &= ~SPR_HMER_TRIG_FIR_HMI; hmi_print_debug("Clearing unknown debug trigger", hmer); |