All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RTDM rtdm_task_sleep in kernel not always wakes up
@ 2010-03-12 18:21 Huan Fang
  2010-03-13 12:08 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Huan Fang @ 2010-03-12 18:21 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hello. I am writing a driver using RTDM. Just for testing, I have a rt kernel thread waiting for event signal sent from nrt_ioctl. After the thread is activated, it calls
 rtdm_task_busy_sleep(100000); then
 rtdm_task_sleep(100000);
 When the RT thread is really sleeping, the nrt_ioctl resumes and sleeps via wait_event_interruptible_timeout(2 jiffiles).

Normally, RT thread wakes up after 100us. But the thread seems to hang after 20-30 such loops and never wake up. 
When I kill the process. I saw that wait_event_interruptible_timeout returns a -512. 
The worse thing is I saw kernel panic sometimes during such context switches.

Huan

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

end of thread, other threads:[~2010-03-16 15:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-12 18:21 [Xenomai-help] RTDM rtdm_task_sleep in kernel not always wakes up Huan Fang
2010-03-13 12:08 ` Gilles Chanteperdrix
2010-03-16 15:15   ` Huan Fang

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.