Subject: bus_dmamap_sync() in ti(4) or the lack thereof
To: None <tech-kern@netbsd.org>
From: Tobias Nygren <tnn+nbsd@nygren.pp.se>
List: tech-kern
Date: 02/27/2007 22:40:46
Folks,

ti(4) doesn't work right on sparc64. With DIAGNOSTIC i get tons
of "iommu_dvmamap_load: map still in use".

I took a glance at the ti(4) code and noticed the absence of any
preread/postread dma syncs, despite the fact that the driver relies
heavily on reuse of dma maps. This can't be right, can it?

The fact that the driver appears to reload maps without unloading
them first might be caused by something else, though.

Thoughts?

-Tobias