diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2020-12-18 17:40:38 +0530 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2021-01-05 11:22:40 +0530 |
commit | b44c7594523d20945179e497c45ec9007981ac75 (patch) | |
tree | e142be50c1e13b4b56c2851b5f79d61608e2533c /hw/sbe-p9.c | |
parent | 2e654443050acdd4deffdbb44723a847ca11e6b2 (diff) | |
download | skiboot-b44c7594523d20945179e497c45ec9007981ac75.zip skiboot-b44c7594523d20945179e497c45ec9007981ac75.tar.gz skiboot-b44c7594523d20945179e497c45ec9007981ac75.tar.bz2 |
SBE: Account cancelled timer request
Currently we are not accounting cancelled timer request. So in some
corner cases we may schedule new timer request with
new-timer-value > inflight-timer-value.
Lets explicit check new_target value with inflight timer value.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw/sbe-p9.c')
-rw-r--r-- | hw/sbe-p9.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/sbe-p9.c b/hw/sbe-p9.c index 63ff3cc..898a1fb 100644 --- a/hw/sbe-p9.c +++ b/hw/sbe-p9.c @@ -800,6 +800,9 @@ static void p9_sbe_timer_schedule(void) u64 tb_cnt, now = mftb(); if (sbe_timer_in_progress) { + if (sbe_timer_target >= sbe_last_gen_stamp) + return; + if (now >= sbe_last_gen_stamp) return; |