All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Suggested approach to schedule N-RT work in kernel on a specific CPU core
@ 2016-03-20  7:15 Alex Plits
  2016-03-20  7:25 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Plits @ 2016-03-20  7:15 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi,

We have a requirement to schedule N-RT linux kernel specific work  (e.g. workQ) on a dedicated core from an RTDM driver running
In Xenomai "context".
The current RTDM API does in fact provide an API to schedule a N-RT workQ but this does not meet our needs as we need the N-RT job to run on
A dedicated CPU. Current API implementation will run this special workQ on the CPU where the RT scheduling call occurred, so I have 2 queries we need help with -

1.       Is there an API/example/configuration that will achieve our needs?

2.       In case there isn't what would be the best approach to implement such a mechanism - I can think of solutions but it seems excessive:

a.       Run another Xenomai thread that has CPU affinity on the target cpu Core which will call a dedicated RTDM blocking call (e.g. IOCTL with semTake) and then the scheduling RTDM driver will release that semaphore - which will re-schedule the thread on the core we need and now it can call a N-RT IOCTL for example.

b.      Initialize a new WorkQ on I-Pipe init which will be binded on the target cpu Core only then add new RTDM api to schedule work on that WorkQ - although I'm not sure this will work as it will use the VIRQ  mechanism which will somehow need to change cores.

Thanks,
Alex P.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-03-20  8:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-20  7:15 [Xenomai] Suggested approach to schedule N-RT work in kernel on a specific CPU core Alex Plits
2016-03-20  7:25 ` Gilles Chanteperdrix
2016-03-20  7:49   ` Alex Plits
2016-03-20  7:59     ` Gilles Chanteperdrix
2016-03-20  8:20       ` Alex Plits
2016-03-20  8:38         ` Gilles Chanteperdrix
2016-03-20  8:29       ` Alex Plits

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.