From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Re: Stalled xenomai domain with head-optimisation
Date: Fri, 12 May 2006 00:32:15 +0200 [thread overview]
Message-ID: <4463BB6F.8050008@domain.hid> (raw)
In-Reply-To: <446364DB.50908@domain.hid>
Jan Kiszka wrote:
> Hi Philippe,
>
> I had a bit "fun" today trying to get some of our robotic hardware
> running with latest Xenomai / Ipipe, also in order to test recent RTDM
> fixes. It turned out that the head-optimised variant easily creates that
> infamous stalled Xenomai domain, e.g. like this one:
>
Eeek... Ok, two things come to my mind for debugging this issue. The first one is
to make sure the assumption in ipipe_restore_pipeline_head() is a good one, so could
you try please testing the patch below, and see if the situation improves (it cannot
worsen anyway):
--- include/linux/ipipe.h~ 2006-05-08 12:17:06.000000000 +0200
+++ include/linux/ipipe.h 2006-05-12 00:17:00.000000000 +0200
@@ -563,7 +563,9 @@
static inline void ipipe_restore_pipeline_head(unsigned long x)
{
struct ipipe_domain *head = __ipipe_pipeline_head();
+#if 0
if (x != test_bit(IPIPE_STALL_FLAG, &head->cpudata[ipipe_processor_id()].status))
+#endif
__ipipe_restore_pipeline_head(head,x);
}
Second, if the first try is unsuccessful, could you try disabling the wired
interrupt support the way below, keeping the rest of the invariant pipeline
head optimizations active?
--- kernel/ipipe/core.c~ 2006-05-07 18:05:28.000000000 +0200
+++ kernel/ipipe/core.c 2006-05-11 18:34:57.000000000 +0200
@@ -482,8 +482,10 @@
if (ipd->irqs[irq].control & IPIPE_SYSTEM_MASK)
return -EPERM;
+#if 0
if (!test_bit(IPIPE_AHEAD_FLAG, &ipd->flags))
/* Silently unwire interrupts for non-heading domains. */
+#endif
modemask &= ~IPIPE_WIRED_MASK;
spin_lock_irqsave_hw(&__ipipe_pipelock, flags);
--
Philippe.
next prev parent reply other threads:[~2006-05-11 22:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-11 16:22 [Xenomai-core] Stalled xenomai domain with head-optimisation Jan Kiszka
2006-05-11 22:32 ` Philippe Gerum [this message]
2006-05-11 23:56 ` [Xenomai-core] " Jan Kiszka
2006-05-12 6:15 ` Philippe Gerum
2006-05-12 7:54 ` Jan Kiszka
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=4463BB6F.8050008@domain.hid \
--to=rpm@xenomai.org \
--cc=jan.kiszka@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.