All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Process shared rt_event_wait() never signaled on ARM with Mercury core
@ 2016-02-10 18:41 Charles Kiorpes
  2016-02-10 20:21 ` Philippe Gerum
  0 siblings, 1 reply; 10+ messages in thread
From: Charles Kiorpes @ 2016-02-10 18:41 UTC (permalink / raw)
  To: xenomai

Hello,
I am having some difficulty getting two processes to signal each other on
an AM572x EVM.
I have two small sample applications:

- app1 : creates an event "MYTEST" using rt_event_create(), clears the
event, and then rt_event_wait()s for TM_INFINITE.  When the event is
signaled, app1 rt_event_clear()s the event and then loops back to the
rt_event_wait()

- app2 : binds to the "MYTEST" event, sleeps for one second,
rt_event_signal()s the event, and then loops back to the one second sleep

I am using the Mercury core, built natively, configured with:
xenomai-3.0.1/configure \
--with-core=mercury \
--enable-debug \
--enable-pshared \
--disable-registry \
--enable-smp \
--enable-condvar-workaround

I launch both applications in different terminals in this order:
# sudo ./app1 --session="Test"
# sudo ./app2 --session="Test"

The following behavior results:
- app1 claims to have successfully created the event
- app2 claims to have successfully bound to the event
- app2 loops correctly, signalling the event once per second
- app1 never wakes up from the first rt_event_wait()

I am running the 4.1.15-ti-rt kernel with full preemption.

On an x86 virtual machine with a vanilla 4.2.0-27-generic kernel, the
applications perform as expected (app1 wakes up when app2 signals the
event).

Any advice as to where to look for further debugging would be greatly
appreciated.

Thanks,
Charles

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

end of thread, other threads:[~2016-02-17 21:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10 18:41 [Xenomai] Process shared rt_event_wait() never signaled on ARM with Mercury core Charles Kiorpes
2016-02-10 20:21 ` Philippe Gerum
2016-02-11 12:57   ` Charles Kiorpes
2016-02-12 10:43     ` Philippe Gerum
2016-02-12 14:08       ` Charles Kiorpes
2016-02-12 15:25         ` Philippe Gerum
2016-02-12 19:07           ` Charles Kiorpes
2016-02-16 15:40             ` Philippe Gerum
2016-02-17 21:34               ` Charles Kiorpes
2016-02-12 10:55     ` Philippe Gerum

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.