From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: rpm@xenomai.org
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] timer-handling adeos/xenomai on arm
Date: Sat, 11 Nov 2006 13:54:05 +0100 [thread overview]
Message-ID: <17749.51181.57125.243279@domain.hid> (raw)
In-Reply-To: <1163245175.5765.218.camel@domain.hid>
Philippe Gerum wrote:
> On Sat, 2006-11-11 at 12:05 +0100, Gilles Chanteperdrix wrote:
> > Schlägl "Manfred jun." wrote:
> > > Hi again!
> > >
> > > I've the presumption, there is something wrong with my timer-handling.
> > > Could you please take a look at my handling.
> > >
> > > Thanks in advance!
> >
> > The problem I see with your code is that you are updating
> > ns_timer_lxlost in __ipipe_mach_acktimer, the integrator architecture
> > code, which also uses a decrementer does not do that. Apart from that, I
> > see nothing wrong.
> >
> > If there is a problem with using ipipe_trigger_irq on your architecture,
> > maybe we could let rthal_timer_program_shot pass null delays to
> > __ipipe_mach_set_dec.
>
>
> Maybe the issue is not with ipipe_trigger_irq, which looks ok for ARM
> too, but rather with the internal latency/timings of the Xenomai port
> over this arch? The very difference between calling ipipe_trigger_irq
> and programming the decrementer for a close shot, is that interrupt
> delivery would happen immediately after the interrupt mask is enabled
> again with the former method. OTOH, the latter would likely leave some
> time left to the nucleus to get out of the current IRQ, thus preventing
> recursion-induced lockups.
What I meant is that maybe in Manfred case, some global variable need to
be set in __ipipe_mach_set_dec and used in __ipipe_mach_acktimer and when
using ipipe_trigger_irq, __ipipe_mach_acktimer get called without
__ipipe_mach_set_dec.
That said, I probably misunderstood ns_timer_reload.
--
Gilles Chanteperdrix.
next prev parent reply other threads:[~2006-11-11 12:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 11:03 [Xenomai-help] timer-handling adeos/xenomai on arm Schlägl Manfred jun.
2006-11-11 11:05 ` Gilles Chanteperdrix
2006-11-11 11:39 ` Philippe Gerum
2006-11-11 12:54 ` Gilles Chanteperdrix [this message]
2006-11-11 11:52 ` Sebastian Smolorz
2006-11-11 14:33 ` Sebastian Smolorz
2006-11-11 16:31 ` Gilles Chanteperdrix
2006-11-11 18:45 ` Sebastian Smolorz
2006-11-11 21:01 ` Gilles Chanteperdrix
2006-11-12 18:51 ` Sebastian Smolorz
2006-11-13 8:44 ` Gilles Chanteperdrix
2006-11-13 9:17 ` Sebastian Smolorz
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=17749.51181.57125.243279@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--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.