[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    
From:       "Bruce R. Montague" <brucem () cruzio ! com>
Date:       2003-04-29 16:58:07
[Download RAW message or body]



Hi, re the USB ohci patches Bodo RusKamp mentioned
in:

 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=2917+0+current/freebsd-arch

> This contains a fix for a serious bug in the OHCI code that was present
> for a very long time in FreeBSD and NetBSD: ...

Manual application of the "ohci.c" patch file shows
that all but two of the hunks patching usb driver
file "ohci.c" are already present in "ohci.c" in the
-current sources (obtained via cvsup as of 10-April-2003).

The two new patches potentially effect unprotected
critical sections in isochronous transfers. However,
with the patches applied, isochronous transfers still
only work for me for about 23 frames frames on my
'test device' (a webcam).  Additionally, there appears
to be other code blocks in the -current "ohci.c"
that would require similar patching (that is, that
aren't included in the patch). Perhaps the patches
are based on older versions of ohci that don't have
these other cases...

The two new patches, as far as I can tell, are:

1) The hunk 4 and 5 patches to "ohci_alloc_sitd()"
that adds a "s = splusb();/splx()" encapsulation
around sitd descriptor updates in the case of a new
allocation (these hunks have some other updates
already applied in the current code), and,

2) The hunk 7 patches to "ohci_softintr()" protecting
a "usb_transfer_complete()" call with a "s = splusb();
splx()". There are other calls to "usb_transfer_complete()"
in this same routine that are also not protected in
a splusb() critical section...



 - bruce
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic