linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Cc: linux-wireless@vger.kernel.org, 'George0505' <george0505@realtek.com>
Subject: Re: rtl8192cu goes silent/dead after some time...
Date: Wed, 27 Feb 2013 13:05:03 -0600	[thread overview]
Message-ID: <512E58DF.4050001@lwfinger.net> (raw)
In-Reply-To: <20130225185141.14193yyf1vunany8@www.dalek.fi>

On 02/25/2013 10:51 AM, Jussi Kivilinna wrote:
> Hello,
>
> I've been trying to get rtl8192cu work on ARM board I got recently. While I
> don't get crashes anymore and I can connect to AP, open connections, do short
> transfers, eventually rtl8192cu goes silent (bulk-IN urbs stop completing, no
> packets received). Bringing interface down and back up does not help, I need to
> rmmod/modprobe to wake the device.
>
> I noticed that, when doing large transfer (with iperf), "signal avg" reading
> from iw started to behave interestingly...
>
> Idle (0.1 sec interval):
>          signal avg:     -75 dBm
>          signal avg:     -68 dBm
>          signal avg:     -72 dBm
>          signal avg:     -73 dBm
>          signal avg:     -74 dBm
>          signal avg:     -75 dBm
>          signal avg:     -75 dBm
>          signal avg:     -75 dBm
>          signal avg:     -75 dBm
>          signal avg:     -74 dBm
>
> While doing TCP transfer, rtl8192cu at RX side (0.1sec intervals):
>          signal avg:     -88 dBm
>          signal avg:     -13 dBm
>          signal avg:     -38 dBm
>          signal avg:     100 dBm
>          signal avg:     -11 dBm
>          signal avg:     122 dBm
>          signal avg:     51 dBm
>          signal avg:     77 dBm
>          signal avg:     -14 dBm
>          signal avg:     -18 dBm
>          signal avg:     78 dBm
>          signal avg:     46 dBm
>          signal avg:     -65 dBm
>          signal avg:     -103 dBm
>          signal avg:     -90 dBm
>          signal avg:     88 dBm
>          signal avg:     -43 dBm
>          signal avg:     -12 dBm
>
> This keeps on until rtl8129cu goes silent.
>
> I have attached kernel log with rtl8192cu loaded with debug=4. Connection stops
> working around timestamp 1377. (Log shows some BUGs which do appear with
> debugging on but not without.)
>
> Apparently triggering this hang becomes much harder to trigger when debug=4 is
> enabled... probably because debug logging increasing CPU usage, transfer rate
> drops to 1Mbit/s and above symptom mostly disappears. Without debug=4, RX runs
> at ~28Mbit/s.

Thanks for the log and the signal average data. All of the BUGs come from a 
single debug statement in the source. I will delete that trace call.

Realtek has apparently stopped development on the mac80211-based driver. The 
latest version is dated 2011.02.10. The latest driver with Realtek's softmac 
stack is 2012.06.22. As the two drivers are totally different, porting the fixes 
from one to the other are quite difficult.

My plan is to try to improve rtl8192cu; however, if that does not work, I will 
pull it in favor of the version with Realtek's stack. It will, of course, need 
to be placed in staging. The downside is that a number of distros do not install 
drivers from staging, and all the mac80211 features will be lost. That is the 
worst case outcome.

Larry


  reply	other threads:[~2013-02-27 19:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 16:51 rtl8192cu goes silent/dead after some time Jussi Kivilinna
2013-02-27 19:05 ` Larry Finger [this message]
2013-03-10 12:29   ` Jussi Kivilinna
2013-03-11 19:17     ` rtl8192cu gets confused when scan is aborted by bringing interface down (Re: rtl8192cu goes silent/dead after some time...) Jussi Kivilinna
2013-03-11 20:25       ` Larry Finger
2013-03-11 21:06         ` Jussi Kivilinna
2013-03-11 21:10           ` Larry Finger
2013-03-11 21:31           ` Larry Finger
2013-03-12  9:10             ` Jussi Kivilinna
2013-03-12 16:51               ` Larry Finger
2013-03-12 19:49                 ` Jussi Kivilinna

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=512E58DF.4050001@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=george0505@realtek.com \
    --cc=jussi.kivilinna@mbnet.fi \
    --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 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).