Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2012 21:48:37 +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: r233330 - head/sys/dev/ath
Message-ID:  <201203222148.q2MLmba0042876@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu Mar 22 21:48:36 2012
New Revision: 233330
URL: http://svn.freebsd.org/changeset/base/233330

Log:
  Add some further debugging to try and aid tracking down what the state of
  things were just before a full software queue is drained.

Modified:
  head/sys/dev/ath/if_ath_tx.c

Modified: head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx.c	Thu Mar 22 21:47:14 2012	(r233329)
+++ head/sys/dev/ath/if_ath_tx.c	Thu Mar 22 21:48:36 2012	(r233330)
@@ -663,6 +663,15 @@ ath_tx_tag_crypto(struct ath_softc *sc, 
     struct mbuf *m0, int iswep, int isfrag, int *hdrlen, int *pktlen,
     int *keyix)
 {
+	DPRINTF(sc, ATH_DEBUG_XMIT,
+	    "%s: hdrlen=%d, pktlen=%d, isfrag=%d, iswep=%d, m0=%p\n",
+	    __func__,
+	    *hdrlen,
+	    *pktlen,
+	    isfrag,
+	    iswep,
+	    m0);
+
 	if (iswep) {
 		const struct ieee80211_cipher *cip;
 		struct ieee80211_key *k;
@@ -1473,6 +1482,7 @@ ath_tx_start(struct ath_softc *sc, struc
 		/* No AMPDU TX, we've been assigned a sequence number. */
 		if (IEEE80211_QOS_HAS_SEQ(wh)) {
 			bf->bf_state.bfs_seqno_assigned = 1;
+			/* XXX we should store the frag+seqno in bfs_seqno */
 			bf->bf_state.bfs_seqno =
 			    M_SEQNO_GET(m0) << IEEE80211_SEQ_SEQ_SHIFT;
 		}
@@ -2636,6 +2646,15 @@ ath_tx_tid_drain(struct ath_softc *sc, s
 
 		if (t == 0) {
 			device_printf(sc->sc_dev,
+			    "%s: node %p: bf=%p: addbaw=%d, dobaw=%d, "
+			    "seqno_assign=%d, seqno_required=%d, seqno=%d\n",
+			    __func__, ni, bf,
+			    bf->bf_state.bfs_addedbaw,
+			    bf->bf_state.bfs_dobaw,
+			    bf->bf_state.bfs_need_seqno,
+			    bf->bf_state.bfs_seqno_assigned,
+			    SEQNO(bf->bf_state.bfs_seqno));
+			device_printf(sc->sc_dev,
 			    "%s: node %p: bf=%p: tid %d: txq_depth=%d, "
 			    "txq_aggr_depth=%d, sched=%d, paused=%d, "
 			    "hwq_depth=%d, incomp=%d, baw_head=%d, "



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