All of lore.kernel.org
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH RFC 0/2] rtc-cmos: Workaround unwanted interrupt generation
@ 2016-06-21  4:55 ` Pratyush Anand
  0 siblings, 0 replies; 20+ messages in thread
From: Pratyush Anand @ 2016-06-21  4:55 UTC (permalink / raw)
  To: mingo, alexandre.belloni; +Cc: rtc-linux, linux-kernel, prarit, Pratyush Anand

We have observed on few machines with rtc-cmos device that
hpet_rtc_interrupt() is called before cmos_do_probe() could call
hpet_rtc_timer_init(). It has not been observed during normal boot/reboot
of machines. It *sometime* happens when system is booted with kdump
secondary kernel. So, neither hpet_default_delta nor hpet_t1_cmp is
initialized by the time interrupt is raised in the given situation.
Therefore while loop of hpet_cnt_ahead() in hpet_rtc_timer_reinit() never
completes. This leads to "NMI watchdog: Watchdog detected hard LOCKUP on
cpu 0".

I am still clueless, how can an interrupt be raised before RTC is enabled.
But i do not have any idea about this device, so I am putting this patch as
RFC to get feedback from hpet/rtc-cmos developer. I am sure there would be
some better solution than this.



Pratyush Anand (2):
  rtc/hpet: Factorize hpet_rtc_timer_init()
  rtc/rtc-cmos: Initialize software counters before irq is registered

 arch/x86/include/asm/hpet.h |  2 ++
 arch/x86/kernel/hpet.c      | 41 +++++++++++++++++++++++++++++++++++------
 drivers/rtc/rtc-cmos.c      | 13 ++++++++++++-
 3 files changed, 49 insertions(+), 7 deletions(-)

-- 
2.5.5

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-07-20  3:57 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21  4:55 [rtc-linux] [PATCH RFC 0/2] rtc-cmos: Workaround unwanted interrupt generation Pratyush Anand
2016-06-21  4:55 ` Pratyush Anand
2016-06-21  4:55 ` [rtc-linux] [PATCH RFC 1/2] rtc/hpet: Factorize hpet_rtc_timer_init() Pratyush Anand
2016-06-21  4:55   ` Pratyush Anand
2016-06-23  8:33   ` [rtc-linux] " Thomas Gleixner
2016-06-23  8:33     ` Thomas Gleixner
2016-06-23 14:37     ` [rtc-linux] " Pratyush Anand
2016-06-23 14:37       ` Pratyush Anand
2016-06-21  4:55 ` [rtc-linux] [PATCH RFC 2/2] rtc/rtc-cmos: Initialize software counters before irq is registered Pratyush Anand
2016-06-21  4:55   ` Pratyush Anand
2016-06-27  4:49 ` [rtc-linux] Re: [PATCH RFC 0/2] rtc-cmos: Workaround unwanted interrupt generation Pratyush Anand
2016-06-27  4:49   ` Pratyush Anand
2016-07-04 16:19   ` [rtc-linux] " Pratyush Anand
2016-07-04 16:19     ` Pratyush Anand
2016-07-18 11:47     ` [rtc-linux] " Pratyush Anand
2016-07-18 11:47       ` Pratyush Anand
2016-07-19 14:29       ` [rtc-linux] " Alexandre Belloni
2016-07-19 14:29         ` Alexandre Belloni
2016-07-20  3:56         ` [rtc-linux] " Pratyush Anand
2016-07-20  3:56           ` Pratyush Anand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.