Author: yongari
Date: Thu Feb 23 05:10:00 2012
New Revision: 232019
URL: http://svn.freebsd.org/changeset/base/232019

Log:
  Give hardware chance to drain active DMA cycles.

Modified:
  head/sys/dev/sf/if_sf.c

Modified: head/sys/dev/sf/if_sf.c
==============================================================================
--- head/sys/dev/sf/if_sf.c     Thu Feb 23 04:32:41 2012        (r232018)
+++ head/sys/dev/sf/if_sf.c     Thu Feb 23 05:10:00 2012        (r232019)
@@ -2329,6 +2329,9 @@ sf_stop(struct sf_softc *sc)
        /* Disable Tx/Rx egine. */
        csr_write_4(sc, SF_GEN_ETH_CTL, 0);
 
+       /* Give hardware chance to drain active DMA cycles. */
+       DELAY(1000);
+
        csr_write_4(sc, SF_CQ_CONSIDX, 0);
        csr_write_4(sc, SF_CQ_PRODIDX, 0);
        csr_write_4(sc, SF_RXDQ_ADDR_Q1, 0);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to