From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
linux-kernel@vger.kernel.org, Pavel Machek <pavel@ucw.cz>,
john stultz <johnstul@us.ibm.com>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: 2.6.21-rc5-mm3
Date: Sun, 1 Apr 2007 22:56:27 +0200 [thread overview]
Message-ID: <200704012256.28850.rjw@sisk.pl> (raw)
In-Reply-To: <200704012239.01964.rjw@sisk.pl>
On Sunday, 1 April 2007 22:39, Rafael J. Wysocki wrote:
> On Sunday, 1 April 2007 21:03, Andrew Morton wrote:
> > On Sun, 01 Apr 2007 18:00:12 +0200 Michal Piotrowski <michal.k.k.piotrowski@gmail.com> wrote:
> >
> > > Andrew Morton napisał(a):
> > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc5/2.6.21-rc5-mm3/
> > > >
> > >
> > > BUG: at /mnt/md0/devel/linux-mm/arch/i386/kernel/smp.c:571 native_smp_call_function_mask()
> > > [<c01051a1>] dump_trace+0x63/0x1eb
> > > [<c0105343>] show_trace_log_lvl+0x1a/0x30
> > > [<c0105f8a>] show_trace+0x12/0x14
> > > [<c0106027>] dump_stack+0x16/0x18
> > > [<c0113a92>] native_smp_call_function_mask+0x57/0x14b
> > > [<c0113c9b>] smp_call_function+0x1e/0x22
> > > [<c0129a60>] on_each_cpu+0x2a/0x73
> > > [<c013a12d>] clock_was_set+0x1b/0x1d
> > > [<c013b99d>] timekeeping_resume+0xb5/0xbb
> > > [<c027af35>] __sysdev_resume+0x17/0x5d
> > > [<c027b2aa>] sysdev_resume+0x19/0x4b
> > > [<c027fd12>] device_power_up+0xb/0x12
> > > [<c014f30b>] swsusp_suspend+0x55/0x63
> > > [<c014fad0>] pm_suspend_disk+0x163/0x28f
> > > [<c014e7be>] enter_state+0x54/0x1d5
> > > [<c014e9c5>] state_store+0x86/0x9c
> > > [<c01bfe47>] subsys_attr_store+0x23/0x2b
> > > [<c01bff89>] sysfs_write_file+0xc1/0xe9
> > > [<c0186485>] vfs_write+0xd1/0x15a
> > > [<c0186ab7>] sys_write+0x3d/0x72
> > > [<c010424c>] syscall_call+0x7/0xb
> > > [<b7f9b410>] 0xb7f9b410
> >
> > We're calling smp_call_function() with local interrupts disabled, which is
> > deadlockable.
> >
> > This, I expect, is because swsusp_suspend() optimistically tries to run
> > everything with local interrupts disabled.
>
> Well, not everything, but device_power_down()/device_power_up() which only
> handle sysdevs.
>
> > I don't know why this has suddenly started happening -
> > timekeeping_resume()->clock_was_set()->on_each_cpu() has been there for a
> > while. Doesn't mainline do the same thing?
>
> Yes, and it has always done it. It even is documented in
> Documentation/power/devices.txt:System Devices . ;-)
>
> > Not sure what to do about this. The best fix would be to teach swsusp to
> > not be so optmistic: resume functions are called with local irqs _enabled_
> > - that's part of their call environment. swsusp tries to call them with
> > local irqs disabled and bad things happen.
>
> I think timekeeping_resume() shouldn't call smp_call_function() ...
... which even is unnecessary, because sysdev_resume() runs on _one_ CPU.
next prev parent reply other threads:[~2007-04-01 20:52 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 8:05 2.6.21-rc5-mm3 Andrew Morton
2007-03-30 11:00 ` 2.6.21-rc5-mm3 Rafael J. Wysocki
2007-03-30 16:31 ` 2.6.21-rc5-mm3 Michal Piotrowski
2007-03-30 16:55 ` 2.6.21-rc5-mm3 Ingo Molnar
2007-03-30 17:19 ` 2.6.21-rc5-mm3 Michal Piotrowski
2007-03-30 16:38 ` 2.6.21-rc5-mm3 Dmitry Torokhov
2007-03-30 16:59 ` 2.6.21-rc5-mm3 Andrew Morton
2007-03-30 17:23 ` 2.6.21-rc5-mm3 Valdis.Kletnieks
2007-03-30 18:58 ` 2.6.21-rc5-mm3 Johannes Berg
2007-03-31 7:12 ` 2.6.21-rc5-mm3 - no boot, "address not 2M aligned" Helge Hafting
2007-03-31 7:53 ` Andrew Morton
2007-03-31 8:14 ` Eric W. Biederman
2007-04-09 22:09 ` Helge Hafting
2007-04-10 4:48 ` Helge Hafting
2007-04-01 5:29 ` thunder7
2007-04-01 6:15 ` Eric W. Biederman
2007-04-01 6:29 ` Andrew Morton
2007-04-02 7:41 ` Vivek Goyal
2007-04-02 8:43 ` Eric W. Biederman
2007-04-02 9:45 ` Vivek Goyal
2007-04-02 17:26 ` Eric W. Biederman
2007-04-03 4:01 ` Vivek Goyal
2007-04-03 5:23 ` Eric W. Biederman
2007-04-03 10:03 ` Vivek Goyal
2007-04-23 5:12 ` [PATCH 1/2] x86_64: Reflect the relocatability of the kernel in the ELF header Eric W. Biederman
2007-04-23 5:12 ` Eric W. Biederman
2007-04-23 5:15 ` [PATCH 2/2] x86_64: Remove CONFIG_PHYSICAL_START and CONFIG_RELOCATABLE Eric W. Biederman
2007-04-23 5:15 ` Eric W. Biederman
2007-04-23 6:07 ` Vivek Goyal
2007-04-23 6:07 ` Vivek Goyal
2007-04-23 6:17 ` Eric W. Biederman
2007-04-23 6:17 ` Eric W. Biederman
2007-04-23 6:25 ` Vivek Goyal
2007-04-23 6:25 ` Vivek Goyal
2007-04-24 6:31 ` [PATCH 1/2] x86_64: Reflect the relocatability of the kernel in the ELF header Vivek Goyal
2007-04-24 6:31 ` Vivek Goyal
2007-04-24 7:21 ` Eric W. Biederman
2007-04-24 7:21 ` Eric W. Biederman
2007-04-02 11:17 ` 2.6.21-rc5-mm3 - no boot, "address not 2M aligned" thunder7
2007-04-02 11:36 ` Vivek Goyal
2007-04-02 14:49 ` thunder7
2007-04-02 14:59 ` thunder7
2007-04-03 4:05 ` Vivek Goyal
2007-03-31 8:05 ` 2.6.21-rc5-mm3 - cpuidle, acpi, and C-states Valdis.Kletnieks
2007-03-31 19:25 ` 2.6.21-rc5-mm3: Why was my vioc cleanup patch dropped? Adrian Bunk
2007-03-31 20:48 ` [-mm patch] make drivers/ata/pata_ali.c:ali_tf_load() static Adrian Bunk
2007-04-01 16:21 ` Tejun Heo
2007-03-31 20:55 ` [2.6 patch] remove the config option for the cs5530a_warm_reset() quirk Adrian Bunk
2007-03-31 21:05 ` Jeremy Fitzhardinge
2007-03-31 21:11 ` Adrian Bunk
2007-03-31 21:17 ` Jeremy Fitzhardinge
2007-03-31 20:55 ` [-mm patch] make drivers/net/qla3xxx.c:PHY_DEVICES[] static Adrian Bunk
2007-04-04 2:34 ` Jeff Garzik
2007-03-31 20:55 ` [-mm patch] make struct proc_fdinfo_file_operations static Adrian Bunk
2007-04-01 16:00 ` 2.6.21-rc5-mm3 Michal Piotrowski
2007-04-01 19:03 ` 2.6.21-rc5-mm3 Andrew Morton
2007-04-01 20:39 ` 2.6.21-rc5-mm3 Rafael J. Wysocki
2007-04-01 20:56 ` Rafael J. Wysocki [this message]
2007-04-01 21:59 ` 2.6.21-rc5-mm3 Rafael J. Wysocki
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=200704012256.28850.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.k.k.piotrowski@gmail.com \
--cc=pavel@ucw.cz \
--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 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.