freebsd-skq/sys/dev
peter 4590e6a960 malloc() the rx and tx descriptors seperately rather than as part of the
large (over 4KB) softc struct.  The descriptor array is accessed by
busmaster dma and must be physically contiguous in memory.  malloc() of
a block greater than a page is only virtually contiguous, and not
necessarily physically contigious.

contigmalloc() could do this, but that is a bit on the overkill side.

I'm not sure of the origins of the problem report and diagnosis, I learned
of the problem via mail forwarded from  Jim Shankland <jas@flyingfox.com>.

Jim said that Matt Thomas's workaround was to reduce the number of
transmit descriptors from 128 to 32, but I was concerned that it might
cost performance.  Anyway, this change is my fault, not Jim's. :-)

Reviewed by: davidg
1997-09-11 15:27:35 +00:00
..
advansys Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
aic7xxx Make the aic7xxx sequencer assembler compile in the kernel's object 1997-09-03 03:44:58 +00:00
ar Added used #include - don't depend on <sys/mbuf.h> including 1997-09-02 01:19:47 +00:00
bktr Amancio's latest in the Brooktree driver. 1997-09-09 06:32:32 +00:00
ccd Removed unused #includes. 1997-06-14 13:56:12 +00:00
cy Cleaned up revs 1.36-1.40 (mainly disordered declarations, non-bogus 1997-09-03 01:50:24 +00:00
de malloc() the rx and tx descriptors seperately rather than as part of the 1997-09-11 15:27:35 +00:00
dgb Don't depend on gcc's feature of permitting labels that aren't followed 1997-07-01 00:22:51 +00:00
ed Change the address for the low end of what we permit from c0000 down 1997-09-10 00:17:39 +00:00
eisa #include <machine/limits.h> explicitly in the few places that it is required. 1997-08-21 20:33:42 +00:00
en Added used #include - don't depend on <sys/mbuf.h> including 1997-09-02 01:19:47 +00:00
ep Added used #include - don't depend on <sys/mbuf.h> including 1997-09-02 01:19:47 +00:00
ex Removed unused #includes. 1997-07-20 14:10:18 +00:00
fdc Removed unused #includes. 1997-07-20 14:10:18 +00:00
fe Removed unused #includes. 1997-07-20 14:10:18 +00:00
fxp Changes to support NetBSD and the new ifmedia extensions. 1997-09-05 10:23:58 +00:00
ic Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ie Added used #include - don't depend on <sys/mbuf.h> including 1997-09-02 01:19:47 +00:00
joy Removed unused #includes. 1997-07-20 14:10:18 +00:00
kbd Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
lnc Removed unused #includes. 1997-08-02 14:33:27 +00:00
mcd Removed unused #includes. 1997-07-20 14:10:18 +00:00
mse Removed unused #includes. 1997-07-20 14:10:18 +00:00
pci Reorder function decls alphabetically. 1997-08-21 08:31:41 +00:00
pdq Removed unused #includes. 1997-08-02 14:33:27 +00:00
ppbus Oops, the previous change applied a reversed patch. 1997-09-01 18:39:37 +00:00
ppc Removed unused #includes. 1997-09-01 02:08:42 +00:00
rc Removed unused #includes. 1997-07-20 14:10:18 +00:00
rp Removed unused #includes. 1997-09-01 02:08:42 +00:00
scd Removed unused #includes. 1997-07-20 14:10:18 +00:00
si Removed unused #includes. 1997-07-20 14:10:18 +00:00
sio General cleanup of the sub-system locking macros. 1997-09-01 07:45:37 +00:00
snp Don't include <sys/ioctl.h> in the kernel. Stage 3: include 1997-03-24 11:37:53 +00:00
speaker Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
sr Removed unused #includes. 1997-09-02 20:06:59 +00:00
syscons Add a new compile option SC_HISTORY_SIZE to specify the history buffer 1997-09-04 23:01:06 +00:00
vn Fixed locking violation of vnode operation. VOP_READ, VOP_WRITE and 1997-08-14 13:44:19 +00:00
vx Struct arpcom should be in the beginning of a softc struct for arp and 1997-09-02 16:44:46 +00:00
wl Fixed type mismatch for a (low quality interface) function with an 1997-08-25 22:34:25 +00:00