public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Maciej Rutecki <maciej.rutecki@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-bluetooth@vger.kernel.org, marcel@holtmann.org
Subject: Re: [2.6.29-git12] BUG: scheduling while atomic: swapper/0/0x10000100
Date: Fri, 10 Apr 2009 19:16:30 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0904101854250.21577@localhost.localdomain> (raw)
In-Reply-To: <8db1092f0904100952x64048907gea6bbaf25488de26@mail.gmail.com>

On Fri, 10 Apr 2009, Maciej Rutecki wrote:
> 2009/4/10 Thomas Gleixner <tglx@linutronix.de>:
> 
> >
> > Is this with my patch applied ?
> 
> Yes. I didn't observe any change.

Hmm. Ok, so the check in do_IRQ did not trigger. That means we need to
look for some other place.

Can you please apply the patch below and set CONFIG_FUNCTION_TRACER=y.
After boot please do as root:

# mount -t debugfs debugfs /sys/kernel/debug
# echo function >/sys/kernel/debug/tracing/current_tracer
# ech0 1 >/sys/kernel/debug/tracing/options/latency-format
# echo 1 >/sys/kernel/debug/tracing/tracing_enabled

Now wait until that scheduling while atomic bug triggers. This will
stop the tracer. Now

# cat /sys/kernel/debug/tracing/trace | bzip2 >/tmp/trace.bz2

Please upload trace.bz2 file to some place.

Thanks,

	tglx

----
diff --git a/kernel/sched.c b/kernel/sched.c
index 5724508..2e257bf 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4912,6 +4912,7 @@ static noinline void __schedule_bug(struct task_struct *prev)
 {
 	struct pt_regs *regs = get_irq_regs();
 
+	tracing_off();
 	printk(KERN_ERR "BUG: scheduling while atomic: %s/%d/0x%08x\n",
 		prev->comm, prev->pid, preempt_count());
 

  reply	other threads:[~2009-04-10 17:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07  7:37 [2.6.29-git12] BUG: scheduling while atomic: swapper/0/0x10000100 Maciej Rutecki
2009-04-10  4:20 ` Andrew Morton
2009-04-10 10:40   ` Maciej Rutecki
2009-04-10 11:41     ` Thomas Gleixner
2009-04-10 14:47       ` Maciej Rutecki
2009-04-10 16:26         ` Thomas Gleixner
2009-04-10 16:52           ` Maciej Rutecki
2009-04-10 17:16             ` Thomas Gleixner [this message]
2009-04-10 17:57               ` Maciej Rutecki
2009-04-10 18:25                 ` Thomas Gleixner
2009-04-18 13:04                   ` Dave Young
2009-04-11 19:52                     ` Marcel Holtmann
2009-05-16 14:31                       ` Maciej Rutecki
2009-04-10 16:57           ` Maciej Rutecki

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.2.00.0904101854250.21577@localhost.localdomain \
    --to=tglx@linutronix.de \
    --cc=akpm@linux-foundation.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maciej.rutecki@gmail.com \
    --cc=marcel@holtmann.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