diff options
| author | Luca Leonardo Scorcia <l.scorcia@gmail.com> | 2026-10-02 09:19:26 +0200 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2026-10-13 13:17:13 +0200 |
| commit | 8496a1d234e8cf9cb15c4282cb3a11c6550bd242 (patch) | |
| tree | f7e070799011e3a703997aa4bdacff65eebabd55 /scripts/Makefile.thinlto | |
| parent | 36790ef57803400339d8ea4081d85483264dbd6c (diff) | |
| download | linux-8496a1d234e8cf9cb15c4282cb3a11c6550bd242.tar.gz linux-8496a1d234e8cf9cb15c4282cb3a11c6550bd242.zip | |
clocksource/drivers/timer-mediatek: Fix random crash at boot
MediaTek bootloaders generally enable APXGPT timers at boot. This means
that a timer IRQ can sometimes happen between the IRQ line request and the
configuration of the clock event handler. This leads to a hard crash with
an instruction abort, branch to pc 0x0 in mtk_gpt_interrupt handler as
clkevt is null.
To avoid this issue request the IRQ with IRQF_NO_AUTOEN and enable it
explicitly after the clock event is configured.
Issue was reported and fix tested on the Lenovo Tab E7 (TB-7104F, mt8167).
Fixes: a0858f937960 ("clocksource/drivers/timer-mediatek: Convert the driver to timer-of")
Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Link: https://patch.msgid.link/20261002072115.169250-2-l.scorcia@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
