Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2012 05:10:00 +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: r232019 - head/sys/dev/sf
Message-ID:  <201202230510.q1N5A0Ie084802@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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