Current-Users archive

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

Re: Atheros L2 Fast-Ethernet Driver (EeePC)



On Tue, Apr 01, 2008 at 07:08:18PM +0100, Matthias Scheler wrote:
> 
> On 29 Mar 2008, at 18:41, Jared D. McNeill wrote:
> >
> >>This is the lii driver?  Does it have a fix for the freezing from  
> >>large packets?
> >
> >Yes.
> 
> Out of curiosity: What was the problem that caused the freeze?

I think I've left a comment in the code.

The big array for hosting received packets was said by the Linux driver
to have to be 128-byte aligned.  I did that, but I didn't pay enough
attention to all the computations they do to check that.

Each element of that array is a struct whose first field contains flags
and size information about the packet, and then the packet itself.

What needs to be on a 128-byte boundary is the space for the packet
itself.  My guess is that if it's not the case, the chip ends up
crashing, and either DMAs the computer into freezing or something close
to that.

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpY1Gw48oL6v.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index