Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 1997 10:23:11 -0700 (PDT)
From:      Jim Shankland <jas@flyingfox.com>
To:        jkh@time.cdrom.com
Cc:        freebsd-hardware@FreeBSD.ORG
Subject:   Re: four-port ethernet - adaptec ANA-6944A/TX
Message-ID:  <199709091723.KAA02502@biggusdiskus.flyingfox.com>

next in thread | raw e-mail | index | archive | help
Jordan writes: 

> 	http://www.3am-software.com/de-970703.tar.gz
> 
> We're trying to evaluate that driver now for possible inclusion
> with the next FreeBSD release(s).

Note that that version of the driver has a fairly serious bug in
FreeBSD:  it mallocs the tulip_softc structure, which has grown
to > 4 KB in size.  At the end of the tulip_softc structure are
arrays of receive and transmit descriptors that must be physically
contiguous.  Since the structure spans a page boundary, they may
not turn out to be contiguous.

Matt's suggested solution was to reduce TULIP_TXDESCS (the number
of transmit descriptors) from 128 to 32; this shrinks the tulip_softc
structure back under 4 KB.  Alternatively, the receive and transmit
descriptor arrays can be allocated separately, rather then embedded
in the tulip_softc structure.

As long as the tulip_softc structure happens to be mapped to
physically contiguous memory, everything works.  But completely
unrelated kernel changes can cause this to break; symptoms are
that the driver wedges after transmitting about 100 packets.

Jim Shankland




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709091723.KAA02502>