Re: [PATCH] rtc/rtc-cmos: Initialize hpet timer before irq is registered

From: Alexandre Belloni
Date: Mon Sep 19 2016 - 18:23:36 EST


On 15/09/2016 at 09:38:16 +0530, Pratyush Anand wrote :
> We have observed on few x86 machines with rtc-cmos device that
> hpet_rtc_interrupt() is called just after irq registration and before
> cmos_do_probe() could call hpet_rtc_timer_init().
>
> So, neither hpet_default_delta nor hpet_t1_cmp is initialized by the time
> interrupt is raised in the given situation, and this results in NMI
> watchdog LOCKUP.
>
> It has only been observed sporadically on kdump secondary kernels.
>
[...]
>
> Suggested-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Signed-off-by: Pratyush Anand <panand@xxxxxxxxxx>
> ---
> drivers/rtc/rtc-cmos.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
Applied, thanks.

--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com