public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* clockevents_shutdown vs pending interrupt
@ 2015-06-23  9:56 Andriy Gapon
  2015-06-23 10:15 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Andriy Gapon @ 2015-06-23  9:56 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org


Pardon if I am asking something obvious or silly...

tick_check_new_device() has the following code:

        if (tick_is_broadcast_device(curdev)) {
                clockevents_shutdown(curdev);
                curdev = NULL;
        }

and

void clockevents_shutdown(struct clock_event_device *dev)
{
        clockevents_set_mode(dev, CLOCK_EVT_MODE_SHUTDOWN);
        dev->next_event.tv64 = KTIME_MAX;
}

This is all done while interrupts are disabled on the current CPU.
But what if there is already a pending interrupt from the current source?
Is it possible that the timer interrupt would be processed by the device that
was put in the shutdown mode?

Some context: I am experiencing exactly the same symptoms as described here
http://thread.gmane.org/gmane.linux.kernel/1483297.  But I run a kernel where
that bug is fixed.  And my problem happens in a VM, so it's possible that there
are timing issues which are very unlikely on real hardware.


-- 
Andriy Gapon

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

end of thread, other threads:[~2015-07-01 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23  9:56 clockevents_shutdown vs pending interrupt Andriy Gapon
2015-06-23 10:15 ` Thomas Gleixner
2015-07-01  9:45   ` Andriy Gapon
2015-07-01 14:57     ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox