Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2009 17:30:38 +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: r199807 - head/sys/dev/bge
Message-ID:  <200911251730.nAPHUcG8056950@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Wed Nov 25 17:30:38 2009
New Revision: 199807
URL: http://svn.freebsd.org/changeset/base/199807

Log:
  Make sure one shot MSI is enabled.
  
  Submitted by:	marius

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Wed Nov 25 16:36:07 2009	(r199806)
+++ head/sys/dev/bge/if_bge.c	Wed Nov 25 17:30:38 2009	(r199807)
@@ -2915,6 +2915,8 @@ again:
 #if __FreeBSD_version > 700030
 	if (BGE_IS_5755_PLUS(sc) && sc->bge_flags & BGE_FLAG_MSI) {
 		/* Take advantage of single-shot MSI. */
+		CSR_WRITE_4(sc, BGE_MSI_MODE, CSR_READ_4(sc, BGE_MSI_MODE) &
+		    ~BGE_MSIMODE_ONE_SHOT_DISABLE);
 		sc->bge_tq = taskqueue_create_fast("bge_taskq", M_WAITOK,
 		    taskqueue_thread_enqueue, &sc->bge_tq);
 		if (sc->bge_tq == NULL) {



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