cvs commit: src/sys/dev/usb usbdi.c
iedowse at iedowse.com
Wed Nov 29 02:58:10 PST 2006
In message <200611281453.26820.Danovitsch at vitsch.net>, "Daan Vreeken [PA4DAN]"
>I don't believe my patch is at the right place where it's placed now. Any
>ideas from someone with more bus_dma-foo and/or usb-foo are highly
>If more debugging information is needed, just ask.
Thanks for all the details - I'll try to put together a patch in the
next few days that adds bus_dmamap_sync() calls whereever there are
shared access ordering requirements in the host controller drivers.
As Olivier mentioned, bus_dma(9) says that this should be done even
for BUS_DMA_COHERENT allocations, so adding them may fix problems on
other platforms too.
BTW it looks like some of the packet descriptor structures in the
HC drivers currently throw away their bus_dma information, since
the strutures are never freed, so adding the bus_dmamap_sync() calls
will involve keeping track of them now.
More information about the cvs-src