From: Karsten Wiese <fzu@wemgehoertderstaat.de>
To: paulmck@linux.vnet.ibm.com
Cc: linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Rafael Wysocki <rjw@sisk.pl>,
Steven Rostedt <rostedt@goodmis.org>,
akpm@osdl.org
Subject: Re: 2.6.25-rc2 rcupreempt WARN after suspend to ram
Date: Tue, 26 Feb 2008 22:15:10 +0100 [thread overview]
Message-ID: <200802262215.10869.fzu@wemgehoertderstaat.de> (raw)
In-Reply-To: <200802260309.36360.fzu@wemgehoertderstaat.de>
Am Dienstag, 26. Februar 2008 schrieb Karsten Wiese:
> Am Sonntag, 24. Februar 2008 schrieb Paul E. McKenney:
> > On Sun, Feb 24, 2008 at 04:38:15PM +0100, Karsten Wiese wrote:
> > > Am Samstag, 23. Februar 2008 schrieb Karsten Wiese:
> > > > Am Samstag, 23. Februar 2008 schrieb Paul E. McKenney:
> > > > > On Sat, Feb 23, 2008 at 01:41:02PM +0100, Karsten Wiese wrote:
> > > > > > Hi,
> > > > > >
> > > > > > This appeared in dmesg after
> > > > > > $ echo core > /sys/power/pm_test
> > > > > > followed by 3 cycles of
> > > > > > $ echo mem > /sys/power/state
> > > > > > . .config attached.
> > > > > >
> > > > > > dmesg excerpt (, full ~1MByte available):
> > > > >
> > > > > Does this tree have http://lkml.org/lkml/2008/1/29/208 applied?
> > > >
> > > > Yes. This tree was linus' git head as of yesterday or the day before.
> > >
> > > Updated to git-head of today, same test and .config, different symptoms
> > > like in this thread: http://lkml.org/lkml/2008/2/23/260
> > > Later in this thread, Alan Cox said it looked like irq problems.
> > > Maybe also the rcupreemt related WARN_ON I saw are caused by irq problems.
> >
> > Might be, but am taking a closer look at the interaction between irq,
> > dynticks, and rcupreempt in any case.
>
> [Added Rafael, Thomas and Steven to CC]
>
> The "different symptoms" above are indeed unrelated and solved by reverting
> "commit 559bbe6cbd0d8c68d40076a5f7dc98e3bf5864b2
> power_state: get rid of write-only variable in SATA"
>
> The cpu_hotplug code used by suspend together with hr_timer and nohz looks
> suspicious:
> $ echo 0 > /sys/devices/system/cpu/cpu1/online
> $ echo 1 > /sys/devices/system/cpu/cpu1/online
> (repeat until dmesg|tail shows WARNs; here it took 2 iterations)
> causes symptoms like in 1st message of this thread again.
[Added Andrew]
This fixes it, not sure if its not just papering over, though it seams to be
likely for an offlined CPU to have ticks stopped.
Thanks,
Karsten
---
Don't touch an offlined CPU's ts->tick_stopped in tick_cancel_sched_timer()
Silences WARN_ONs in rcu_enter_nohz() and rcu_exit_nohz(), which appeared
before caused by (repeated) calls to:
$ echo 0 > /sys/devices/system/cpu/cpu1/online
$ echo 1 > /sys/devices/system/cpu/cpu1/online
Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
---
kernel/time/tick-sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 2968298..686da82 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -640,7 +640,7 @@ void tick_cancel_sched_timer(int cpu)
if (ts->sched_timer.base)
hrtimer_cancel(&ts->sched_timer);
- ts->tick_stopped = 0;
+
ts->nohz_mode = NOHZ_MODE_INACTIVE;
}
#endif /* HIGH_RES_TIMERS */
--
1.5.3.3
next prev parent reply other threads:[~2008-02-26 21:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-23 12:41 Karsten Wiese
2008-02-23 15:52 ` Paul E. McKenney
2008-02-23 16:54 ` Karsten Wiese
2008-02-24 15:38 ` Karsten Wiese
[not found] ` <20080224182800.GA10194@linux.vnet.ibm.com>
2008-02-26 2:09 ` Karsten Wiese
2008-02-26 21:15 ` Karsten Wiese [this message]
2008-02-26 21:41 ` 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=200802262215.10869.fzu@wemgehoertderstaat.de \
--to=fzu@wemgehoertderstaat.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=rjw@sisk.pl \
--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®