From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: In many cases softlockup can not be reported after disabling IRQ for long time
Date: Thu, 2 Feb 2012 16:22:50 +0000 [thread overview]
Message-ID: <20120202162250.GE1275@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20120202155841.GO5650@redhat.com>
On Thu, Feb 02, 2012 at 10:58:41AM -0500, Don Zickus wrote:
> The only thing I can think of is that the clock/jiffies isn't updated
> until after the hrtimer is run. I'm not sure if there is any guarantee
> for ordering once interrupts are enabled.
>
> But that is just a guess.
>
> I guess in theory, I would expect that when interrupts are enabled, the
> system would immediately jump into an IRQ context, update the
> clock/jiffies, then run all the other irq handlers like hrtimers, which
> would see the new time and do the right thing. After everything is done,
> the system would return to your test code and re-enable preemption
> allowing the softlockup thread to run again.
>
> I could be very wrong though. :-)
The first thing to confirm is whether disabling interrupts for 10s
results in the system losing proper track of time. If it does, then
you've immediately found the problem.
So, what you need to do us to use /usr/bin/time to execute a userspace
command which causes your thread to simulate a soft-lockup. If you
arrange for your soft-lockup to last for (eg) exactly 10 seconds, and
/usr/bin/time reports less than 10 seconds have passed, you've found
why the system can't report it.
prev parent reply other threads:[~2012-02-02 16:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAOwKts8zS1rYA+Y4k-vb8YAaR=aFd1BwryhhWWnWLQyrYrNqyA@mail.gmail.com>
[not found] ` <20120131154748.GA5650@redhat.com>
2012-02-01 2:18 ` In many cases softlockup can not be reported after disabling IRQ for long time TAO HU
2012-02-01 10:51 ` Cong Wang
2012-02-01 14:58 ` Don Zickus
2012-02-02 8:17 ` TAO HU
2012-02-02 8:43 ` Russell King - ARM Linux
[not found] ` <CAOwKts--CDpmiMunfYKrYsnWovmQhAC7Vp0P-9MeNVy6vx-Wvw@mail.gmail.com>
2012-02-04 12:22 ` Russell King - ARM Linux
2012-02-02 15:58 ` Don Zickus
2012-02-02 16:22 ` Russell King - ARM Linux [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=20120202162250.GE1275@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).