svn commit: r233898 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Wed Apr 4 22:24:11 UTC 2012
Author: adrian
Date: Wed Apr 4 22:24:11 2012
New Revision: 233898
URL: http://svn.freebsd.org/changeset/base/233898
Log:
Disable the HWQ contents upon a TX queue reset, rather than a TX queue flush.
This is designed to assist in figuring out what the hardware state is
when something like a queue hang has occured.
Modified:
head/sys/dev/ath/if_ath.c
Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c Wed Apr 4 22:22:50 2012 (r233897)
+++ head/sys/dev/ath/if_ath.c Wed Apr 4 22:24:11 2012 (r233898)
@@ -4910,6 +4910,10 @@ ath_tx_processq(struct ath_softc *sc, st
if (sc->sc_debug & ATH_DEBUG_XMIT_DESC)
ath_printtxbuf(sc, bf, txq->axq_qnum, 0,
status == HAL_OK);
+ else if ((sc->sc_debug & ATH_DEBUG_RESET) && (dosched == 0)) {
+ ath_printtxbuf(sc, bf, txq->axq_qnum, 0,
+ status == HAL_OK);
+ }
#endif
if (status == HAL_EINPROGRESS) {
ATH_TXQ_UNLOCK(txq);
More information about the svn-src-all
mailing list