svn commit: r203353 - stable/7/sys/dev/e1000
John Baldwin
jhb at FreeBSD.org
Mon Feb 1 18:27:19 UTC 2010
Author: jhb
Date: Mon Feb 1 18:27:19 2010
New Revision: 203353
URL: http://svn.freebsd.org/changeset/base/203353
Log:
MFC: Disable the alignment restrictions in the bus dma tags for RX and TX
buffers. Recent fixes to bus dma exposed a bug somewhere (igb?) that
caused igb(4) to no longer receive packets without this change.
Approved by: re (kib)
Modified:
stable/7/sys/dev/e1000/if_igb.c
Modified: stable/7/sys/dev/e1000/if_igb.c
==============================================================================
--- stable/7/sys/dev/e1000/if_igb.c Mon Feb 1 17:51:01 2010 (r203352)
+++ stable/7/sys/dev/e1000/if_igb.c Mon Feb 1 18:27:19 2010 (r203353)
@@ -2767,7 +2767,7 @@ igb_allocate_transmit_buffers(struct tx_
* Setup DMA descriptor areas.
*/
if ((error = bus_dma_tag_create(NULL, /* parent */
- PAGE_SIZE, 0, /* alignment, bounds */
+ 1, 0, /* alignment, bounds */
BUS_SPACE_MAXADDR, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
@@ -3392,7 +3392,7 @@ igb_allocate_receive_buffers(struct rx_r
}
if ((error = bus_dma_tag_create(NULL, /* parent */
- PAGE_SIZE, 0, /* alignment, bounds */
+ 1, 0, /* alignment, bounds */
BUS_SPACE_MAXADDR, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
More information about the svn-src-all
mailing list