From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "Xenomai@xenomai.org" <Xenomai@xenomai.org>
Subject: Re: [Xenomai] Xenomai installation on P1020RDB
Date: Fri, 27 Jul 2012 18:08:40 +0200 [thread overview]
Message-ID: <5012BD08.8030305@xenomai.org> (raw)
In-Reply-To: <5012BB11.9000407@xenomai.org>
On 07/27/2012 06:00 PM, Gilles Chanteperdrix wrote:
> On 07/27/2012 05:53 PM, Lukasz Zemla wrote:
>
>> What I discovered, the source of the '76s problem' could be preemption model. Now, when I set:
>> - CONFIG_PREEMPT - the lag exists exactly after eth0 initialization.
>> - CONFIG_PREEMPT_VOLUNTARY - the boot process stops for a while (about 50-70s) in different places.
>> - CONFIG_PREEMPT_NONE then all is fine, I cannot observe any described problems.
>
>
> CONFIG_PREEMPT or PREEMPT_VOLUNTARY. Try this patch:
>
> diff --git a/arch/powerpc/kernel/ipipe.c b/arch/powerpc/kernel/ipipe.c
> index 45302c1..5b706da 100644
> --- a/arch/powerpc/kernel/ipipe.c
> +++ b/arch/powerpc/kernel/ipipe.c
> @@ -344,8 +344,10 @@ static void __ipipe_do_IRQ(unsigned int irq, void
> *cookie)
>
> static void __ipipe_do_timer(unsigned int irq, void *cookie)
> {
> + irq_enter();
> check_stack_overflow();
> timer_interrupt(__this_cpu_ptr(&ipipe_percpu.tick_regs));
> + irq_exit();
> }
>
> asmlinkage int __ipipe_grab_timer(struct pt_regs *regs)
>
> Or to remove the #ifdef CONFIG_IPIPE / #endif around the calls to
> irq_enter/irq_exit in arch/powerpc/kernel/time.c
>
Mm, no. On ppc, we use a virtual irq to map the decrementer, so the
pipeline core already took care of marking the irq entry before calling
the __ipipe_do_timer handler. The issue may be in the log syncer instead.
--
Philippe.
next prev parent reply other threads:[~2012-07-27 16:08 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-20 14:31 [Xenomai] Xenomai installation on P1020RDB Lukasz Zemla
2012-07-20 18:25 ` Wolfgang Grandegger
2012-07-23 8:48 ` Richard Cochran
2012-07-23 12:01 ` Wolfgang Grandegger
2012-07-25 16:18 ` Lukasz Zemla
2012-07-25 17:11 ` Gilles Chanteperdrix
2012-07-25 17:36 ` Gilles Chanteperdrix
2012-07-25 20:15 ` Lukasz Zemla
2012-07-25 20:42 ` Gilles Chanteperdrix
2012-07-26 11:20 ` Lukasz Zemla
2012-07-26 12:00 ` Gilles Chanteperdrix
2012-07-27 15:53 ` Lukasz Zemla
2012-07-27 16:00 ` Gilles Chanteperdrix
2012-07-27 16:08 ` Philippe Gerum [this message]
2012-07-27 16:12 ` Lukasz Zemla
2012-07-27 16:19 ` Philippe Gerum
2012-07-29 14:30 ` Philippe Gerum
2012-07-29 14:10 ` Philippe Gerum
2012-07-25 19:26 ` Wolfgang Grandegger
2012-07-25 20:26 ` Lukasz Zemla
2012-07-25 20:55 ` Wolfgang Grandegger
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=5012BD08.8030305@xenomai.org \
--to=rpm@xenomai.org \
--cc=Xenomai@xenomai.org \
--cc=gilles.chanteperdrix@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.