summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-09-11 15:27:35 +0000
committerpeter <peter@FreeBSD.org>1997-09-11 15:27:35 +0000
commit4590e6a960b6b223e83aeb72e2778eeff0ac07d0 (patch)
treead05d2cdfc4b272147180347fbf205373de3c9e4 /usr.sbin/sade
parentce64e4e169ac61e130e0a35de394b94f77b2ac62 (diff)
downloadFreeBSD-src-4590e6a960b6b223e83aeb72e2778eeff0ac07d0.zip
FreeBSD-src-4590e6a960b6b223e83aeb72e2778eeff0ac07d0.tar.gz
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
Diffstat (limited to 'usr.sbin/sade')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud