netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
To: Michael Buesch <mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Stefano Brivio <st3-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>,
	John Linville <linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>,
	dsd-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org,
	Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>,
	Bcm43xx-dev-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org
Subject: Re: [PATCH] softmac: remove netif_tx_disable when scanning
Date: Sun, 26 Nov 2006 07:05:48 -0600	[thread overview]
Message-ID: <4569912C.1000506@lwfinger.net> (raw)
In-Reply-To: <200611261312.20442.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>

Michael Buesch wrote:
> On Sunday 26 November 2006 11:03, Johannes Berg wrote:
>> On Sat, 2006-11-25 at 23:05 -0500, Daniel Drake wrote:
>>
>>> Surely disabling the queue actually makes sense, in order to avoid 
>>> frames designated for the "current session" being transmitted on 
>>> different channels during scanning?
>> The problem is that queue disabling isn't refcounted so that a scan that
>> collides with bcm43xx having disabled the queue for calibration might
>> re-enable the queue while bcm43xx is still calibrating.
>>
>> Clearly, this doesn't fully fix the problem because softmac will try to
>> transmit frames during the calibration. Hence, a proper fix would be to
>> not remove the calls to netif_tx_disable but make them go through
>> softmac (ieee80211_tx_disable) to make sure that softmac doesn't try to
>> scan while the queues are disabled, which would fix the aforementioned
>> problem of softmac enabling the queue while the driver needs it disabled
>> for free.
> 
> Yeah, but I don't think it's worth fixing. ;)
> Simply removing this tx_disable in softmac fixes a _big_ bug
> and that must be applied. The bug of being able to scan while
> calibrating is very minor and not worth to fix. Fixing this
> will likely introduce other bugs. It's simply not worth it
> anymore.

I actually found one of these while testing WX locking as suggested by Dan Williams. His method has 
two scripts running at the same time with one of them doing an 'iwlist ethX scan' and the other 
executing an 'iwconfig ethX' as fast as possible. Running this test for 36 hours failed to indicate 
any locking errors, but running it without the patch under discussion led to a number of the 
following errors:

kernel: bcm43xx: ASSERTION FAILED (!ring->suspended) at: 
drivers/net/wireless/bcm43xx/bcm43xx_dma.c:71:request_slot()

This error _NEVER_ happened when softmac was not allowed to disable TX.

Larry

  parent reply	other threads:[~2006-11-26 13:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-26  0:16 [PATCH] softmac: remove netif_tx_disable when scanning Larry Finger
2006-11-26  4:05 ` Daniel Drake
2006-11-26 10:03   ` Johannes Berg
2006-11-26 12:12     ` Michael Buesch
     [not found]       ` <200611261312.20442.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
2006-11-26 13:05         ` Larry Finger [this message]
     [not found]           ` <4569912C.1000506-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
2006-11-26 13:06             ` Michael Buesch
     [not found]     ` <1164535408.21459.3.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2006-11-26 16:37       ` Daniel Drake
2006-11-26 16:51         ` Johannes Berg
     [not found]           ` <1164559882.22909.5.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2006-11-26 18:25             ` Daniel Drake
2006-11-26 18:40               ` Johannes Berg
     [not found]                 ` <1164566436.22909.26.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2006-11-26 19:03                   ` Larry Finger
2006-11-27  4:13                   ` Daniel Drake
2006-11-27 15:49         ` Michael Buesch
     [not found]   ` <45691273.9090803-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2006-11-26 10:07     ` Johannes Berg
2006-11-26 12:25   ` Michael Buesch

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=4569912C.1000506@lwfinger.net \
    --to=larry.finger-tq5ms3gmjblk1umjsbkqmq@public.gmane.org \
    --cc=Bcm43xx-dev-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org \
    --cc=dsd-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org \
    --cc=johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org \
    --cc=linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org \
    --cc=mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org \
    --cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=st3-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).