From owner-svn-src-head@freebsd.org Tue Apr 26 03:24:30 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 226FAB0DDE3; Tue, 26 Apr 2016 03:24:30 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C9E361491; Tue, 26 Apr 2016 03:24:29 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3Q3OS2v024615; Tue, 26 Apr 2016 03:24:28 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3Q3OSbp024614; Tue, 26 Apr 2016 03:24:28 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201604260324.u3Q3OSbp024614@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Tue, 26 Apr 2016 03:24:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298611 - head/sys/dev/iwm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2016 03:24:30 -0000 Author: adrian Date: Tue Apr 26 03:24:28 2016 New Revision: 298611 URL: https://svnweb.freebsd.org/changeset/base/298611 Log: [iwm] add extra transmit setup/completion logging so I can see what's going on. I'm seeing 5GHz association work but data not work until the rate drops, so I need way more information about what's being programmed into the transmit descriptors. Tested: * 7260AC, STA mode Modified: head/sys/dev/iwm/if_iwm.c Modified: head/sys/dev/iwm/if_iwm.c ============================================================================== --- head/sys/dev/iwm/if_iwm.c Tue Apr 26 01:52:35 2016 (r298610) +++ head/sys/dev/iwm/if_iwm.c Tue Apr 26 03:24:28 2016 (r298611) @@ -2410,6 +2410,17 @@ iwm_mvm_rx_tx_cmd_single(struct iwm_soft KASSERT(tx_resp->frame_count == 1, ("too many frames")); /* Update rate control statistics. */ + IWM_DPRINTF(sc, IWM_DEBUG_XMIT, "%s: status=0x%04x, seq=%d, fc=%d, btc=%d, frts=%d, ff=%d, irate=%08x, wmt=%d\n", + __func__, + (int) le16toh(tx_resp->status.status), + (int) le16toh(tx_resp->status.sequence), + tx_resp->frame_count, + tx_resp->bt_kill_count, + tx_resp->failure_rts, + tx_resp->failure_frame, + le32toh(tx_resp->initial_rate), + (int) le16toh(tx_resp->wireless_media_time)); + if (status != IWM_TX_STATUS_SUCCESS && status != IWM_TX_STATUS_DIRECT_DONE) { ieee80211_ratectl_tx_complete(vap, ni, @@ -2802,8 +2813,12 @@ iwm_tx(struct iwm_softc *sc, struct mbuf KASSERT(data->in != NULL, ("node is NULL")); IWM_DPRINTF(sc, IWM_DEBUG_XMIT, - "sending data: qid=%d idx=%d len=%d nsegs=%d\n", - ring->qid, ring->cur, totlen, nsegs); + "sending data: qid=%d idx=%d len=%d nsegs=%d txflags=0x%08x rate_n_flags=0x%08x rateidx=%d\n", + ring->qid, ring->cur, totlen, nsegs, + le32toh(tx->tx_flags), + le32toh(tx->rate_n_flags), + (int) tx->initial_rate_index + ); /* Fill TX descriptor. */ desc->num_tbs = 2 + nsegs;