All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: "Harkema, G.A." <G.A.Harkema@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Announcement Realtime USB Stack
Date: Fri, 11 Aug 2006 11:20:34 +0200	[thread overview]
Message-ID: <44DC4BE2.2050104@domain.hid> (raw)
In-Reply-To: <E443EE6E95070D46896C24F5C44EA7F53A15B6@domain.hid>

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

Harkema, G.A. wrote:
> Hello,
> 
>  
> 
> We are glad to present our new realtime USB stack based on Xenomai
> 2.2.0. You can find it at https://gna.org/projects/usb20rt/ as a
> downloadable file and svn.
> 
> It is not bug free, but it's a start. Please try the core and feel free
> to make comments.
> 

Porting the Linux USB stack over was certainly a lot of work. Could you
elaborate a bit on the design principles?

I saw e.g. that you preallocate one USB per endpoint, correct? Is there
a chance to add more pending URBs? Looks to me like a network driver
that is prepared to receive a single frame and than first requires the
application to read out the data. But I might be wrong here.

How do you manage transfer descriptors? Are they preallocated as well?

Some remarks on the code after a first glance:

 o rthal_spinlock shouldn't be used in a RTDM driver, pick rtdm_lock
   instead.
 o At least in the EHCI code there is still a Linux timer in use from
   RTDM IRQ context (mod_timer in rtdm_ehci_irq). This will blow your
   box sooner or later.
 o The skeleton driver registers its read handler also for non-rt usage.
   If you don't do this, you could drop that context check in
   rtdm_skeleton_read, and you will gain auto-context-switching for the
   caller as well.

This is certainly a pragmatic approach to gain USB 2.0 support over
RTDM. But I would recommend you to carefully review all time-critical
code paths (URB reception and transmission) with all its corner cases
and dependencies (via spinlocks) to check for their RT-safeness.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2006-08-11  9:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-11  7:50 [Xenomai-core] Announcement Realtime USB Stack Harkema, G.A.
2006-08-11  9:20 ` Jan Kiszka [this message]
2006-08-11 10:08 ` Wolfgang Grandegger

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=44DC4BE2.2050104@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=G.A.Harkema@domain.hid \
    --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.