Date: Wed, 4 Apr 2012 22:24:11 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r233898 - head/sys/dev/ath Message-ID: <201204042224.q34MOBao027896@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204042224.q34MOBao027896>