Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2010 23:58:21 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r211388 - stable/7/sys/dev/bce
Message-ID:  <201008152358.o7FNwLNW079177@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Sun Aug 15 23:58:21 2010
New Revision: 211388
URL: http://svn.freebsd.org/changeset/base/211388

Log:
  MFC r210271:
    Specify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4)
    controllers require RX buffers aligned on BCE_RX_BUF_ALIGN bytes.

Modified:
  stable/7/sys/dev/bce/if_bce.c
  stable/7/sys/dev/bce/if_bcereg.h
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/bce/if_bce.c
==============================================================================
--- stable/7/sys/dev/bce/if_bce.c	Sun Aug 15 23:56:57 2010	(r211387)
+++ stable/7/sys/dev/bce/if_bce.c	Sun Aug 15 23:58:21 2010	(r211388)
@@ -3424,7 +3424,7 @@ bce_dma_alloc(device_t dev)
 	    "size = 0x%jX)\n", __FUNCTION__, (uintmax_t) max_size,
 	     max_segments, (uintmax_t) max_seg_size);
 
-	if (bus_dma_tag_create(sc->parent_tag, 1,
+	if (bus_dma_tag_create(sc->parent_tag, BCE_RX_BUF_ALIGN,
 	    BCE_DMA_BOUNDARY, sc->max_bus_addr, BUS_SPACE_MAXADDR, NULL, NULL,
 	    max_size, max_segments, max_seg_size, 0, NULL, NULL,
 	    &sc->rx_mbuf_tag)) {

Modified: stable/7/sys/dev/bce/if_bcereg.h
==============================================================================
--- stable/7/sys/dev/bce/if_bcereg.h	Sun Aug 15 23:56:57 2010	(r211387)
+++ stable/7/sys/dev/bce/if_bcereg.h	Sun Aug 15 23:58:21 2010	(r211388)
@@ -6313,6 +6313,7 @@ struct fw_info {
 
 #define BCE_DMA_ALIGN		8
 #define BCE_DMA_BOUNDARY	0
+#define BCE_RX_BUF_ALIGN	16
 
 #define BCE_MAX_CONTEXT		4
 



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