ath9k and stuck xmit queue?
I added a patch to my tree to print out some extra info, in particular the 'axq-stopped' bit. I notice that when I have 60 STA interfaces sometimes it seems to get stuck and cannot send any data. A printout of the debug in that case is below.
This is from today's wireless-testing (2.6.37-rc8)
[root@lec2010-ath9k-1 ~]# cat /debug/ieee80211/wiphy0/ath9k/xmit
BE BK VI VO
MPDUs Queued: 1534 0 0 8949 MPDUs Completed: 1534 0 0 8949 Aggregates: 90 0 0 0 AMPDUs Queued: 1544 0 0 0 AMPDUs Completed: 896 0 0 0 AMPDUs Retried: 90 0 0 0 AMPDUs XRetried: 0 0 0 0 FIFO Underrun: 0 0 0 0 TXOP Exceeded: 0 0 0 0 TXTIMER Expiry: 0 0 0 0 DESC CFG Error: 0 0 0 0 DATA Underrun: 0 0 0 0 DELIM Underrun: 0 0 0 0 TX-Pkts-All: 2430 0 0 8949 TX-Bytes-All: 1473128 0 0 288734 axq-qnum: 2 3 1 0 axq-depth: 0 0 0 0 axq-stopped 1 0 0 0 tx-in-progress 0 0 0 0 pending-frames 396 0 0 0
A minute or two later and it seems to recover, and traffic starts going again. I'm curious if anyone has any clues as to where the problem might lie based on the output above.
[root@lec2010-ath9k-1 ~]# cat /debug/ieee80211/wiphy0/ath9k/xmit
BE BK VI VO
MPDUs Queued: 1940 0 0 10360 MPDUs Completed: 1940 0 0 10360 Aggregates: 95 0 0 0 AMPDUs Queued: 1895 0 0 0 AMPDUs Completed: 1153 0 0 0 AMPDUs Retried: 94 0 0 0 AMPDUs XRetried: 64 0 0 0 FIFO Underrun: 0 0 0 0 TXOP Exceeded: 0 0 0 0 TXTIMER Expiry: 0 0 0 0 DESC CFG Error: 0 0 0 0 DATA Underrun: 0 0 0 0 DELIM Underrun: 0 0 0 0 TX-Pkts-All: 3157 0 0 10360 TX-Bytes-All: 2184232 0 0 323587 axq-qnum: 2 3 1 0 axq-depth: 0 0 0 0 axq-stopped 0 0 0 0 tx-in-progress 0 0 0 0 pending-frames 27 0 0 0
...but then it gets stuck again...
[root@lec2010-ath9k-1 ~]# cat /debug/ieee80211/wiphy0/ath9k/xmit
BE BK VI VO
MPDUs Queued: 1943 0 0 12161 MPDUs Completed: 1943 0 0 12161 Aggregates: 96 0 0 0 AMPDUs Queued: 2289 0 0 0 AMPDUs Completed: 1323 0 0 0 AMPDUs Retried: 94 0 0 0 AMPDUs XRetried: 64 0 0 0 FIFO Underrun: 0 0 0 0 TXOP Exceeded: 0 0 0 0 TXTIMER Expiry: 0 0 0 0 DESC CFG Error: 0 0 0 0 DATA Underrun: 0 0 0 0 DELIM Underrun: 0 0 0 0 TX-Pkts-All: 3330 0 0 12161 TX-Bytes-All: 2369384 0 0 368479 axq-qnum: 2 3 1 0 axq-depth: 0 0 0 0 axq-stopped 1 0 0 0 tx-in-progress 0 0 0 0 pending-frames 248 0 0 0
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 5 lines · Ben Greear
I added a patch to my tree to print out some extra info, in particular the 'axq-stopped' bit. I notice that when I have 60 STA interfaces sometimes it seems to get stuck and cannot send any data. A printout of the debug in that case is below.
I found a similar scenario, but to me even weirder:
Note that the queue is stopped, but has no depth, and not even any pending frames?
I do notice that the hw-tx-start is less than the number of processed descriptors. That seems to normally go along with the tx-hang issues..perhaps caused by chip resets or similar?
hw-tx-start: 53128 0 0 37325 hw-tx-proc-desc: 53103 0 0 37200 txq-memory-address: de70b3d0 de70b464 de70b33c de70b2a8 axq-qnum: 2 3 1 0 axq-depth: 0 0 0 0 axq-ampdu_depth: 0 0 0 0 axq-stopped 1 0 0 0 tx-in-progress 0 0 0 0 pending-frames 0 0 0 0 txq_headidx: 0 0 0 0 txq_tailidx: 0 0 0 0 axq_q empty: 0 1 1 0 axq_acq empty: 1 1 1 1 txq_fifo_pending: 1 1 1 1 txq_fifo[0] empty: 1 1 1 1 txq_fifo[1] empty: 1 1 1 1 txq_fifo[2] empty: 1 1 1 1 txq_fifo[3] empty: 1 1 1 1 txq_fifo[4] empty: 1 1 1 1 txq_fifo[5] empty: 1 1 1 1 txq_fifo[6] empty: 1 1 1 1 txq_fifo[7] empty: 1 1 1 1
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com