From: DDD <Dongdong.deng@windriver.com>
To: Jason Wessel <jason.wessel@windriver.com>, Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Peter Zijlstra <peterz@infradead.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] softlockup: fix problem with long kernel pauses from kgdb
Date: Fri, 21 Aug 2009 20:42:21 +0800 [thread overview]
Message-ID: <1250858541.24178.15.camel@dengdd-desktop> (raw)
In-Reply-To: <20090804145909.GO7746@elte.hu>
Hi Jason & Ingo,
If we apply Peter's patch which was send out just a moment ago,
I believe this issue will gone. :-)
Thanks,
Dongdong
[PATCH -rt] timer: delay waking softirqs from the jiffy tick
...
...
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
kernel/timer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/timer.c b/kernel/timer.c
index 8137cce..96ac1b4 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1221,10 +1221,10 @@ void update_process_times(int user_tick)
/* Note: this timer irq context must be accounted for as well. */
account_process_tick(p, user_tick);
+ scheduler_tick();
run_local_timers();
if (rcu_pending(cpu))
rcu_check_callbacks(cpu, user_tick);
- scheduler_tick();
run_posix_cpu_timers(p);
}
On Tue, 2009-08-04 at 16:59 +0200, Ingo Molnar wrote:
> * Jason Wessel <jason.wessel@windriver.com> wrote:
>
> > Ingo Molnar wrote:
> > > * Jason Wessel <jason.wessel@windriver.com> wrote:
> > >
> > >> -----
> > >> From: Jason Wessel <jason.wessel@windriver.com>
> > >> Subject: [PATCH] softlockup: add sched_clock_tick() to avoid kernel warning on kgdb resume
> > >>
> > >> When CONFIG_HAVE_UNSTABLE_SCHED_CLOCK is set sched_clock() gets the
> > >> time from hardware, such as from TSC. In this configuration kgdb will
> > >> report a softlock warning messages on resuming or detaching from a
> > >> debug session.
> > >>
> > >
> > > Hm, this looks quite ugly. Peter, Thomas, can you think of a
> > > cleaner solution?
> > >
> >
> > Below was a more specific test case I received from Dongdong Deng
> > which did not require kgdb. The test case is not something to
> > merge, it is just a simple module to build to demonstrate the
> > problem outside of kgdb.
> >
> > The patch I submitted might have been on the "ugly" side, but
> > there was not an obvious way to solve the problem without making
> > changes in kernel/sched*. I opted for something that was entirely
> > self contained to the softlockup code.
>
> it's not really the fault of your patch really - all these
> integrations along dynticks, scheduler time and softlockup feel a
> bit awkward. Wondering whether there's some nicer way.
>
> Ingo
next prev parent reply other threads:[~2009-08-21 12:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 20:03 Jason Wessel
2009-07-27 20:18 ` Peter Zijlstra
2009-07-27 21:25 ` Jason Wessel
2009-07-28 15:05 ` Jason Wessel
2009-08-04 14:16 ` Ingo Molnar
2009-08-04 14:53 ` [PATCH] softlockup: fix problem with long kernel pauses fromkgdb Jason Wessel
2009-08-04 14:59 ` Ingo Molnar
2009-08-21 12:42 ` DDD [this message]
2009-09-26 3:01 ` [PATCH] softlockup: fix problem with long kernel pauses from kgdb Yong Zhang
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=1250858541.24178.15.camel@dengdd-desktop \
--to=dongdong.deng@windriver.com \
--cc=jason.wessel@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.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
Powered by JetHome