From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Charles Steinkuehler <charles@steinkuehler.net>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Dedicated Core?
Date: Mon, 31 Mar 2014 13:29:45 +0200 [thread overview]
Message-ID: <533951A9.5060307@xenomai.org> (raw)
In-Reply-To: <533894D3.8090803@steinkuehler.net>
On 03/31/2014 12:04 AM, Charles Steinkuehler wrote:
> On 3/30/2014 4:41 PM, Gilles Chanteperdrix wrote:
>>
>> First, the imx6 is reported to have high latencies, and it is mostly due
>> to cache effects, so isolating the cpus will not help.
>>
>> Second, I would say relying on low user-space latencies to do in
>> user-space things that the kernel should do is a bad design. You would
>> have better success implementing the step motor control low level
>> details as a kernel driver, and only move the high level stuff in
>> user-space.
>
> I am not looking to migrate something that should be a kernel service,
> instead I'm trying to replace having dedicated hardware.
Actually, this reminds me of a discussion we had some time ago, about
generating PWM with omap3. You can find it here:
http://veter-project.blogspot.se/2011/09/real-time-enough-about-pwms-and-shaky.html
http://veter-project.blogspot.se/2012/04/precise-pwms-with-gpio-using-xenomai.html
http://comments.gmane.org/gmane.linux.real-time.xenomai.users/14026
In the end, Andrey succeeded to have precise control by using timers,
in kernel-space, instead of threads in user-space, and a little trick:
waking up early and spinning waiting for the target time.
--
Gilles.
next prev parent reply other threads:[~2014-03-31 11:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-30 20:49 [Xenomai] Dedicated Core? Charles Steinkuehler
2014-03-30 21:41 ` Gilles Chanteperdrix
2014-03-30 22:04 ` Charles Steinkuehler
2014-03-30 23:20 ` Lennart Sorensen
2014-03-30 23:22 ` Gilles Chanteperdrix
2014-03-31 11:29 ` Gilles Chanteperdrix [this message]
2014-03-31 12:19 ` Andy Pugh
2014-03-31 12:24 ` 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=533951A9.5060307@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=charles@steinkuehler.net \
--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.