summaryrefslogtreecommitdiffstats
path: root/core/hmi.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2018-05-09 07:17:37 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-05-09 16:33:16 -0500
commit6790a941cc05743feceab628af39d6c9c900c11e (patch)
tree909f727dc7e11f26951aabcab8bdee6b6290320e /core/hmi.c
parent6449e2ac7dc51f206395c258032bb1bf5c53dfbb (diff)
downloadblackbird-skiboot-6790a941cc05743feceab628af39d6c9c900c11e.tar.gz
blackbird-skiboot-6790a941cc05743feceab628af39d6c9c900c11e.zip
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>
Diffstat (limited to 'core/hmi.c')
-rw-r--r--core/hmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hmi.c b/core/hmi.c
index 530371e2..3bf20c0a 100644
--- a/core/hmi.c
+++ b/core/hmi.c
@@ -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);
OpenPOWER on IntegriCloud