Bug 698838 - Ralink RT2870 driver crashes system
Summary: Ralink RT2870 driver crashes system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stanislaw Gruszka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-21 22:50 UTC by Marcin
Modified: 2011-10-11 14:35 UTC (History)
8 users (show)

Fixed In Version: 2.6.40.6-0.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-11 14:35:01 UTC
Type: ---


Attachments (Terms of Use)
Screen cap of crash (18.22 KB, image/png)
2011-05-05 22:26 UTC, Shawn
no flags Details
compat-wireless-next.patch (35.78 KB, text/plain)
2011-08-16 16:01 UTC, Stanislaw Gruszka
no flags Details

Description Marcin 2011-04-21 22:50:10 UTC
Description of problem:

Im having random kernel crashes, seem related to my wireless card and kernel version in fedora 15 (i also had that problem in ubuntu 11.04 beta),
in last 2 days i had 3 crashes ending up with a screen containing a stacktrace,
it contained reference to RT2870 - which is my network adapter, thats why i think its my adapters driver fault.

i cant find any log info that would help but next time it happens ill try to make a picture of screen with camera.

Version-Release number of selected component (if applicable):


How reproducible:

random

Steps to Reproduce:
1. use desktop
2.
3.
  
Actual results:

desktop crashes completly with stacktrace

Expected results:

system is stable

Additional info:

my wireless card USB dongle version from lsusb:

Bus 001 Device 005: ID 7392:7711 Edimax Technology Co., Ltd EW-7711UTn nLite Wireless Adapter [Ralink RT2870]

Comment 1 Shawn 2011-05-05 22:24:55 UTC
I am having the same problem so I will piggy back on this ticket. I have used this device in several machines and the issue follows to where ever I use it. This issue did not exist in F14 and I think showed up in F15. It occurs at least several times a day so I have now moved the functionality into a VM so as not to hose my main OS with the constant hard restarts.

I had cores enabled and it hasn't left one. I have included a screen cap from the VM the last time it cratered. If you need me to load the debug packages let me know which ones. 

Here are the list of packages I am currently using

2.6.39-0.rc5.git5.0.fc16.x86_64

This issue existed with at least some versions of the 2.6.38 kernel as well. Sorry I don't know exactly where it started.


iw-0.9.22-1.fc16.x86_64
wpa_supplicant-0.7.3-8.fc16.x86_64

lsmod:


lsmod
Module                  Size  Used by
ip6t_REJECT            12976  2 
nf_conntrack_ipv6      14329  3 
nf_defrag_ipv6         14195  1 nf_conntrack_ipv6
ip6table_filter        12815  1 
ip6_tables             22998  1 ip6table_filter
ipt_MASQUERADE         12880  1 
iptable_nat            13383  1 
nf_nat                 25756  2 ipt_MASQUERADE,iptable_nat
arc4                   12529  2 
rt2800usb              18279  0 
rt2800lib              44126  1 rt2800usb
crc_ccitt              12573  1 rt2800lib
rt2x00usb              19625  1 rt2800usb
rt2x00lib              49129  3 rt2800usb,rt2800lib,rt2x00usb
mac80211              264704  3 rt2800lib,rt2x00usb,rt2x00lib
cfg80211              149668  2 rt2x00lib,mac80211
rfkill                 21604  1 cfg80211
i2c_piix4              17790  0 
joydev                 17567  0 
virtio_net             19163  0 
i2c_core               33947  1 i2c_piix4
virtio_balloon         13233  0 
ipv6                  309521  13 ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
virtio_blk             13258  3 



Here is the output for the device from lsusb -v


Bus 001 Device 004: ID 148f:2770 Ralink Technology, Corp. RT2770 Wireless Adapter
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x148f Ralink Technology, Corp.
  idProduct          0x2770 RT2770 Wireless Adapter
  bcdDevice            1.01
  iManufacturer           1 Ralink
  iProduct                2 802.11 n WLAN
  iSerial                 3 1.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           53
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              450mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           5
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 1.0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Steps to reproduce:

start wpa_supplicant
ifup wlan0  (not using NetworkManger)
route traffic over the wlan interface
The system then works fofine for any where from 5 mins to several hours
wait for a random crash.


If there is any other information I can provide please let me know.

Comment 2 Shawn 2011-05-05 22:26:01 UTC
Created attachment 497236 [details]
Screen cap of crash

Comment 3 Marcin 2011-05-06 08:20:20 UTC
my lspci -v output

Bus 001 Device 003: ID 7392:7711 Edimax Technology Co., Ltd EW-7711UTn nLite Wireless Adapter [Ralink RT2870]
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x7392 Edimax Technology Co., Ltd
  idProduct          0x7711 EW-7711UTn nLite Wireless Adapter [Ralink RT2870]
  bcdDevice            1.01
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           67
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              450mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           7
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

Comment 4 Stanislaw Gruszka 2011-05-10 12:52:01 UTC
Perhaps you could use netconsole or kdump to capture a crash logs.

Comment 5 Stanislaw Gruszka 2011-07-12 11:05:20 UTC
Information from comment 2 is a bit incomplete (lack of a few lines from the beginning of the oops, which show quite important informations).

Except providing full oops logs, could you also check drivers from:
http://people.redhat.com/sgruszka/compact_wireless.html
and see if crash happens there.

Comment 6 Shawn 2011-07-13 15:43:32 UTC
I have had to put my server into storage as part of a move since  I added to this ticket and won't have access to it again for at least another month. Perhaps one of the other people will be able to provide the required info.

Comment 7 Smlacc1 2011-08-09 02:18:23 UTC
I can confirm the same issue on rhel6.  I've been using the rt2870sta driver i downloaded and compiled from the ralink website, and i get crashes with a kernel oops (usually on login approx 25% of the time, but also occasionally after login).  i'd like to try the compat-wireless driver you have for rhel6, but it tells me "drivers for rhel6 currently broken" on that website.  I tried installing it anyway, and i get loads of errors like "rt2800lib: unknown symbol rt2x00lib txdone noinfo" in the dmesg when it tries to load the driver.  Then the interface does not show up.

Let me know if i can provide any other info.

Comment 8 Stanislaw Gruszka 2011-08-16 15:58:30 UTC
I was able to reproduce problem locally and posted a few patch which should fix this bug. Currently patches are applied on wireless-testing tree:
> http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commit;h=674db1344443204b6ce3293f2df8fd1b7665deea
> http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commit;h=df71c9cfceea801e7e26e2c74241758ef9c042e5
http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commit;h=4b1bfb7d2d125af6653d6c2305356b2677f79dc6

I applied them on fedora compat-wireless-next packages on my website as well

Comment 9 Stanislaw Gruszka 2011-08-16 16:01:52 UTC
Created attachment 518523 [details]
compat-wireless-next.patch

RHEL6 compat-wieless packages are still broken. I tried to fix today, but they still not work. You can try use this patch on current (i.e. 2011-08-08) compat-wireless tarball and build it by yourself on RHEL6.

Comment 10 Josh Boyer 2011-09-27 14:19:22 UTC
Stanislaw, the commits you referenced in comment #8 seem to be included in 3.1-rc5 now.  Should those be backported to 3.0?

Comment 11 Stanislaw Gruszka 2011-09-27 14:34:01 UTC
Backports ale already done, gregkh queued them to 3.0.5, unfortunately they missed 3.0.4 .

Comment 12 Josh Boyer 2011-09-27 14:42:22 UTC
Excellent.  Let's move this to POST and we'll pick them up whenever Greg decides to release 3.0.5.


Note You need to log in before you can comment on or make changes to this bug.