Bug 26472 - WARNING in rt2870sta: netif_stop_queue() cannot be called before register_netdev()
Summary: WARNING in rt2870sta: netif_stop_queue() cannot be called before register_net...
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Staging (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_staging@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 07:24 UTC by Ozan Caglayan
Modified: 2012-08-14 15:33 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.37
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Ozan Caglayan 2011-01-10 07:24:52 UTC
Hi,

With 2.6.37, I had several different dmesg outputs from people which reports the following WARNING:

Jan  2 15:07:06 pardus2011 kernel: [    6.817331] rt2870sta: module is from the staging directory, the quality is unknown, you have been warned.
Jan  2 15:07:06 pardus2011 kernel: [    6.828864] rtusb init --->
Jan  2 15:07:06 pardus2011 kernel: [    6.829126] === pAd = f6142000, size = 472668 ===
Jan  2 15:07:06 pardus2011 kernel: [    6.829130] <-- RTMPAllocAdapterBlock, Status=0
Jan  2 15:07:06 pardus2011 kernel: [    6.829340] ------------[ cut here ]------------
Jan  2 15:07:06 pardus2011 kernel: [    6.829378] WARNING: at include/linux/netdevice.h:1557 netif_stop_queue.clone.3+0x16/0x2a [rt2870sta]()
Jan  2 15:07:06 pardus2011 kernel: [    6.829383] Hardware name: System Product Name
Jan  2 15:07:06 pardus2011 kernel: [    6.829386] Modules linked in: rt2870sta(C+) parport_pc shpchp snd_page_alloc asus_atk0110 uvcvideo videodev v4l1_compat joydev lp crc_ccitt parport microcode ata_generic pata_acpi ata_piix uvesafb
Jan  2 15:07:06 pardus2011 kernel: [    6.829415] Pid: 385, comm: modprobe Tainted: G         C  2.6.37_rc8 #1
Jan  2 15:07:06 pardus2011 kernel: [    6.829419] Call Trace:
Jan  2 15:07:06 pardus2011 kernel: [    6.829431]  [<c0138f01>] warn_slowpath_common+0x65/0x7a
Jan  2 15:07:06 pardus2011 kernel: [    6.829461]  [<f610ad7d>] ? netif_stop_queue.clone.3+0x16/0x2a [rt2870sta]
Jan  2 15:07:06 pardus2011 kernel: [    6.829467]  [<c0138f25>] warn_slowpath_null+0xf/0x13
Jan  2 15:07:06 pardus2011 kernel: [    6.829496]  [<f610ad7d>] netif_stop_queue.clone.3+0x16/0x2a [rt2870sta]
Jan  2 15:07:06 pardus2011 kernel: [    6.829525]  [<f610b29c>] RtmpPhyNetDevInit+0x65/0x6f [rt2870sta]
Jan  2 15:07:06 pardus2011 kernel: [    6.829550]  [<f61188bc>] rtusb_probe+0x210/0x2b1 [rt2870sta]
Jan  2 15:07:06 pardus2011 kernel: [    6.829559]  [<c039891d>] usb_probe_interface+0xe8/0x14b
Jan  2 15:07:06 pardus2011 kernel: [    6.829567]  [<c03503d8>] driver_probe_device+0x96/0x11a
Jan  2 15:07:06 pardus2011 kernel: [    6.829573]  [<c035049f>] __driver_attach+0x43/0x5f
Jan  2 15:07:06 pardus2011 kernel: [    6.829579]  [<c034f8a6>] bus_for_each_dev+0x3d/0x60
Jan  2 15:07:06 pardus2011 kernel: [    6.829585]  [<c0350167>] driver_attach+0x14/0x16
Jan  2 15:07:06 pardus2011 kernel: [    6.829590]  [<c035045c>] ? __driver_attach+0x0/0x5f
Jan  2 15:07:06 pardus2011 kernel: [    6.829596]  [<c034fe65>] bus_add_driver+0x88/0x1c0
Jan  2 15:07:06 pardus2011 kernel: [    6.829602]  [<c035065d>] driver_register+0x77/0xd6
Jan  2 15:07:06 pardus2011 kernel: [    6.829610]  [<c0180a89>] ? tracepoint_module_notify+0x20/0x24
Jan  2 15:07:06 pardus2011 kernel: [    6.829615]  [<c0397cee>] usb_register_driver+0x66/0xf3
Jan  2 15:07:06 pardus2011 kernel: [    6.829634]  [<f6135021>] init_module+0x21/0x23 [rt2870sta]
Jan  2 15:07:06 pardus2011 kernel: [    6.829641]  [<c0101262>] do_one_initcall+0x71/0x11b
Jan  2 15:07:06 pardus2011 kernel: [    6.829659]  [<f6135000>] ? init_module+0x0/0x23 [rt2870sta]
Jan  2 15:07:06 pardus2011 kernel: [    6.829667]  [<c0161dd1>] sys_init_module+0x12d4/0x145b
Jan  2 15:07:06 pardus2011 kernel: [    6.829677]  [<c0496b19>] syscall_call+0x7/0xb
Jan  2 15:07:06 pardus2011 kernel: [    6.829682] ---[ end trace f762578d34f2a68c ]---
Jan  2 15:07:06 pardus2011 kernel: [    6.829686] netif_stop_queue() cannot be called before register_netdev()
Jan  2 15:07:06 pardus2011 kernel: [    6.833321] usbcore: registered new interface driver rt2870
Comment 1 Ozan Caglayan 2011-01-10 07:30:51 UTC
Pff this is better:

rt2870sta: module is from the staging directory, the quality is unknown, you have been warned.
rtusb init --->
=== pAd = f6142000, size = 472668 ===
<-- RTMPAllocAdapterBlock,Status=0
------------[ cut here ]------------
WARNING: at include/linux/netdevice.h:1557 netif_stop_queue.clone.3+0x16/0x2a [rt2870sta]()
Hardware name: System Product Name
Modules linked in: rt2870sta(C+) parport_pc shpchp snd_page_alloc asus_atk0110 uvcvideo videodev v4l1_compat joydev lp crc_ccitt parport microcode ata_generic pata_acpi ata_piix uvesafb
Pid: 385, comm: modprobe Tainted: G         C  2.6.37_rc8 #1
Call Trace:
 [<c0138f01>] warn_slowpath_common+0x65/0x7a
 [<f610ad7d>] ? netif_stop_queue.clone.3+0x16/0x2a [rt2870sta]
 [<c0138f25>] warn_slowpath_null+0xf/0x13
 [<f610ad7d>] netif_stop_queue.clone.3+0x16/0x2a [rt2870sta]
 [<f610b29c>] RtmpPhyNetDevInit+0x65/0x6f [rt2870sta]
 [<f61188bc>] rtusb_probe+0x210/0x2b1 [rt2870sta]
 [<c039891d>] usb_probe_interface+0xe8/0x14b
 [<c03503d8>] driver_probe_device+0x96/0x11a
 [<c035049f>] __driver_attach+0x43/0x5f
 [<c034f8a6>] bus_for_each_dev+0x3d/0x60
 [<c0350167>] driver_attach+0x14/0x16
 [<c035045c>] ? __driver_attach+0x0/0x5f
 [<c034fe65>] bus_add_driver+0x88/0x1c0
 [<c035065d>] driver_register+0x77/0xd6
 [<c0180a89>] ? tracepoint_module_notify+0x20/0x24 
 [<c0397cee>] usb_register_driver+0x66/0xf3
 [<f6135021>] init_module+0x21/0x23 [rt2870sta]
 [<c0101262>] do_one_initcall+0x71/0x11b
 [<f6135000>] ? init_module+0x0/0x23 [rt2870sta]
 [<c0161dd1>] sys_init_module+0x12d4/0x145b
 [<c0496b19>] syscall_call+0x7/0xb
---[ end trace f762578d34f2a68c ]---
netif_stop_queue() cannot be called before register_netdev()
usbcore: registered new interface driver rt2870

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