Bug 162647 - [ath] 11n TX aggregation session / TX hang
Summary: [ath] 11n TX aggregation session / TX hang
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 02:20 UTC by Adrian Chadd
Modified: 2018-05-28 19:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Chadd freebsd_committer 2011-11-18 02:20:02 UTC
A node flush is causing the BA window to be completely messed up, resulting in TX timeouts.

It's currently unknown why ath_tx_tid_drain() was called - that's called from:

* ath_tx_txq_drain()
* ath_tx_node_flush()

The former is called during ath_tx_draintxq(); the latter is called from ath_node_cleanup(). So either it's being called during ath_reset(sc, ATH_RESET_DEFAULT or ATH_RESET_FULL); or ic_node_cleanup.

A log snippet:

ath1: ath_tx_aggr_comp_aggr: TID 0: send BAR; seq 3678
ath1: ath_tx_aggr_comp_aggr: TID 0: send BAR; seq 3718
ath1: ath_tx_aggr_comp_aggr: TID 0: send BAR; seq 3742
ath1: ath_tx_aggr_comp_aggr: TID 0: send BAR; seq 3784
ath1: stuck beacon; resetting (bmiss count 4)
ath1: ath_tx_tid_drain: node 0xc0927000: tid 0: txq_depth=2, txq_aggr_depth=2, sched=0, paused=0, hwq_depth=2, incomp=0, baw_head=103, baw_tail=38 txa_start=3396, ni_txseqs=3861
ath1: ath_tx_tid_drain: wasn't added: seqno 3459
ath1: ath_tx_tid_drain: wasn't added: seqno 3460
.
.
ath1: ath_tx_tid_drain: wasn't added: seqno 3857
ath1: ath_tx_tid_drain: wasn't added: seqno 3858
ath1: ath_tx_tid_drain: wasn't added: seqno 3859
ath1: ath_tx_tid_drain: wasn't added: seqno 3860
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: ath_tx_default_comp: dobaw should've been cleared!
ath1: device timeout

How-To-Repeat: Just general hostap use. The question is how/why the node flush occured.
Comment 1 Adrian Chadd freebsd_committer 2011-11-18 03:56:39 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-wireless

Punt
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:48:06 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.