Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29904 - [linux] 3.4.0 brcmsmac crashes and stops working

Attached to Project: Arch Linux
Opened by Franco Zeoli (fzeoli) - Wednesday, 16 May 2012, 01:22 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 05 November 2012, 15:01 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
wireless interface not able to list networks and I get this a ridiculous amount of times in messages.log:

May 15 21:20:46 localhost kernel: [ 1223.094429] WARNING: at drivers/net/wireless/brcm80211/brcmsmac/main.c:2681 brcms_c_suspend_mac_and_wait+0x25e/0x2c0 [brcmsmac]()
May 15 21:20:46 localhost kernel: [ 1223.094435] Hardware name: Inspiron N4010
May 15 21:20:46 localhost kernel: [ 1223.094438] Modules linked in: brcmsmac(-) uas ums_realtek usb_storage fuse coretemp xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ip_tables x_tables uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media usbhid hid arc4 snd_hda_codec_hdmi joydev snd_hda_codec_realtek snd_hda_intel snd_hda_codec cordic crc8 snd_pcm brcmutil snd_page_alloc ehci_hcd usbcore mac80211 cfg80211 snd_hwdep snd_timer snd soundcore dell_laptop atl1c mei(C) rfkill iTCO_wdt iTCO_vendor_support dell_wmi usb_common bcma serio_raw psmouse intel_ips dcdbas fan pcspkr i2c_i801 thermal battery ac evdev sparse_keymap wmi acpi_cpufreq mperf processor ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod ahci libahci libata scsi_mod i915 video button i2c_algo_bit intel_agp intel_gtt drm_kms_helper drm agpgart i2c_core [last unloaded: brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094569] Pid: 7324, comm: rmmod Tainted: G WC 3.3.4-1-pae #1
May 15 21:20:46 localhost kernel: [ 1223.094574] Call Trace:
May 15 21:20:46 localhost kernel: [ 1223.094586] [<c04a718e>] ? printk+0x1d/0x1f
May 15 21:20:46 localhost kernel: [ 1223.094596] [<c0135962>] warn_slowpath_common+0x72/0xa0
May 15 21:20:46 localhost kernel: [ 1223.094612] [<f8a4550e>] ? brcms_c_suspend_mac_and_wait+0x25e/0x2c0 [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094626] [<f8a4550e>] ? brcms_c_suspend_mac_and_wait+0x25e/0x2c0 [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094634] [<c01359b2>] warn_slowpath_null+0x22/0x30
May 15 21:20:46 localhost kernel: [ 1223.094648] [<f8a4550e>] brcms_c_suspend_mac_and_wait+0x25e/0x2c0 [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094666] [<f8a4744b>] brcms_c_down+0x33b/0x350 [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094678] [<f8a3f0ad>] brcms_down+0x1d/0x60 [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094691] [<f8a3f14d>] brcms_ops_stop+0x5d/0xa0 [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094715] [<f97c0af4>] ieee80211_stop_device+0x44/0x110 [mac80211]
May 15 21:20:46 localhost kernel: [ 1223.094736] [<f97af9f0>] ieee80211_do_stop+0x250/0x5f0 [mac80211]
May 15 21:20:46 localhost kernel: [ 1223.094744] [<c04ae34e>] ? _raw_spin_unlock_bh+0x1e/0x20
May 15 21:20:46 localhost kernel: [ 1223.094755] [<c03ed62f>] ? dev_deactivate_many+0x19f/0x1e0
May 15 21:20:46 localhost kernel: [ 1223.094775] [<f97afda7>] ieee80211_stop+0x17/0x20 [mac80211]
May 15 21:20:46 localhost kernel: [ 1223.094783] [<c03d2169>] __dev_close_many+0x69/0xb0
May 15 21:20:46 localhost kernel: [ 1223.094790] [<c03d225e>] dev_close_many+0x6e/0xc0
May 15 21:20:46 localhost kernel: [ 1223.094796] [<c03d2359>] rollback_registered_many+0xa9/0x1d0
May 15 21:20:46 localhost kernel: [ 1223.094803] [<c03d2495>] unregister_netdevice_many+0x15/0x60
May 15 21:20:46 localhost kernel: [ 1223.094823] [<f97af48f>] ieee80211_remove_interfaces+0x9f/0xe0 [mac80211]
May 15 21:20:46 localhost kernel: [ 1223.094839] [<f979b11b>] ieee80211_unregister_hw+0x4b/0x110 [mac80211]
May 15 21:20:46 localhost kernel: [ 1223.094851] [<f8a3e179>] brcms_remove+0x49/0x70 [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094861] [<f95940d9>] bcma_device_remove+0x19/0x20 [bcma]
May 15 21:20:46 localhost kernel: [ 1223.094870] [<c038c2bd>] __device_release_driver+0x5d/0xb0
May 15 21:20:46 localhost kernel: [ 1223.094877] [<c038c8ef>] driver_detach+0x8f/0xa0
May 15 21:20:46 localhost kernel: [ 1223.094885] [<c038c192>] bus_remove_driver+0x62/0xa0
May 15 21:20:46 localhost kernel: [ 1223.094892] [<c038cde9>] driver_unregister+0x49/0x80
May 15 21:20:46 localhost kernel: [ 1223.094901] [<f95941f0>] bcma_driver_unregister+0x10/0x20 [bcma]
May 15 21:20:46 localhost kernel: [ 1223.094913] [<f8a7d73a>] brcms_module_exit+0xd/0x2b [brcmsmac]
May 15 21:20:46 localhost kernel: [ 1223.094921] [<c018f39f>] sys_delete_module+0x11f/0x280
May 15 21:20:46 localhost kernel: [ 1223.094930] [<c022a864>] ? filp_close+0x54/0x80
May 15 21:20:46 localhost kernel: [ 1223.094936] [<c022a902>] ? sys_close+0x72/0xc0
May 15 21:20:46 localhost kernel: [ 1223.094943] [<c04af21f>] sysenter_do_call+0x12/0x28
May 15 21:20:46 localhost kernel: [ 1223.094949] ---[ end trace 3bc92c3ba4251fa8 ]---

Sometimes suspending and resuming makes it work.



Additional info:
03:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)

Linux paranoia 3.3.6-1-pae #1 SMP PREEMPT Mon May 14 21:38:14 EDT 2012 i686 GNU/Linux


Steps to reproduce:
Just trying to list networks makes it fail.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 05 November 2012, 15:01 GMT
Reason for closing:  Fixed
Comment by Tobias Powalowski (tpowa) - Wednesday, 23 May 2012, 13:28 GMT
Status on 3.4.x?
Comment by Franco Zeoli (fzeoli) - Saturday, 26 May 2012, 01:02 GMT
Same. I just realized there are actually two different traces in the log. They get logged WAY too many times, I just skimmed through and didn't notice.
This is the missing one:


May 25 21:50:24 localhost kernel: [ 121.920659] ------------[ cut here ]------------
May 25 21:50:24 localhost kernel: [ 121.920676] WARNING: at drivers/net/wireless/brcm80211/brcmsmac/main.c:2705 brcms_c_enable_mac+0x168/0x1c0 [brcmsmac]()
May 25 21:50:24 localhost kernel: [ 121.920687] Hardware name: Inspiron N4010
May 25 21:50:24 localhost kernel: [ 121.920693] Modules linked in: fuse xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ip_tables x_tables uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media usbhid hid joydev snd_hda_codec_hdmi arc4 snd_hda_codec_realtek ehci_hcd brcmsmac snd_hda_intel cordic crc8 snd_hda_codec brcmutil mac80211 snd_pcm dell_wmi sparse_keymap snd_page_alloc snd_hwdep snd_timer snd soundcore cfg80211 serio_raw usbcore dell_laptop rfkill usb_common atl1c psmouse wmi iTCO_wdt iTCO_vendor_support bcma pcspkr intel_ips mei(C) i2c_i801 dcdbas microcode coretemp evdev fan ac battery thermal crc32c_intel acpi_cpufreq mperf processor ext4 crc16 jbd2 mbcache sd_mod sr_mod cdrom ahci libahci libata scsi_mod i915 video button i2c_algo_bit intel_agp intel_gtt drm_kms_helper drm agpgart i2c_core
May 25 21:50:24 localhost kernel: [ 121.920969] Pid: 84, comm: kworker/u:4 Tainted: G WC 3.4.0-1-pae #1
May 25 21:50:24 localhost kernel: [ 121.920978] Call Trace:
May 25 21:50:24 localhost kernel: [ 121.920989] [<c04aee3c>] ? printk+0x1d/0x1f
May 25 21:50:24 localhost kernel: [ 121.921002] [<c0136b62>] warn_slowpath_common+0x72/0xa0
May 25 21:50:24 localhost kernel: [ 121.921022] [<f9eadc28>] ? brcms_c_enable_mac+0x168/0x1c0 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.921043] [<f9eadc28>] ? brcms_c_enable_mac+0x168/0x1c0 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.921056] [<c0136bb2>] warn_slowpath_null+0x22/0x30
May 25 21:50:24 localhost kernel: [ 121.921077] [<f9eadc28>] brcms_c_enable_mac+0x168/0x1c0 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.921099] [<f9eb083b>] brcms_c_set_channel+0xeb/0x100 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.921118] [<f9ea7a92>] brcms_ops_config+0xd2/0x180 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.921130] [<c04b45ef>] ? __mutex_lock_slowpath+0x1ff/0x2e0
May 25 21:50:24 localhost kernel: [ 121.921151] [<f9d2e36d>] ieee80211_hw_config+0xad/0x220 [mac80211]
May 25 21:50:24 localhost kernel: [ 121.921175] [<f9d34af7>] ieee80211_scan_work+0x1c7/0x570 [mac80211]
May 25 21:50:24 localhost kernel: [ 121.921188] [<c04b535e>] ? __schedule+0x38e/0x7e0
May 25 21:50:24 localhost kernel: [ 121.921201] [<c014fbc8>] process_one_work+0x108/0x3b0
May 25 21:50:24 localhost kernel: [ 121.921213] [<c0165954>] ? wake_up_process+0x14/0x20
May 25 21:50:24 localhost kernel: [ 121.921224] [<c014d9a0>] ? need_to_create_worker+0x10/0x30
May 25 21:50:24 localhost kernel: [ 121.921247] [<f9d34930>] ? ieee80211_scan_rx+0x1b0/0x1b0 [mac80211]
May 25 21:50:24 localhost kernel: [ 121.921260] [<c0150309>] worker_thread+0xf9/0x280
May 25 21:50:24 localhost kernel: [ 121.921271] [<c015e26e>] ? complete+0x4e/0x60
May 25 21:50:24 localhost kernel: [ 121.921283] [<c0150210>] ? manage_workers.isra.24+0x1c0/0x1c0
May 25 21:50:24 localhost kernel: [ 121.921294] [<c0154c32>] kthread+0x72/0x80
May 25 21:50:24 localhost kernel: [ 121.921306] [<c0154bc0>] ? kthread_freezable_should_stop+0x50/0x50
May 25 21:50:24 localhost kernel: [ 121.921318] [<c04b78fe>] kernel_thread_helper+0x6/0x10
May 25 21:50:24 localhost kernel: [ 121.921326] ---[ end trace 8061cc24bd381b8a ]---
May 25 21:50:24 localhost kernel: [ 121.921339] ------------[ cut here ]------------




And apparently I submitted the trace generated by trying to rmmod (it's the same thing though, relevant part suspend_mac_and_wait), this is the one I actually get when trying to scan for networks:


May 25 21:50:24 localhost kernel: [ 121.785877] WARNING: at drivers/net/wireless/brcm80211/brcmsmac/main.c:2646 brcms_c_suspend_mac_and_wait+0x29a/0x2c0 [brcmsmac]()
May 25 21:50:24 localhost kernel: [ 121.785883] Hardware name: Inspiron N4010
May 25 21:50:24 localhost kernel: [ 121.785886] Modules linked in: fuse xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ip_tables x_tables uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media usbhid hid joydev snd_hda_codec_hdmi arc4 snd_hda_codec_realtek ehci_hcd brcmsmac snd_hda_intel cordic crc8 snd_hda_codec brcmutil mac80211 snd_pcm dell_wmi sparse_keymap snd_page_alloc snd_hwdep snd_timer snd soundcore cfg80211 serio_raw usbcore dell_laptop rfkill usb_common atl1c psmouse wmi iTCO_wdt iTCO_vendor_support bcma pcspkr intel_ips mei(C) i2c_i801 dcdbas microcode coretemp evdev fan ac battery thermal crc32c_intel acpi_cpufreq mperf processor ext4 crc16 jbd2 mbcache sd_mod sr_mod cdrom ahci libahci libata scsi_mod i915 video button i2c_algo_bit intel_agp intel_gtt drm_kms_helper drm agpgart i2c_core
May 25 21:50:24 localhost kernel: [ 121.786000] Pid: 84, comm: kworker/u:4 Tainted: G WC 3.4.0-1-pae #1
May 25 21:50:24 localhost kernel: [ 121.786004] Call Trace:
May 25 21:50:24 localhost kernel: [ 121.786014] [<c04aee3c>] ? printk+0x1d/0x1f
May 25 21:50:24 localhost kernel: [ 121.786023] [<c0136b62>] warn_slowpath_common+0x72/0xa0
May 25 21:50:24 localhost kernel: [ 121.786040] [<f9eae57a>] ? brcms_c_suspend_mac_and_wait+0x29a/0x2c0 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.786055] [<f9eae57a>] ? brcms_c_suspend_mac_and_wait+0x29a/0x2c0 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.786063] [<c0136bb2>] warn_slowpath_null+0x22/0x30
May 25 21:50:24 localhost kernel: [ 121.786078] [<f9eae57a>] brcms_c_suspend_mac_and_wait+0x29a/0x2c0 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.786093] [<f9eaae6e>] ? brcms_c_valid_chanspec_db+0xde/0xf0 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.786110] [<f9eb082a>] brcms_c_set_channel+0xda/0x100 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.786123] [<f9ea7a92>] brcms_ops_config+0xd2/0x180 [brcmsmac]
May 25 21:50:24 localhost kernel: [ 121.786131] [<c04b45ef>] ? __mutex_lock_slowpath+0x1ff/0x2e0
May 25 21:50:24 localhost kernel: [ 121.786147] [<f9d2e36d>] ieee80211_hw_config+0xad/0x220 [mac80211]
May 25 21:50:24 localhost kernel: [ 121.786165] [<f9d34af7>] ieee80211_scan_work+0x1c7/0x570 [mac80211]
May 25 21:50:24 localhost kernel: [ 121.786172] [<c04b535e>] ? __schedule+0x38e/0x7e0
May 25 21:50:24 localhost kernel: [ 121.786181] [<c014fbc8>] process_one_work+0x108/0x3b0
May 25 21:50:24 localhost kernel: [ 121.786187] [<c0165954>] ? wake_up_process+0x14/0x20
May 25 21:50:24 localhost kernel: [ 121.786194] [<c014d9a0>] ? need_to_create_worker+0x10/0x30
May 25 21:50:24 localhost kernel: [ 121.786211] [<f9d34930>] ? ieee80211_scan_rx+0x1b0/0x1b0 [mac80211]
May 25 21:50:24 localhost kernel: [ 121.786219] [<c0150309>] worker_thread+0xf9/0x280
May 25 21:50:24 localhost kernel: [ 121.786225] [<c015e26e>] ? complete+0x4e/0x60
May 25 21:50:24 localhost kernel: [ 121.786232] [<c0150210>] ? manage_workers.isra.24+0x1c0/0x1c0
May 25 21:50:24 localhost kernel: [ 121.786238] [<c0154c32>] kthread+0x72/0x80
May 25 21:50:24 localhost kernel: [ 121.786245] [<c0154bc0>] ? kthread_freezable_should_stop+0x50/0x50
May 25 21:50:24 localhost kernel: [ 121.786251] [<c04b78fe>] kernel_thread_helper+0x6/0x10
May 25 21:50:24 localhost kernel: [ 121.786256] ---[ end trace 8061cc24bd381b88 ]---
May 25 21:50:24 localhost kernel: [ 121.918428] ------------[ cut here ]------------
Comment by Tobias Powalowski (tpowa) - Wednesday, 08 August 2012, 10:58 GMT
Status on 3.5?
Comment by Franco Zeoli (fzeoli) - Wednesday, 05 September 2012, 18:08 GMT
Sorry it took me long. I didn't want to break something by updating, which is exactly what happened.

The crash is apparently gone on 3.5.3-1, now it's just the classic "link is not ready" and struggling way more than before to get a connection up and running.

Loading...