From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Michael Haberler <mail17@mah.priv.at>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] RTDM API: no CPU binding, FPU setting for tasks available?
Date: Wed, 07 Nov 2012 20:44:47 +0100 [thread overview]
Message-ID: <509ABA2F.3070507@xenomai.org> (raw)
In-Reply-To: <39DEC9F1-236E-481A-A685-E3EFE883BCFA@mah.priv.at>
On 11/07/2012 08:26 PM, Michael Haberler wrote:
>
> Am 07.11.2012 um 20:16 schrieb Wolfgang Grandegger:
>
>> On 11/07/2012 08:06 PM, Michael Haberler wrote:
>>> As suggested, I adapted the LinuxCNC kernel support from native
>>> to RTDM API; my remaining issues are:
>>>
>>> - how do I achieve CPU binding which is available in
>>> rt_task_create() (T_CPU(cpuid))? - do I need to tell an RTDM task
>>> that the thread might use the FPU (T_FPU in rt_task_create()) ?
>>
>> http://www.xenomai.org/documentation/trunk/html/api/group__task.html#ga03387550693c21d0223f739570ccd992
>>
>>
it pretty clear.
>
> Wolfgang -
>
> I was suggested:
>
>> Also note that if LinuxCNC code runs in kernel-space, you should
>> not be using the native API, but the RTDM API.
>
> which I translate as 'use rtdm_task_init instead of rt_task_create'
>
> I have the kernel code using the native API just fine. The concern I
> have is for long-term compatibility, which is why I'm attempting to
> port to RTDM.
In xenomai 3.0, FPU in kernel-space will not be supported. But it is
true that we lack a service to set affinity for RTDM tasks. Though if
you are creating the task from a linux context (module initialization
function, or linux kernel threas), you can probably use set_cpus_allowed
before rtdm_task_init to get the task created on the target cpu (set
call it again after to restore the mask).
--
Gilles.
next prev parent reply other threads:[~2012-11-07 19:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 19:06 [Xenomai] RTDM API: no CPU binding, FPU setting for tasks available? Michael Haberler
2012-11-07 19:16 ` Wolfgang Grandegger
2012-11-07 19:26 ` Michael Haberler
2012-11-07 19:44 ` Gilles Chanteperdrix [this message]
2012-11-07 20:17 ` Michael Haberler
2012-11-07 20:28 ` Gilles Chanteperdrix
2012-11-07 22:40 ` Lennart Sorensen
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=509ABA2F.3070507@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=mail17@mah.priv.at \
--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.