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) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to