From: Thomas Gleixner <tglx@linutronix.de>
To: Andriy Gapon <avg@FreeBSD.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: clockevents_shutdown vs pending interrupt
Date: Wed, 1 Jul 2015 16:57:43 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1507011655340.3916@nanos> (raw)
In-Reply-To: <5593B6AF.9090705@FreeBSD.org>
Andriy,
On Wed, 1 Jul 2015, Andriy Gapon wrote:
> I've caught a couple of boot logs with different stack traces from unsuccessful
> boot attempts and one from a successful attempt with exactly the same VM
> configuration.
> The logs are here:
> https://people.freebsd.org/~avg/linux-boot-hang/
I have to admit, that I'm thoroughly confused about that broadcast
check in the install path. Can you apply the debug patch below and
provide the output?
Thanks,
tglx
---
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index d39f32cdd1b5..f1f921a49da9 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -100,6 +100,7 @@ void tick_install_broadcast_device(struct clock_event_device *dev)
if (cur)
cur->event_handler = clockevents_handle_noop;
tick_broadcast_device.evtdev = dev;
+ pr_err("Install broadcast device %p %s\n", dev, dev->name);
if (!cpumask_empty(tick_broadcast_mask))
tick_broadcast_start_periodic(dev);
/*
@@ -301,6 +302,13 @@ static void tick_handle_periodic_broadcast(struct clock_event_device *dev)
bool bc_local;
raw_spin_lock(&tick_broadcast_lock);
+ /* Handle spurious interrupt */
+ if (clockevent_state_shutdown(dev)) {
+ pr_err("Spurious broadcast event %p %s\n", dev, dev->name);
+ raw_spin_unlock(&tick_broadcast_lock);
+ return;
+ }
+
bc_local = tick_do_periodic_broadcast();
if (clockevent_state_oneshot(dev)) {
diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c
index 76446cb5dfe1..ecd439b2de7e 100644
--- a/kernel/time/tick-common.c
+++ b/kernel/time/tick-common.c
@@ -321,6 +321,7 @@ void tick_check_new_device(struct clock_event_device *newdev)
if (!try_module_get(newdev->owner))
return;
+ pr_err("Install per cpu tick device %p %s\n", newdev, newdev->name);
/*
* Replace the eventually existing device by the new
* device. If the current device is the broadcast device, do
prev parent reply other threads:[~2015-07-01 14:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-23 9:56 Andriy Gapon
2015-06-23 10:15 ` Thomas Gleixner
2015-07-01 9:45 ` Andriy Gapon
2015-07-01 14:57 ` Thomas Gleixner [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=alpine.DEB.2.11.1507011655340.3916@nanos \
--to=tglx@linutronix.de \
--cc=avg@FreeBSD.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®