From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: Ingo Molnar <mingo@elte.hu>
Cc: Vegard Nossum <vegard.nossum@gmail.com>,
Mikael Pettersson <mikpe@it.uu.se>,
hpa@zytor.com, mingo@redhat.com, tglx@linutronix.de,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [BUG] get_rtc_time() triggers NMI watchdog in hpet_rtc_interrupt()
Date: Wed, 27 Aug 2008 09:54:09 +0100 [thread overview]
Message-ID: <48B51631.5020309@tuffmail.co.uk> (raw)
In-Reply-To: <20080826103921.GB10144@elte.hu>
Ingo Molnar wrote:
> * Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
>
>
>> I beat you :-). I noticed the problem myself. It does trigger if I
>> run hwclock in a loop.
>>
>> while true; do hwclock; done
>>
>> However it is fine in latest git. Looks like Ingo's patch has been
>> merged, and has fixed it.
>>
>
> ah, good - thanks for testing it. I havent seen a lockup on the T60
> either - but it was very sporadic to begin with. (and now we understand
> why: hwclock is running only once per reboot.)
>
> Plus, the real bug has to be found as well: who in the rtc ioctl path
> calls this code with irqs disabled - it's not nice.
>
Isn't the problem that it gets called from a timer IRQ? So irqs are
enabled globally, but the timer IRQ is masked.
[<c0139cc0>] hrtimer_run_pending+0x20/0x90
[<c01478a8>] handle_IRQ_event+0x28/0x50
[<c0148f71>] handle_edge_irq+0xa1/0x120
[<c010615b>] do_IRQ+0x3b/0x70
[<c0113225>] smp_apic_timer_interrupt+0x55/0x80
[<c0103c4f>] common_interrupt+0x23/0x28
Which in turn is probably because the userspace "RTC interrupt"
interface is emulated using RTC reads within the main timer interrupt
handler.
Alan
prev parent reply other threads:[~2008-08-27 8:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-23 9:48 [BUG] get_rtc_time() triggers NMI watchdog in hpet_rtc_interrupt() Mikael Pettersson
2008-08-23 16:01 ` [PATCH] rtc: fix deadlock Ingo Molnar
2008-08-23 16:58 ` Mikael Pettersson
2008-08-23 17:11 ` Ingo Molnar
2008-08-23 18:45 ` Maciej W. Rozycki
2008-08-23 19:46 ` Mikael Pettersson
2008-08-29 11:48 ` [PATCH] rtc: fix deadlock: fixes regression since 2.6.24 Frank van Maarseveen
2008-09-06 18:32 ` Ingo Molnar
2008-10-01 23:51 ` [stable] " Greg KH
2008-08-24 9:14 ` [BUG] get_rtc_time() triggers NMI watchdog in hpet_rtc_interrupt() Vegard Nossum
2008-08-24 10:32 ` Mikael Pettersson
2008-08-24 11:48 ` Vegard Nossum
2008-08-26 10:25 ` Alan Jenkins
2008-08-26 10:39 ` Ingo Molnar
2008-08-27 8:54 ` Alan Jenkins [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B51631.5020309@tuffmail.co.uk \
--to=alan-jenkins@tuffmail.co.uk \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mikpe@it.uu.se \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=vegard.nossum@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.