Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2010 22:40:47 +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-8@freebsd.org
Subject:   svn commit: r211367 - stable/8/sys/dev/bge
Message-ID:  <201008152240.o7FMelkB074638@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Sun Aug 15 22:40:47 2010
New Revision: 211367
URL: http://svn.freebsd.org/changeset/base/211367

Log:
  MFC r209714:
    It seems read DMA mode register requires both IPv4 TSO and IPv6 TSO
    configuration to get IPv4 TSO work on BCM57780. While I'm here
    apply the same fix to BCM5785 which shares similar hardware feature
    of BCM57780. This change makes TSO work on BCM57780.
  
    Tested by:	Tong Liu <nemoliu <> gmail dot com>

Modified:
  stable/8/sys/dev/bge/if_bge.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cam/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/bge/if_bge.c
==============================================================================
--- stable/8/sys/dev/bge/if_bge.c	Sun Aug 15 22:37:32 2010	(r211366)
+++ stable/8/sys/dev/bge/if_bge.c	Sun Aug 15 22:40:47 2010	(r211367)
@@ -1861,8 +1861,12 @@ bge_blockinit(struct bge_softc *sc)
 		    BGE_RDMAMODE_MBUF_SBD_CRPT_ATTN;
 	if (sc->bge_flags & BGE_FLAG_PCIE)
 		val |= BGE_RDMAMODE_FIFO_LONG_BURST;
-	if (sc->bge_flags & BGE_FLAG_TSO)
+	if (sc->bge_flags & BGE_FLAG_TSO) {
 		val |= BGE_RDMAMODE_TSO4_ENABLE;
+		if (sc->bge_asicrev == BGE_ASICREV_BCM5785 ||
+		    sc->bge_asicrev == BGE_ASICREV_BCM57780)
+			val |= BGE_RDMAMODE_TSO6_ENABLE;
+	}
 	CSR_WRITE_4(sc, BGE_RDMA_MODE, val);
 	DELAY(40);
 



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