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: Fri, 1 May 2015 15:56:51 +0200	[thread overview]
Message-ID: <20150501135651.GE1993@hermes.click-hack.org> (raw)
In-Reply-To: <20150501134547.GF24389@csclub.uwaterloo.ca>

On Fri, May 01, 2015 at 09:45:47AM -0400, Lennart Sorensen wrote:
> On Thu, Apr 30, 2015 at 11:27:49PM +0200, Gilles Chanteperdrix wrote:
> > The problem I see with the architected timer is the minimum wrap
> > time imposed by the specification, which forces a low resolution if
> > the implementer does not want to implement the full 64 bits. So, it
> > may be a good reason to propose another timer, with say nanosecond
> > resolution, but without a guaranteed large wrap time, especially
> > since then implementation can extend it to the full 64 its in
> > software and have both high resolution and long wrap time.
> 
> Well on the TI am572x it is 56 bits at about 6MHz, so it wraps every
> 2794 seconds according to the boot messages.  Would be nice if it was
> 64 bits, since that would avoid wrapping for quite a while.  And sure
> a timer with 1ns would be great.  This one only gets 162ns.

6MHz is still not a lot (even omap3 did better than that).

And no, a A 56 bits counter running at 6MHz does not wrap in 2794
seconds, it wraps in:

(2^56) / 6000000 = 12009599006 s

That is:
12009599006 / (365 * 24 * 3600) = 380 years

So, you are safe, it can be considered to avoid wrapping for a
reasonable amount of time.

Which means really, that I do not understand why the frequency is so
low.

56 bits at 1 GHz would wrap in two years using the same computation,
that clearly would violate ARM specs. But 60 MHz for instance would
wrap in 38 years, that would seem reasonable.

-- 
					    Gilles.


  reply	other threads:[~2015-05-01 13:56 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 [this message]
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
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=20150501135651.GE1993@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.