All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: GP Orcullo <kinsamanka@gmail.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] ODROID-U3 porting problems
Date: Wed, 27 Aug 2014 19:14:55 +0200	[thread overview]
Message-ID: <53FE120F.1000102@xenomai.org> (raw)
In-Reply-To: <53FDFD27.2010207@xenomai.org>

On 08/27/2014 05:45 PM, Gilles Chanteperdrix wrote:
> On 08/27/2014 03:49 PM, GP Orcullo wrote:
>> Hi,
>>
>> I'm in the process of porting xenomai to Samsung Exynos 4420 based
>> ODROID-U3 board. I've followed the online manual and I was able to finish
>> up to the interrupt controller part.
>>
>> So far everything works when booting the board with CONFIG_IPIPE and
>> CONFIG_XENOMAI enabled. However, running the latency test gives the
>> following results:
>>
>> root@odroidu3:~# /usr/lib/xenomai/testsuite/latency -t 0 -T5
>> == Sampling period: 1000 us
>> == Test mode: periodic user-mode task
>> == All results in microseconds
>> warming up...
>> RTT|  00:00:01  (periodic user-mode task, 1000 us period, priority 99)
>> RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
>> RTD|-1054607.854|-555107.854|-416666.667|       0|
>> 0|-1054607.854|-416666.667
>> RTD|-2054607.854|-1555107.854|-416666.667|       0|
>> 0|-2054607.854|-416666.667
>> RTD|1240359.443|1739859.443|-416666.667|       0|     0|1240359.443|-416666.667
>> RTD| 240359.443| 739859.443|-416666.667|       0|     0| 240359.443|-416666.667
>> ---|-----------|-----------|-----------|--------|------|-------------------------
>> RTS| 240359.443|-2055107.854|-416666.667|       0|     0|    00:00:05/00:00:05
> 
> I would say you have a problem with the tsc emulation. Have you tried to
> run the "tsc" program?

In fact, your problem is only with the user-space tsc emulation. Are you
sure you passed the right physical address of the counter used for tsc
emulation, in the structure passed to the ipipe_tsc_register service?
You do not seem to be using the global timer, since your counter has a
24 MHz frequency. Note that the global timer probably runs at 500 MHz on
your system, so using the global timer would yield a better precision.

-- 
                                                                Gilles.


  reply	other threads:[~2014-08-27 17:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-27 13:49 [Xenomai] ODROID-U3 porting problems GP Orcullo
2014-08-27 15:45 ` Gilles Chanteperdrix
2014-08-27 17:14   ` Gilles Chanteperdrix [this message]
2014-08-28 13:45   ` GP Orcullo
2014-08-28 13:51     ` Gilles Chanteperdrix
2014-08-28 15:12       ` Poole Jr, Donald R.
2014-08-28 16:34         ` GP Orcullo
2014-08-28 16:40           ` Gilles Chanteperdrix
2014-08-28 17:05             ` GP Orcullo
2014-08-28 18:34               ` Gilles Chanteperdrix
2014-08-30  0:17                 ` GP Orcullo
2014-08-30  1:11                   ` Gilles Chanteperdrix
2014-08-30  2:22                   ` Gilles Chanteperdrix
2014-08-30  2:40                     ` GP Orcullo
2014-08-29 23:13     ` Alexandre Donisete Bensi
2014-08-30  0:50       ` GP Orcullo

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=53FE120F.1000102@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=kinsamanka@gmail.com \
    --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.