mac80211 keeps trying to start ampdu session??
Hi,
I am trying to debug brcmsmac wireless driver for spamming the log with the message:
[...] START: tid 2 is not agg'able
for it does not support AMPDU aggreggation for TID 2.
And after quick tracing, I found that mac80211 keeps trying to start AMPDU session for the _same TID and STA_ despite that the driver returns non-zero code via its ampdu_action callback and that non-zero return codes are recognized as the "HW unavailable" for such session (agg-tx.c:ieee80211_tx_ba_session_handle_start)
So, Is that an expected behaviour from mac80211 or not??
Regards,
Ali MJ
Quoted 7 lines · Ali MJ Al-Nasrawy
Hi,
I am trying to debug brcmsmac wireless driver for spamming the log with the message:
[...] START: tid 2 is not agg'able
for it does not support AMPDU aggreggation for TID 2.
Quoted 7 lines
And after quick tracing, I found that mac80211 keeps trying to start AMPDU session for the
_sameTID andSTA_despite that the driver returns non-zero code via itsampdu_actioncallback and that non-zero return codes are recognized as the "HW unavailable" for such session (agg-tx.c:ieee80211_tx_ba_session_handle_start)So, Is that an expected behaviour from mac80211 or not??
This depends on the rate control algorithm, it triggers this.
I think - perhaps depending on the return value - mac80211 *does* give up eventually, but not really sure.
Perhaps just remove the message?
johannes
Quoted 14 lines · On Tue, 23 Oct 2018 10:18:54 +0200 Johannes Berg <[email protected]>…
Quoted 13 lines · Ali MJ Al-Nasrawy
Hi,
I am trying to debug brcmsmac wireless driver for spamming the log with the message:
[...] START: tid 2 is not agg'able
for it does not support AMPDU aggreggation for TID 2.And after quick tracing, I found that mac80211 keeps trying to start AMPDU session for the
_sameTID andSTA_despite that the driver returns non-zero code via itsampdu_actioncallback and that non-zero return codes are recognized as the "HW unavailable" for such session (agg-tx.c:ieee80211_tx_ba_session_handle_start)
Quoted 3 lines
Quoted 1 line
So, Is that an expected behaviour from mac80211 or not??
This depends on the rate control algorithm, it triggers this.
In this case, it is minstrel_ht.
Quoted 3 lines
I think - perhaps depending on the return value - mac80211 *does* give up eventually, but not really sure.
The return value is handled only in agg-tx.c:ieee80211_tx_ba_session_handle_start and it doesn't pass it down or recognize difference between non-zero return values.
And I don't think that it gives up retrying: I already have 800MB of compressed logs for the last four days only full of this message and additionally I ran a simple test for the last hour and found that it tries to start ampdu session for every frame to be sent with that TID!
Quoted 1 line
Perhaps just remove the message?
OK, I report this just in case of it being unintended behavior with probably a negative performance impact.
Quoted 11 lines · Ali MJ Al-Nasrawy
Quoted 1 line
This depends on the rate control algorithm, it triggers this.
In this case, it is
minstrel_ht.Quoted 3 lines
I think - perhaps depending on the return value - mac80211 *does* give up eventually, but not really sure.
The return value is handled only in agg-tx.c:ieee80211_tx_ba_session_handle_start and it doesn't pass it down or recognize difference between non-zero return values.
Indeed.
Quoted 4 lines
And I don't think that it gives up retrying: I already have 800MB of compressed logs for the last four days only full of this message and additionally I ran a simple test for the last hour and found that it tries to start ampdu session for every frame to be sent with that TID!
Indeed, but that does seem excessive. Perhaps minstrel_ht should learn to back off, Felix what do you think? In this case the driver basically says "I don't want to do agg on this TID" and that repeats for every packet.
Quoted 4 lines
Quoted 1 line
Perhaps just remove the message?
OK, I report this just in case of it being unintended behavior with probably a negative performance impact.
It might actually, yeah ...
johannes