Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2009 20:23:44 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org
Subject:   svn commit: r187310 - in stable/6/sys: . dev/bge
Message-ID:  <200901152023.n0FKNiJJ086491@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Thu Jan 15 20:23:44 2009
New Revision: 187310
URL: http://svn.freebsd.org/changeset/base/187310

Log:
  MFC: r184380
  
  Do as the Linux tg3 driver does and enable MSI support also
  for the BCM5714 revision A0 when in a multi-port configuration
  and unconditionally for the remainder of the class of BCM575X
  and beyond chips.

Modified:
  stable/6/sys/   (props changed)
  stable/6/sys/dev/bge/if_bge.c

Modified: stable/6/sys/dev/bge/if_bge.c
==============================================================================
--- stable/6/sys/dev/bge/if_bge.c	Thu Jan 15 20:23:38 2009	(r187309)
+++ stable/6/sys/dev/bge/if_bge.c	Thu Jan 15 20:23:44 2009	(r187310)
@@ -2331,10 +2331,11 @@ bge_can_use_msi(struct bge_softc *sc)
 	int can_use_msi = 0;
 
 	switch (sc->bge_asicrev) {
+	case BGE_ASICREV_BCM5714_A0:
 	case BGE_ASICREV_BCM5714:
 		/*
-		 * Apparently, MSI doesn't work when this chip is configured
-		 * in single-port mode.
+		 * Apparently, MSI doesn't work when these chips are
+		 * configured in single-port mode.
 		 */
 		if (bge_has_multiple_ports(sc))
 			can_use_msi = 1;
@@ -2344,10 +2345,9 @@ bge_can_use_msi(struct bge_softc *sc)
 		    sc->bge_chiprev != BGE_CHIPREV_5750_BX)
 			can_use_msi = 1;
 		break;
-	case BGE_ASICREV_BCM5752:
-	case BGE_ASICREV_BCM5780:
-		can_use_msi = 1;
-		break;
+	default:
+		if (BGE_IS_575X_PLUS(sc))
+			can_use_msi = 1;
 	}
 	return (can_use_msi);
 }



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