All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Bertold Van den Bergh <vandenbergh@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Port to stmp3xxx (arm based)
Date: Sun, 18 Sep 2011 16:51:59 +0200	[thread overview]
Message-ID: <4E76058F.8050609@domain.hid> (raw)
In-Reply-To: <CABm7fFP-zWkpqqmSVxuK-996LsW2xkG6g7L7SVHk2kcCnRpoSQ@mail.gmail.com>

On 09/18/2011 04:43 PM, Bertold Van den Bergh wrote:
> Hello,
> 
> Thanks for the reply. The timer register has the following layout: bit
> 0-15: reload, bit 16-31: counter. Thats why I put 0xFFFF0000. Looking
> at the code this cannot work so I added an extra field to indicate the
> shift after applying the mask.

You should really upgrade your I-pipe tree to a more recent one, where
the support for tsc emulation was factored. You would add the new case
to the tsc implementations in kernel-space, and nowhere else. When you
are done, please send a patch.

> 
> Now the userspace latency test prorgam gives valid latencies, sadly
> it's still -1ms to 3ms latency.
> 
> How should I proceed troubleshooting this?
> Looking at the ipipe trace it looks the task is brought op quite fast
> after the interrupt fires so I think it is set at the wrong time, I'm
> going to look into this.

The I-pipe tracer has a trace point at the point where the timer was
supposed to tick.

-- 
                                                                Gilles.


  reply	other threads:[~2011-09-18 14:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-17 15:15 [Xenomai-core] Port to stmp3xxx (arm based) Bertold Van den Bergh
2011-09-18 13:09 ` Gilles Chanteperdrix
2011-09-18 14:43   ` Bertold Van den Bergh
2011-09-18 14:51     ` Gilles Chanteperdrix [this message]
2011-09-18 17:33     ` Gilles Chanteperdrix

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=4E76058F.8050609@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=vandenbergh@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.