Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2009 00:56:01 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192706 - head/sys/dev/nfe
Message-ID:  <200905250056.n4P0u1xk005863@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon May 25 00:56:01 2009
New Revision: 192706
URL: http://svn.freebsd.org/changeset/base/192706

Log:
  NVIDIA MCP controllers have no Rx buffer alignment restrictions.
  Remove PAGE_SIZE alignment used in Rx buffer DMA tag creation. The
  alignment restriction was used in old local jumbo allocator and
  nfe(4) switched to UMA backed page allocator for jumbo frame.
  
  This change should fix jumbo buffer allocation failure.
  
  Reported by:	Pascal Braun ( pascal.braun <> continum dot net )

Modified:
  head/sys/dev/nfe/if_nfe.c

Modified: head/sys/dev/nfe/if_nfe.c
==============================================================================
--- head/sys/dev/nfe/if_nfe.c	Sun May 24 23:47:22 2009	(r192705)
+++ head/sys/dev/nfe/if_nfe.c	Mon May 25 00:56:01 2009	(r192706)
@@ -1153,7 +1153,7 @@ nfe_alloc_jrx_ring(struct nfe_softc *sc,
 
 	/* Create DMA tag for jumbo Rx buffers. */
 	error = bus_dma_tag_create(sc->nfe_parent_tag,
-	    PAGE_SIZE, 0,			/* alignment, boundary */
+	    1, 0,				/* alignment, boundary */
 	    BUS_SPACE_MAXADDR,			/* lowaddr */
 	    BUS_SPACE_MAXADDR,			/* highaddr */
 	    NULL, NULL,				/* filter, filterarg */



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