From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Re: Stalled xenomai domain with head-optimisation
Date: Fri, 12 May 2006 01:56:07 +0200 [thread overview]
Message-ID: <4463CF17.8070901@domain.hid> (raw)
In-Reply-To: <4463BB6F.8050008@domain.hid>
Philippe Gerum wrote:
> 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);
>
As long as I didn't messed my build up (it's late...): no effect for
both patches.
Jan
next prev parent reply other threads:[~2006-05-11 23:56 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 ` [Xenomai-core] " Philippe Gerum
2006-05-11 23:56 ` Jan Kiszka [this message]
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=4463CF17.8070901@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=rpm@xenomai.org \
--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.