All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Advice needed: Xenomai / USB access from kernel task
@ 2008-02-22  9:13 G.P.M. Haagh
  2008-02-22 11:08 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: G.P.M. Haagh @ 2008-02-22  9:13 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1454 bytes --]


One of our trainees has written a LKM that accesses the standard Linux
kernel's usb_core facilities from a Xenomai real-time thread running in
kernel space.
I am doing some follow up on his work and run into problems.
I would appreciate some help/advise.

1)
The main question to start with: is it Ok to submit urbs to usb_core
(usb_submit_urb)  from a Xenomai kernel task (task created in a LKM) ?

2) If Ok (Xenomai 2.3.4 / kernel 2.6.20.1)

- A task, created with rt_task_created in the LKM, reads a rt_pipe and
submits a (bulk-) URB.
Most times, the  URB submits works OK.
However occasionally (once every 10-15 minutes at 6 submits/s) the kernel
runs into problems --
the ata driver starts complaining about timeouts and cannot recover,
ethernet stops working, the USB mouse and keyboard stop working
or the system becomes completely silent and unresponsive.

- When using Xenomai 2.4.2 kernel 2.6.23.x, the USB submit always fails in
the sense that an exception (6) occurs in the xenomai thread when calling
usb_submit_urb; so the submit urb call never returns.
(saw this logged in /var/log/messages).

- The same USB related code does not cause problems when used as part of a
'normal' Linux character driver. The submit URB calls are then made from
the file write context.


Can anyone give me some advise/hints on how I can approach this problem?


thanks in advance,
Gerard

G.P.M. Haagh
Philips Applied Technologies
Eindhoven, The Netherlands

[-- Attachment #2: Type: text/html, Size: 1601 bytes --]

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

end of thread, other threads:[~2008-02-22 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-22  9:13 [Xenomai-help] Advice needed: Xenomai / USB access from kernel task G.P.M. Haagh
2008-02-22 11:08 ` Gilles Chanteperdrix
2008-02-22 11:34   ` Jan Kiszka

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.