All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Ipipe-core patched kernel fails to start when certain platform drivers are enabled
Date: Thu, 30 Apr 2015 23:34:04 +0200	[thread overview]
Message-ID: <20150430213404.GC1993@hermes.click-hack.org> (raw)
In-Reply-To: <20150430212151.GD24389@csclub.uwaterloo.ca>

On Thu, Apr 30, 2015 at 05:21:51PM -0400, Lennart Sorensen wrote:
> On Thu, Apr 30, 2015 at 10:14:09PM +0200, Gilles Chanteperdrix wrote:
> > "architected timer" is the name of the timers available since cortex
> > A15 (on A7 also, I guess it allows big/little to run exactly the
> > same code on both cores), and I thought I had understood it was also
> > available on armv8. These timers are guaranteed to operate a long
> > period of time without wrapping (something like tens of years), so
> > they do not have a resolution as high as they could have (especially
> > since implementations use less than 32 bits of the higher 32 bits).
> 
> The A15 (and A7, A17, A12, etc) timer is certainly handy.  Some designs
> have managed to screw it up though (like the exynos 5420, where samsung
> decided they were going to use their own timer design from previous
> designs, and not initialize or even run the A15 timer, so the register
> is there, the timer is there, but it isn't running and hence you can't
> use it, which pretty much means no chance of KVM on the exynos chips
> given it assumes the architecture timer can be used by the guest too).
> 
> Good thing we use the TI am572x instead, which does have the architecture
> timer, although with an errata I had to come up with a software fix for.
> The speed is slightly wrong but consistently so.

I had tested architected timers on omap5432, and I believe the
counter frequency was something like 5 MHz, and a high latency, this
looks like a serious regression when omap4 had the global timer
running at 500 MHz and a 22ns latency in user-space (including the
time to jump to the kernel helper), which is better than the latency
I have on an atom N230 where reading the tsc is a dedicated
instruction (like architected timers actually).

-- 
					    Gilles.


  parent reply	other threads:[~2015-04-30 21:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 15:53 [Xenomai] Ipipe-core patched kernel fails to start when certain platform drivers are enabled Hongfei Cheng
2015-04-30 16:17 ` Gilles Chanteperdrix
2015-04-30 18:12   ` Hongfei Cheng
2015-04-30 18:14     ` Gilles Chanteperdrix
2015-04-30 18:17       ` Hongfei Cheng
2015-04-30 18:31 ` Gilles Chanteperdrix
2015-04-30 20:04   ` Hongfei Cheng
2015-04-30 20:14     ` Gilles Chanteperdrix
2015-04-30 21:21       ` Lennart Sorensen
2015-04-30 21:27         ` Gilles Chanteperdrix
2015-05-01 13:45           ` Lennart Sorensen
2015-05-01 13:56             ` Gilles Chanteperdrix
2015-05-01 14:36               ` Lennart Sorensen
2015-05-01 14:44                 ` Gilles Chanteperdrix
2015-05-01 15:33                   ` Lennart Sorensen
2015-05-13 17:01                     ` Lennart Sorensen
2015-05-13 17:33                       ` Lennart Sorensen
2015-05-01 14:00             ` Gilles Chanteperdrix
2015-04-30 21:34         ` Gilles Chanteperdrix [this message]
2015-05-01 14:20           ` Lennart Sorensen
2015-05-01 14:30             ` Gilles Chanteperdrix
2015-05-01 15:11               ` Lennart Sorensen
2015-05-01 15:22                 ` 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=20150430213404.GC1993@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=lsorense@csclub.uwaterloo.ca \
    --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.