Subject: Re: bus_dmamap_sync() in ti(4) or the lack thereof
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 03/03/2007 14:34:51
On Sat, Mar 03, 2007 at 10:41:52AM +0900, Izumi Tsutsui wrote:
> tnn+nbsd@nygren.pp.se wrote:
> 
> > Yeah, I've noticed it still doesn't work right. It's gone from 
> > non-functional
> > to usable, but tcpdump still shows bogus packets with invalid checksums
> > and performance is bad.
> 
> Hmm. I'm afraid no one tried ti(4) on big endian machines.
> ti(4) seems to have some BYTESWAP functions, but I have
> seen few boards which handle byteswap properly by hardware
> and I have had to add htole32()/le32toh() etc. around all
> DMA descriptor accesses.

Well, it did work at one time:
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=13341
(Fixed in if_ti.c 1.60). I'm not sure what happended after that ...

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