From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Adeos <adeos-main@gna.org>
Subject: Re: [Adeos-main] ipipe_request_tickdev issue
Date: Mon, 20 Feb 2012 17:40:54 +0100 [thread overview]
Message-ID: <4F427796.60400@domain.hid> (raw)
In-Reply-To: <4F36B4A5.8080202@domain.hid>
On 02/11/2012 07:34 PM, Gilles Chanteperdrix wrote:
>
> Hi,
>
> I found this out a long time ago on AT91 and worked around it but am
> starting to see the same issue on hardware which hardware timer does not
> wrap as fast: when xenomai calls ipipe_request_tickdev, the clockevent
> structure max_delta_ns member is set to ULONG_MAX, but on most ARM
> platforms, the reason for max_delta_ns is not only the timer hardware
> limit, it is also necessary to call eg. update_sched_clock at least once
> every max_delta_ns in order to avoid the hardware counter wrapping
> without the system noticing it.
>
> What do you think is the best way to avoid this issue? I would propose
> simply removing the line which does:
> evtdev->max_delta_ns = ULONG_MAX;
Assuming we never go through clockevents_program_event() to program the
next real-time shot, I don't see any issue killing this line in the
current pipeline implementation. This said, it is unlikely that we would
want to program delays larger than what the kernel defined as the
maximum for the clock chip anyway.
> in ipipe_request_tickdev, but maybe someone else sees a better solution.
>
--
Philippe.
prev parent reply other threads:[~2012-02-20 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-11 18:34 [Adeos-main] ipipe_request_tickdev issue Gilles Chanteperdrix
2012-02-20 16:40 ` Philippe Gerum [this message]
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=4F427796.60400@domain.hid \
--to=rpm@xenomai.org \
--cc=adeos-main@gna.org \
--cc=gilles.chanteperdrix@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.