From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [BUG] timer issues with SVN head
Date: Fri, 02 Feb 2007 15:41:01 +0100 [thread overview]
Message-ID: <1170427261.4981.74.camel@domain.hid> (raw)
In-Reply-To: <45C33513.9070704@domain.hid>
On Fri, 2007-02-02 at 13:56 +0100, Jan Kiszka wrote:
> Philippe Gerum wrote:
>
> > On Thu, 2007-02-01 at 18:39 +0100, Jan Kiszka wrote:
> >
> >> Hi,
> >>
> >> just to save my current finding and maybe trigger some feedback:
> >>
> >> We just tried both 2.3.x-SVN and trunk with our "reference robot". While
> >> 2.3.x behaves fine, weird things happened with trunk /wrt some serial
> >> device. We saw reception timeouts and no serial IRQs.
> >>
> >> So I fired up a second box with plain latency test (all the latest: SVN,
> >> 2.6.19.2, ipipe-i386-1.6-06):
> >>
> >>
> >>> root@domain.hid :/root# latency
> >>> == Sampling period: 100 us
> >>> == Test mode: periodic user-mode task
> >>> == All results in microseconds
> >>> warming up...
> >>> RTT| 00:00:01 (periodic user-mode task, 100 us period, priority 99)
> >>> RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
> >>> RTD| 1299105.405| 1505168.638| -14316.105| 3671| 1299105.405| -14316.105
> >>>
> >
> > I can't reproduce this here, so this is likely an untested configuration
> > issue again.
> >
> > .config welcome. TIA,
> >
> >
> What about a patch? =8)
>
Even better, thanks. I should really work with
CONFIG_XENO_OPT_TIMING_PERIODIC enabled sometimes...
> --- include/nucleus/timebase.h (revision 2094)
> +++ include/nucleus/timebase.h (working copy)
> @@ -183,7 +183,7 @@ static inline xnticks_t xntbase_get_jiff
>
> static inline xnticks_t xntbase_get_rawclock(xntbase_t *base)
> {
> - return xntbase_get_jiffies(base);
> + return xntbase_periodic_p(base) ? base->jiffies : xnarch_get_cpu_tsc();
> }
>
> int xntbase_alloc(const char *name,
>
>
> This fixes at least one symptom I found, the broken latency test, but we still need
> to re-check the serial device scenario on the robot. That will take longer
> unfortunately.
>
> Jan
>
>
--
Philippe.
prev parent reply other threads:[~2007-02-02 14:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-01 17:39 [Xenomai-core] [BUG] timer issues with SVN head Jan Kiszka
2007-02-02 9:40 ` Philippe Gerum
2007-02-02 12:56 ` Jan Kiszka
2007-02-02 14:41 ` Philippe Gerum [this message]
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=1170427261.4981.74.camel@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.