All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Seeger <steven.seeger@nasa.gov>
To: xenomai@xenomai.org
Subject: Re: [Xenomai] userspace absolute timer value
Date: Wed, 23 Dec 2015 13:05:00 -0500	[thread overview]
Message-ID: <2558065.W1DNnPs8ZD@wirbelwind> (raw)

All,

The issue that I had with userspace absolute time to start a timer (what 
latency test does) was due to a quirk on my board where the powerpc timebase 
was coming up as 0xdXXXXXXXXXXXXXXX which was causing the 32-bit userland to 
lose precision when getting the monotonic clock value. The latency test gets 
the time, adds a millisecond, and uses this time to start the process. However 
on my machine the time was way off due to the loss of precision. (there were 
more than 2^32 seconds, but time_t is only 32-bit) On my board adding some 
code to set the timebase to 0 in head_44x.S and that cleared up all the 
issues. Everything is working for me now. This appears to be a problem with 
how cobalt deals with 64-bit ns counters and 32-bit userspace clocks, however 
I could be missing something.

Steven



             reply	other threads:[~2015-12-23 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-23 18:05 Steven Seeger [this message]
2015-12-23 18:43 ` [Xenomai] userspace absolute timer value Gilles Chanteperdrix
2015-12-23 19:14   ` Steven Seeger
  -- strict thread matches above, loose matches on Subject: below --
2015-12-15  1:19 Steven Seeger
2015-12-22 16:59 ` Philippe Gerum

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=2558065.W1DNnPs8ZD@wirbelwind \
    --to=steven.seeger@nasa.gov \
    --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.