From: Philippe Gerum <rpm@xenomai.org>
To: Martin Shepherd <mcs@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Lockups on a new Celeron-430 system detected and resolved.
Date: Tue, 19 May 2009 12:08:03 +0200 [thread overview]
Message-ID: <1242727683.17138.72.camel@domain.hid> (raw)
In-Reply-To: <Pine.LNX.4.64.0904291204500.15719@domain.hid>
On Wed, 2009-04-29 at 12:48 -0700, Martin Shepherd wrote:
> On Tue, 28 Apr 2009, Gilles Chanteperdrix wrote:
> > On my side, disabling NO_HZ is enough to make the issue disappear.
>
> I finally just got around to trying this, but unfortunately, disabling
> NO_HZ and re-enabling HPET_TIMER and x86_PM_TIMER caused the lockups
> to return on my new Celeron-based system. I also tried just disabling
> NO_HZ and X86_PM_TIMER, while leaving just HPET_TIMER enabled, but
> this also resulted in lock-ups. So on my system, the only way to
> prevent the lockups, continues to be to turn off both X86_PM_TIMER and
> HPET_TIMER. Just in case they are useful, I have placed the offending
> kernel configuration file and corresponding contents of dmesg after a
> reboot, for the case of NO_HZ disabled and both timers enabled, at:
>
> http://www.astro.caltech.edu/~mcs/xenomai/config-2.6.29.1-xenomai-2.5-rc1
> http://www.astro.caltech.edu/~mcs/dmesg
>
Could you try the following patch against 2.6.29.1-x86-2.3-01? TIA,
diff --git a/arch/x86/kernel/ipipe.c b/arch/x86/kernel/ipipe.c
index 44378f8..7879469 100644
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -512,14 +512,14 @@ asmlinkage void __ipipe_unstall_iret_root(struct pt_regs regs)
trace_hardirqs_on();
__clear_bit(IPIPE_STALL_FLAG, &p->status);
}
-
/*
- * Only sync virtual IRQs here, so that we don't
- * recurse indefinitely in case of an external
- * interrupt flood.
+ * We could have received and logged interrupts while
+ * stalled in the syscall path: play the log now to
+ * release any pending event. The SYNC_BIT prevents
+ * infinite recursion in case of flooding.
*/
- if ((p->irqpend_himask & IPIPE_IRQMASK_VIRT) != 0)
- __ipipe_sync_pipeline(IPIPE_IRQMASK_VIRT);
+ if (p->irqpend_himask != 0)
+ __ipipe_sync_pipeline(IPIPE_IRQMASK_ANY);
}
#ifdef CONFIG_IPIPE_TRACE_IRQSOFF
ipipe_trace_end(0x8000000D);
> Martin
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2009-05-19 10:08 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 9:20 [Xenomai-help] adeos patch 2.6.28.9-x86-2.2-07 feedback vikesh rambaran
2009-04-23 9:37 ` Philippe Gerum
2009-04-23 9:42 ` Philippe Gerum
2009-04-23 10:30 ` Vikesh Rambaran
2009-04-23 11:48 ` Philippe Gerum
2009-04-27 22:30 ` [Xenomai-help] Lockups on a new Celeron-430 system detected and resolved Martin Shepherd
2009-04-27 23:32 ` Gilles Chanteperdrix
2009-04-27 23:51 ` Gilles Chanteperdrix
2009-04-28 0:26 ` Martin Shepherd
2009-04-28 5:17 ` Gilles Chanteperdrix
2009-04-28 6:38 ` Martin Shepherd
2009-04-28 6:44 ` Gilles Chanteperdrix
2009-04-28 6:50 ` Martin Shepherd
2009-04-29 19:48 ` Martin Shepherd
2009-04-29 20:45 ` Philippe Gerum
2009-04-29 20:48 ` Philippe Gerum
2009-05-19 10:08 ` Philippe Gerum [this message]
2009-05-21 0:51 ` Martin Shepherd
2009-05-21 4:18 ` Thomas Lockhart
2009-05-24 21:52 ` Martin Shepherd
2009-04-23 12:01 ` [Xenomai-help] adeos patch 2.6.28.9-x86-2.2-07 feedback Gilles Chanteperdrix
2009-04-23 13:34 ` Vikesh Rambaran
2009-04-23 13:42 ` Gilles Chanteperdrix
2009-04-25 10:53 ` Vikesh Rambaran
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=1242727683.17138.72.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=mcs@domain.hid \
--cc=xenomai@xenomai.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.