From: Thomas Gleixner <tglx@linutronix.de>
To: Prakash Punnoor <prakash@punnoor.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: 2.6.27-rc-7: BUG: scheduling while atomic: swapper/0/0x00000102
Date: Thu, 2 Oct 2008 10:50:53 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.1.10.0810020958550.5549@apollo.tec.linutronix.de> (raw)
In-Reply-To: <200809281946.03346.prakash@punnoor.de>
On Sun, 28 Sep 2008, Prakash Punnoor wrote:
> Hi,
>
> I got this today:
>
> Sep 28 14:36:15 graviton BUG: scheduling while atomic: swapper/0/0x00000102
> Sep 28 14:36:15 graviton Modules linked in:
> Sep 28 14:36:15 graviton CPU 0:
> Sep 28 14:36:15 graviton Modules linked in:
> Sep 28 14:36:15 graviton Pid: 0, comm: swapper Not tainted 2.6.27-rc7 #1
> Sep 28 14:36:15 graviton RIP: 0010:[<ffffffff8022ccba>] [<ffffffff8022ccba>]
> default_idle+0x3a/0x40
> Sep 28 14:36:15 graviton RSP: 0018:ffffffff807f9f70 EFLAGS: 00000246
> Sep 28 14:36:15 graviton RAX: ffffffff807f9fd8 RBX: ffffffff8082f3e0 RCX:
> 0000000000000000
> Sep 28 14:36:15 graviton RDX: ffffffff8084eb20 RSI: 0000000000000092 RDI:
> ffffffff8088a120
> Sep 28 14:36:15 graviton RBP: ffffffff80852700 R08: 0000000000000000 R09:
> 0000000100294985
> Sep 28 14:36:15 graviton R10: 00000000ffffffff R11: ffffffff80237d80 R12:
> ffffffff8025eeb7
> Sep 28 14:36:15 graviton R13: 000002bbd7672100 R14: ffffffff802749bd R15:
> 0000000000000092
> Sep 28 14:36:15 graviton FS: 00007ffe25b04760(0000) GS:ffffffff807f1280(0000)
> knlGS:0000000000000000
> Sep 28 14:36:15 graviton CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
> Sep 28 14:36:15 graviton CR2: 0000000000000000 CR3: 00000000728b9000 CR4:
> 00000000000006e0
> Sep 28 14:36:15 graviton DR0: 0000000000000000 DR1: 0000000000000000 DR2:
> 0000000000000000
> Sep 28 14:36:15 graviton DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
> 0000000000000400
> Sep 28 14:36:15 graviton
> Sep 28 14:36:15 graviton Call Trace:
> Sep 28 14:36:15 graviton [<ffffffff8022cd58>] ? c1e_idle+0x98/0xe0
> Sep 28 14:36:15 graviton [<ffffffff80222b9e>] ? cpu_idle+0x5e/0xf0
> Sep 28 14:36:15 graviton
>
>
> I guess I can work-around this when disabling c1e in BIOS, but didn't try that
> so far. Any idea. Following the complete dmesg and attached the config
Won't help. :(
BUG: scheduling while atomic: swapper/0/0x00000102
0x00000102 is the preemption count. That means:
preemption count = 2 and softirq count = 1
So either the stacktrace is lying or something left the preemption
count in a buggy state. There is nothing in the log which helps to
decode this.
Can you please apply the debug patch below and try to reproduce ?
Thanks,
tglx
---
diff --git a/kernel/softirq.c b/kernel/softirq.c
index c506f26..0fc32b6 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -205,7 +205,18 @@ restart:
do {
if (pending & 1) {
+ int prev_count = preempt_count();
+
h->action(h);
+
+ if (prev_count != preempt_count()) {
+ printk(KERN_ERR "huh, entered sotfirq %ld %p"
+ "with preempt_count %08x,"
+ " exited with %08x?\n", h - softirq_vec,
+ h->action, prev_count, preempt_count());
+ preempt_count() = prev_count;
+ }
+
rcu_bh_qsctr_inc(cpu);
}
h++;
prev parent reply other threads:[~2008-10-02 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-28 17:45 Prakash Punnoor
2008-10-02 8:50 ` 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.LFD.1.10.0810020958550.5549@apollo.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=prakash@punnoor.de \
/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®