Nicholas Piggin 8defc2a5dd powerpc/64s/interrupt: Fix decrementer storm
The decrementer exception can fail to be cleared when the interrupt
returns in the case where the decrementer wraps with the next timer
still beyond decrementer_max. This results in a decrementer interrupt
storm. This is triggerable with small decrementer system with hard
and soft watchdogs disabled.

Fix this by always programming the decrementer if there was no timer.

Fixes: 0faf20a1ad16 ("powerpc/64s/interrupt: Don't enable MSR[EE] in irq handlers unless perf is in use")
Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220124143930.3923442-1-npiggin@gmail.com
2022-01-25 16:50:10 +11:00
..
2021-12-01 00:06:44 +01:00
2021-12-09 22:41:21 +11:00
2021-04-30 12:22:28 -07:00
2021-12-09 22:41:21 +11:00
2021-11-06 14:36:12 -07:00
2022-01-14 15:17:26 +01:00
2021-12-09 22:41:20 +11:00
2021-12-09 22:41:20 +11:00
2022-01-14 15:17:26 +01:00
2020-12-04 01:01:09 +11:00
2021-09-03 11:22:50 -07:00
2021-12-09 22:41:19 +11:00
2021-12-09 22:41:21 +11:00
2022-01-14 15:17:26 +01:00
2021-12-09 22:41:21 +11:00
2021-04-30 11:20:40 -07:00
2021-12-09 22:41:21 +11:00
2022-01-14 15:17:26 +01:00
2021-12-09 22:41:21 +11:00
2021-11-16 21:24:16 +11:00
2021-12-13 12:04:45 -06:00
2021-08-19 09:02:55 +09:00
2021-12-09 22:41:21 +11:00