tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bus_dmamap_sync() for uhci(4)



On Mon, Jun 09, 2008 at 10:16:21PM +0200, Manuel Bouyer wrote:
> On Mon, Jun 09, 2008 at 03:43:05PM -0400, Michael Lorenz wrote:
> > >I just did that. Now the kernel doesn't find /any/ USB devices  
> > >except the root hubs. It can't really be a problem with crime  
> > >interrupts - ehci finds devices and other cards that used interrupt  
> > >10 worked before so at least one of the uhcis should work.
> > 
> > Hmm, an old, unpatched kernel does find devices at uhci.
> 
> thanks. That's strange: if I read things properly, all the memory used
> by uhci or ehci should be mapped uncached (use of BUS_DMA_COHERENT),
> so the _sync operations I added should just issue wmb() instructions,
> nothing more.

Could you add a
KASSERT(p->block->map->_dm_flags & SGIMIPS_DMAMAP_COHERENT)
in usb_syncmem() before the call to bus_dmamap_sync(), and see if it fires ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index