From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Christoph Lameter <clameter@sgi.com>
Cc: Daniel Walker <dwalker@mvista.com>,
Miles Lane <miles.lane@gmail.com>, Pavel Machek <pavel@suse.cz>,
linux-pm@lists.linux-foundation.org,
LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: 2.6.24-rc5-mm1 -- inconsistent {in-hardirq-W} -> {hardirq-on-W} usage -- pm-hibernate/9940 [HC0[0]:SC0[0]:HE1:SE1]
Date: Thu, 20 Dec 2007 00:29:30 +0100 [thread overview]
Message-ID: <200712200029.31709.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.64.0712191158140.28180@schroedinger.engr.sgi.com>
On Wednesday, 19 of December 2007, Christoph Lameter wrote:
> On Wed, 19 Dec 2007, Daniel Walker wrote:
>
> > > It looks like the swsusp_save() calls drain_all_pages() , which calls
> > > on_each_cpu() .. On return on_each_cpu() unconditionally enables
> > > interrupts so the rest of the resume process has interrupt enable
> > > (which , it looks like, shouldn't happen) and then you get the lockdep()
> > > warning due to the above..
> > >
> > > Not sure if this has been found already, or not?
>
> Hmmm... It will unconditionally enable interrupts regardless how we call
> this. We could explicity save and restore interrrupts in
> swsusp_save() I guess. Why is swsusp_save() disabling interrupts?
Actually, it's called with interrupts disabled, because it's job is to create
the hibernation image. At this point everything is off except for the CPU
running swsusp_save().
> > > Should drain_all_pages() really be drain_local_pages() ?
> >
> > It looks like it was drain_local_pages, but the following patch
> >
> > page-allocator-clean-up-pcp-draining-functions.patch
> >
> > Changes that in -mm .. I added Christoph Lameter to the CC since it's
> > his patch ..
>
> We could reexport drain_local_pages() again but then I do not understand
> why we would only drain the pages of this processor and not of all other
> processors as well. It seems that software suspend intend was to flush
> them all right?
Well, not exactly. We are on one CPU at this point, the others have been
disabled.
next prev parent reply other threads:[~2007-12-19 23:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 13:17 2.6.24-rc5-mm1 -- WARNING: at arch/x86/kernel/smp_32.c:561 native_smp_call_function_mask() Miles Lane
2007-12-19 15:06 ` 2.6.24-rc5-mm1 -- inconsistent {in-hardirq-W} -> {hardirq-on-W} usage -- pm-hibernate/9940 [HC0[0]:SC0[0]:HE1:SE1] Miles Lane
2007-12-19 15:06 ` Miles Lane
2007-12-19 18:42 ` Daniel Walker
2007-12-19 18:42 ` Daniel Walker
2007-12-19 19:23 ` Daniel Walker
2007-12-19 19:23 ` Daniel Walker
2007-12-19 20:02 ` Christoph Lameter
2007-12-19 23:29 ` Rafael J. Wysocki [this message]
2007-12-19 23:22 ` Christoph Lameter
2007-12-19 23:22 ` Christoph Lameter
2007-12-20 0:09 ` Rafael J. Wysocki
2007-12-20 1:09 ` Miles Lane
2007-12-20 1:31 ` Rafael J. Wysocki
2007-12-20 1:31 ` Rafael J. Wysocki
2007-12-20 4:34 ` Miles Lane
2007-12-20 4:34 ` Miles Lane
2007-12-20 15:45 ` Rafael J. Wysocki
2007-12-20 15:45 ` Rafael J. Wysocki
2007-12-20 1:11 ` Miles Lane
2007-12-20 1:11 ` Miles Lane
2007-12-20 0:09 ` Rafael J. Wysocki
2007-12-19 23:29 ` Rafael J. Wysocki
2007-12-19 20:02 ` Christoph Lameter
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=200712200029.31709.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=miles.lane@gmail.com \
--cc=pavel@suse.cz \
/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.