mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fernando Lopez-Lezcano <nando@ccrma.Stanford.EDU>
To: Ingo Molnar <mingo@elte.hu>
Cc: nando@ccrma.Stanford.EDU, Gabriel C <nix.or.die@googlemail.com>,
	Carsten Emde <carsten.emde@osadl.org>,
	"jcaceres@ccrma.Stanford.EDU" <jcaceres@ccrma.Stanford.EDU>,
	Steven Rostedt <rostedt@goodmis.org>,
	RT-Users <linux-rt-users@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Rui Nuno Capela <rncbc@rncbc.org>,
	"Paul E. McKenney" <paulmck@us.ibm.com>
Subject: Re: v2.6.21.5-rt19 (sched_getaffinity?)
Date: Wed, 18 Jul 2007 11:02:00 -0700	[thread overview]
Message-ID: <1184781720.29703.11.camel@cmn3.stanford.edu> (raw)
In-Reply-To: <20070718071852.GB1516@elte.hu>

On Wed, 2007-07-18 at 09:18 +0200, Ingo Molnar wrote:
> * Fernando Lopez-Lezcano <nando@ccrma.Stanford.EDU> wrote:
> 
> > > does lockdep pinpoint anything?
> > 
> > Lots of stuff, and at the end the lock report for the problem. 
> > Hopefully some of this will help... I have attached the whole bootup 
> > sequence as logged in /var/log/messages.
> 
> yeah, it pinpointed the bug. It seems to be an interaction between 
> RCU-preempt (Paul Cc:-ed) and sched_mc_power_savings_store(): 
> detach_destroy_domains() uses synchronize_sched() which uses 
> getaffinity, which takes sched_hotcpu_mutex, and 
> arch_reinit_sched_domains does it too - see the lockdep report below. 
> I've added a quick workaround below as well, which should keep your box 
> from hanging.

I can confirm that flash9 does not hang with the patch. 
Thanks!!!
I presume the same would apply to 2.6.21.x and, say, rt21. I'll test.

But (of course, there's always a but somewhere) I just experienced a
complete hang - 2.6.22.1-rt4 with the little patch. This time there was
something in the logs, maybe it will help? This was when finishing the
install of an additional kernel module rpm package (ipw3945 drivers). 

-- Fernando

--------
Jul 18 10:48:15 localhost kernel: BUG: sleeping function called from
invalid context modprobe(5001) at kernel/rtmutex.c:636
Jul 18 10:48:15 localhost kernel: in_atomic():1 [00000001],
irqs_disabled():0
Jul 18 10:48:15 localhost kernel:  [<c0405f34>] show_trace_log_lvl
+0x1a/0x2f
Jul 18 10:48:15 localhost kernel:  [<c0406a09>] show_trace+0x12/0x14
Jul 18 10:48:15 localhost kernel:  [<c0406a71>] dump_stack+0x16/0x18
Jul 18 10:48:15 localhost kernel:  [<c0423bfc>] __might_sleep+0xeb/0xf2
Jul 18 10:48:15 localhost kernel:  [<c0617242>] __rt_spin_lock+0x24/0x40
Jul 18 10:48:15 localhost kernel:  [<c0617266>] rt_spin_lock+0x8/0xa
Jul 18 10:48:15 localhost kernel:  [<c04621c9>] get_zone_pcp+0x23/0x33
Jul 18 10:48:15 localhost kernel:  [<c0462702>] free_hot_cold_page
+0xcf/0x148
Jul 18 10:48:15 localhost kernel:  [<c04627b2>] free_hot_page+0xa/0xc
Jul 18 10:48:15 localhost kernel:  [<c0462a82>] __free_pages+0x25/0x30
Jul 18 10:48:15 localhost kernel:  [<c0462ab6>] free_pages+0x29/0x2b
Jul 18 10:48:15 localhost kernel:  [<c047abf3>] quicklist_trim+0xd0/0xf5
Jul 18 10:48:15 localhost kernel:  [<c041f5d9>] check_pgt_cache
+0x1e/0x20
Jul 18 10:48:15 localhost kernel:  [<c046aedf>] free_pgtables+0x52/0x147
Jul 18 10:48:15 localhost kernel:  [<c046cdf7>] unmap_region+0xe6/0x135
Jul 18 10:48:15 localhost kernel:  [<c046d764>] do_munmap+0x153/0x1b4
Jul 18 10:48:15 localhost kernel:  [<c046f3de>] do_mremap+0x413/0x4c3
Jul 18 10:48:15 localhost kernel:  [<c046f4c4>] sys_mremap+0x36/0x56
Jul 18 10:48:15 localhost kernel:  [<c0404fca>] syscall_call+0x7/0xb
Jul 18 10:48:15 localhost kernel:  =======================
Jul 18 10:48:16 localhost kernel: BUG: sleeping function called from
invalid context head(5652) at kernel/rtmutex.c:636
Jul 18 10:48:16 localhost kernel: in_atomic():1 [00000001],
irqs_disabled():0
Jul 18 10:48:16 localhost kernel:  [<c0405f34>] show_trace_log_lvl
+0x1a/0x2f
Jul 18 10:48:16 localhost kernel:  [<c0406a09>] show_trace+0x12/0x14
Jul 18 10:48:16 localhost kernel:  [<c0406a71>] dump_stack+0x16/0x18
Jul 18 10:48:16 localhost kernel:  [<c0423bfc>] __might_sleep+0xeb/0xf2
Jul 18 10:48:16 localhost kernel:  [<c0617242>] __rt_spin_lock+0x24/0x40
Jul 18 10:48:16 localhost kernel:  [<c0617266>] rt_spin_lock+0x8/0xa
Jul 18 10:48:16 localhost kernel:  [<c04621c9>] get_zone_pcp+0x23/0x33
Jul 18 10:48:16 localhost kernel:  [<c0462702>] free_hot_cold_page
+0xcf/0x148
Jul 18 10:48:16 localhost kernel:  [<c04627b2>] free_hot_page+0xa/0xc
Jul 18 10:48:16 localhost kernel:  [<c0462a82>] __free_pages+0x25/0x30
Jul 18 10:48:16 localhost kernel:  [<c0462ab6>] free_pages+0x29/0x2b
Jul 18 10:48:16 localhost kernel:  [<c047abf3>] quicklist_trim+0xd0/0xf5
Jul 18 10:48:16 localhost kernel:  [<c041f5d9>] check_pgt_cache
+0x1e/0x20
Jul 18 10:48:16 localhost kernel:  [<c046aedf>] free_pgtables+0x52/0x147
Jul 18 10:48:16 localhost kernel:  [<c046cdf7>] unmap_region+0xe6/0x135
Jul 18 10:48:16 localhost kernel:  [<c046d764>] do_munmap+0x153/0x1b4
Jul 18 10:48:16 localhost kernel:  [<c046d7f5>] sys_munmap+0x30/0x3f
Jul 18 10:48:16 localhost kernel:  [<c0404fca>] syscall_call+0x7/0xb
Jul 18 10:48:16 localhost kernel:  =======================
Jul 18 10:50:22 localhost syslogd 1.4.2: restart.



      parent reply	other threads:[~2007-07-18 18:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04 20:49 v2.6.21.5-rt19 Thomas Gleixner
2007-07-06 14:10 ` v2.6.21.5-rt19 Rui Nuno Capela
2007-07-06 21:49   ` v2.6.21.5-rt19 Fernando Lopez-Lezcano
2007-07-07  9:15     ` v2.6.21.5-rt19 Ingo Molnar
2007-07-07  9:24     ` v2.6.21.5-rt19 Ingo Molnar
2007-07-08 22:36       ` v2.6.21.5-rt19 Fernando Lopez-Lezcano
2007-07-08 22:50         ` v2.6.21.5-rt19 Fernando Lopez-Lezcano
2007-07-08 23:42         ` v2.6.21.5-rt19 Gabriel C
2007-07-09  3:53           ` v2.6.21.5-rt19 Fernando Pablo Lopez-Lezcano
2007-07-09  5:08             ` v2.6.21.5-rt19 (sched_getaffinity?) Fernando Lopez-Lezcano
2007-07-17 19:32               ` Ingo Molnar
2007-07-17 19:47                 ` Fernando Lopez-Lezcano
2007-07-17 19:56                 ` Fernando Lopez-Lezcano
2007-07-17 20:12                   ` Ingo Molnar
2007-07-17 21:41                     ` Fernando Lopez-Lezcano
2007-07-17 23:51                     ` Fernando Lopez-Lezcano
2007-07-18  7:18                       ` Ingo Molnar
2007-07-18 13:21                         ` Paul E. McKenney
2007-07-18 18:02                         ` Fernando Lopez-Lezcano [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=1184781720.29703.11.camel@cmn3.stanford.edu \
    --to=nando@ccrma.stanford.edu \
    --cc=carsten.emde@osadl.org \
    --cc=jcaceres@ccrma.Stanford.EDU \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nix.or.die@googlemail.com \
    --cc=paulmck@us.ibm.com \
    --cc=rncbc@rncbc.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.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®