From: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, Arend van Spriel <aspriel@gmail.com>
Subject: Re: mac80211 keeps trying to start ampdu session??
Date: Tue, 23 Oct 2018 15:22:57 +0300 [thread overview]
Message-ID: <20181023151312.65df98c4@manjaro> (raw)
In-Reply-To: <0ead002730ad2902d87c77cc3abeb9c21c4a0930.camel@sipsolutions.net>
On Tue, 23 Oct 2018 10:18:54 +0200
Johannes Berg <johannes@sipsolutions.net> wrote:
> On Tue, 2018-10-23 at 10:44 +0300, Ali MJ Al-Nasrawy wrote:
> > 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??
>
> This depends on the rate control algorithm, it triggers this.
In this case, it is minstrel_ht.
>
> 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!
> Perhaps just remove the message?
OK, I report this just in case of it being unintended behavior with
probably a negative performance impact.
next prev parent reply other threads:[~2018-10-23 12:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-23 7:44 mac80211 keeps trying to start ampdu session?? Ali MJ Al-Nasrawy
2018-10-23 8:18 ` Johannes Berg
2018-10-23 12:22 ` Ali MJ Al-Nasrawy [this message]
2018-10-23 20:29 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181023151312.65df98c4@manjaro \
--to=alimjalnasrawy@gmail.com \
--cc=aspriel@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.