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 17:45:43 +0200	[thread overview]
Message-ID: <53FDFD27.2010207@xenomai.org> (raw)
In-Reply-To: <CACreCV+9seA7yp8gmjvOb6CQ7-Fbt-HyQ6YAoB_dqtmqmyvy7Q@mail.gmail.com>

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?


> [    0.000000] Linux version 3.8.13.11-xen (gemi@odroidu3) (gcc version 4.6.3 (Debian 4.6.3-14) ) #34 SMP PREEMPT Wed Aug 27 20:22:46 SGT 2014 ()

3.8.13 is a bit old, I would advise you to use 3.14 if you plan to get
your changes merged.

> [    0.000000] Kernel was built at commit id ''
> [    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d

So, this is a cortex a9. On Cortex a9, Xenomai tries to use the global
timer for tsc emulation. Are you sure this processor has a global timer?
Again, running the "tsc" program will help you see if the tsc emulation
is working correctly.


-- 
                                                                Gilles.


  reply	other threads:[~2014-08-27 15:45 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 [this message]
2014-08-27 17:14   ` Gilles Chanteperdrix
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=53FDFD27.2010207@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.