From: Robert Richter <robert.richter@amd.com>
To: Dave Jones <davej@redhat.com>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: sleeping while atomic warning while modprobing oprofile.
Date: Fri, 20 May 2011 05:47:24 +0200 [thread overview]
Message-ID: <20110520034724.GA20052@erda.amd.com> (raw)
In-Reply-To: <20110518191706.GA20475@redhat.com>
On 18.05.11 15:17:06, Dave Jones wrote:
> I just saw this when after I did a 'modprobe oprofile' on my amd64 box.
Thanks for reporting this. This happens in init_ibs(). We are actually
too strict here with disabling preemption, though we still need it.
Will change that code.
-Robert
>
> Dave
>
> BUG: sleeping function called from invalid context at mm/slub.c:824
> in_atomic(): 1, irqs_disabled(): 0, pid: 32357, name: modprobe
> INFO: lockdep is turned off.
> Pid: 32357, comm: modprobe Not tainted 2.6.39-rc7+ #14
> Call Trace:
> [<ffffffff8104bdc8>] __might_sleep+0x112/0x117
> [<ffffffff81129693>] kmem_cache_alloc_trace+0x4b/0xe7
> [<ffffffff81278f14>] kzalloc.constprop.0+0x29/0x2b
> [<ffffffff81278f4c>] pci_get_subsys+0x36/0x78
> [<ffffffff81022689>] ? setup_APIC_eilvt+0xfb/0x139
> [<ffffffff81278fa4>] pci_get_device+0x16/0x18
> [<ffffffffa06c8b5d>] op_amd_init+0xd3/0x211 [oprofile]
> [<ffffffffa064d000>] ? 0xffffffffa064cfff
> [<ffffffffa064d298>] op_nmi_init+0x21e/0x26a [oprofile]
> [<ffffffffa064d062>] oprofile_arch_init+0xe/0x26 [oprofile]
> [<ffffffffa064d010>] oprofile_init+0x10/0x42 [oprofile]
> [<ffffffff81002099>] do_one_initcall+0x7f/0x13a
> [<ffffffff81096524>] sys_init_module+0x132/0x281
> [<ffffffff814cc682>] system_call_fastpath+0x16/0x1b
>
>
--
Advanced Micro Devices, Inc.
Operating System Research Center
next prev parent reply other threads:[~2011-05-20 3:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 19:17 sleeping while atomic warning while modprobing oprofile Dave Jones
2011-05-20 3:47 ` Robert Richter [this message]
2011-05-23 17:01 ` Robert Richter
2011-05-23 17:03 ` [PATCH] oprofile, x86: Enable preemption during pci device setup in IBS init Robert Richter
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=20110520034724.GA20052@erda.amd.com \
--to=robert.richter@amd.com \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.