2012-01-12 19:32:06

by Francis Moreau

[permalink] [raw]
Subject: brcmsmac broken with 3.2

Hello,

I'm facing a new issue after upgrading from 3.1 to 3.2.

It happens when switching on/off my wireless card (BCM4313 [14e4:4727]).

Here's the oops I'm getting:

[36370.370768] WARNING: at net/mac80211/rx.c:2979
ieee80211_rx+0x91b/0x9e0 [mac80211]()
[36370.370775] Hardware name: Vostro 3500
[36370.370777] Modules linked in: rfcomm bridge stp bnep btusb
bluetooth overlayfs(O) nfsd nfs lockd fscache auth_rpcgss nfs_acl
sunrpc fuse af_packet ipv6 snd_hda_codec_hdmi arc4 snd_hda_codec_idt
brcmsmac mac80211 snd_hda_intel brcmutil snd_hda_codec cfg80211
snd_hwdep snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
snd_seq_device snd_pcm_oss snd_pcm snd_timer snd_mixer_oss snd
dell_laptop r8169 rfkill uvcvideo videodev sr_mod sg iTCO_wdt media
i2c_i801 v4l2_compat_ioctl32 mii dcdbas soundcore mei(C) intel_ips
snd_page_alloc iTCO_vendor_support crc8 cordic i915 drm_kms_helper drm
i2c_algo_bit i2c_core coretemp binfmt_misc cpufreq_ondemand
cpufreq_conservative cpufreq_powersave acpi_cpufreq freq_table mperf
nvram dell_wmi sparse_keymap dm_mod joydev evdev kvm_intel kvm video
battery wmi ata_piix ahci libahci libata sd_mod scsi_mod crc_t10dif
ext4 jbd2 crc16 uhci_hcd ohci_hcd ehci_hcd usbhid hid usbcore
usb_common
[36370.370870] Pid: 0, comm: swapper/0 Tainted: G WC O 3.2.0 #63
[36370.370874] Call Trace:
[36370.370876] <IRQ> [<ffffffff8106809f>] warn_slowpath_common+0x7f/0xc0
[36370.370888] [<ffffffff810680fa>] warn_slowpath_null+0x1a/0x20
[36370.370904] [<ffffffffa04fb2bb>] ieee80211_rx+0x91b/0x9e0 [mac80211]
[36370.370910] [<ffffffff81062ccd>] ? enqueue_task_rt+0x5d/0x70
[36370.370915] [<ffffffff810528aa>] ? enqueue_task+0x6a/0x80
[36370.370925] [<ffffffffa04dedd9>]
ieee80211_tasklet_handler+0xb9/0x160 [mac80211]
[36370.370931] [<ffffffff8106f43d>] tasklet_action+0xcd/0x110
[36370.370935] [<ffffffff8106efda>] __do_softirq+0xaa/0x1e0
[36370.370941] [<ffffffff81467aac>] call_softirq+0x1c/0x30
[36370.370946] [<ffffffff81015255>] do_softirq+0x65/0xa0
[36370.370950] [<ffffffff8106edde>] irq_exit+0x8e/0xc0
[36370.370955] [<ffffffff81468366>] do_IRQ+0x66/0xe0
[36370.370960] [<ffffffff8145dbae>] common_interrupt+0x6e/0x6e
[36370.370963] <EOI> [<ffffffff8109be0e>] ?
tick_nohz_stop_sched_tick+0x28e/0x3d0
[36370.370974] [<ffffffff81012fe1>] cpu_idle+0x81/0x120
[36370.370981] [<ffffffff81441242>] rest_init+0x72/0x80
[36370.370988] [<ffffffff81ac7cd9>] start_kernel+0x3c5/0x3d0
[36370.370994] [<ffffffff81ac7346>] x86_64_start_reservations+0x131/0x135
[36370.370999] [<ffffffff81ac744d>] x86_64_start_kernel+0x103/0x112

Thanks for any hints/fixes
--
Francis


2012-01-19 21:19:24

by Francis Moreau

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

Hi all,

I'm wondering now why the brmsmac driver had been removed from the
staging driver tree if no one cares.

Bye.

On Thu, Jan 12, 2012 at 8:32 PM, Francis Moreau <[email protected]> wrote:
> Hello,
>
> I'm facing a new issue after upgrading from 3.1 to 3.2.
>
> It happens when switching on/off my wireless card (BCM4313 [14e4:4727]).
>
> Here's the oops I'm getting:
>
> [36370.370768] WARNING: at net/mac80211/rx.c:2979
> ieee80211_rx+0x91b/0x9e0 [mac80211]()
> [36370.370775] Hardware name: Vostro 3500
> [36370.370777] Modules linked in: rfcomm bridge stp bnep btusb
> bluetooth overlayfs(O) nfsd nfs lockd fscache auth_rpcgss nfs_acl
> sunrpc fuse af_packet ipv6 snd_hda_codec_hdmi arc4 snd_hda_codec_idt
> brcmsmac mac80211 snd_hda_intel brcmutil snd_hda_codec cfg80211
> snd_hwdep snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
> snd_seq_device snd_pcm_oss snd_pcm snd_timer snd_mixer_oss snd
> dell_laptop r8169 rfkill uvcvideo videodev sr_mod sg iTCO_wdt media
> i2c_i801 v4l2_compat_ioctl32 mii dcdbas soundcore mei(C) intel_ips
> snd_page_alloc iTCO_vendor_support crc8 cordic i915 drm_kms_helper drm
> i2c_algo_bit i2c_core coretemp binfmt_misc cpufreq_ondemand
> cpufreq_conservative cpufreq_powersave acpi_cpufreq freq_table mperf
> nvram dell_wmi sparse_keymap dm_mod joydev evdev kvm_intel kvm video
> battery wmi ata_piix ahci libahci libata sd_mod scsi_mod crc_t10dif
> ext4 jbd2 crc16 uhci_hcd ohci_hcd ehci_hcd usbhid hid usbcore
> usb_common
> [36370.370870] Pid: 0, comm: swapper/0 Tainted: G ? ? ? ?WC O 3.2.0 #63
> [36370.370874] Call Trace:
> [36370.370876] ?<IRQ> ?[<ffffffff8106809f>] warn_slowpath_common+0x7f/0xc0
> [36370.370888] ?[<ffffffff810680fa>] warn_slowpath_null+0x1a/0x20
> [36370.370904] ?[<ffffffffa04fb2bb>] ieee80211_rx+0x91b/0x9e0 [mac80211]
> [36370.370910] ?[<ffffffff81062ccd>] ? enqueue_task_rt+0x5d/0x70
> [36370.370915] ?[<ffffffff810528aa>] ? enqueue_task+0x6a/0x80
> [36370.370925] ?[<ffffffffa04dedd9>]
> ieee80211_tasklet_handler+0xb9/0x160 [mac80211]
> [36370.370931] ?[<ffffffff8106f43d>] tasklet_action+0xcd/0x110
> [36370.370935] ?[<ffffffff8106efda>] __do_softirq+0xaa/0x1e0
> [36370.370941] ?[<ffffffff81467aac>] call_softirq+0x1c/0x30
> [36370.370946] ?[<ffffffff81015255>] do_softirq+0x65/0xa0
> [36370.370950] ?[<ffffffff8106edde>] irq_exit+0x8e/0xc0
> [36370.370955] ?[<ffffffff81468366>] do_IRQ+0x66/0xe0
> [36370.370960] ?[<ffffffff8145dbae>] common_interrupt+0x6e/0x6e
> [36370.370963] ?<EOI> ?[<ffffffff8109be0e>] ?
> tick_nohz_stop_sched_tick+0x28e/0x3d0
> [36370.370974] ?[<ffffffff81012fe1>] cpu_idle+0x81/0x120
> [36370.370981] ?[<ffffffff81441242>] rest_init+0x72/0x80
> [36370.370988] ?[<ffffffff81ac7cd9>] start_kernel+0x3c5/0x3d0
> [36370.370994] ?[<ffffffff81ac7346>] x86_64_start_reservations+0x131/0x135
> [36370.370999] ?[<ffffffff81ac744d>] x86_64_start_kernel+0x103/0x112
>
> Thanks for any hints/fixes
> --
> Francis



--
Francis

2012-01-12 20:12:01

by Arend van Spriel

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

On 01/12/2012 08:32 PM, Francis Moreau wrote:
> Hello,
>
> I'm facing a new issue after upgrading from 3.1 to 3.2.
>
> It happens when switching on/off my wireless card (BCM4313 [14e4:4727]).
>
> Here's the oops I'm getting:
>
> [36370.370768] WARNING: at net/mac80211/rx.c:2979
> ieee80211_rx+0x91b/0x9e0 [mac80211]()

What kernel tree are you using?

Gr. AvS



2012-01-21 17:02:47

by Francis Moreau

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

On Fri, Jan 20, 2012 at 9:30 AM, Arend van Spriel <[email protected]> wrote:
>
> Did this problem occur with plain 3.2 kernel. I checked out the v3.2
> mainline tag and looked at line 2979:ieee80211_rx():
> 2975: ? ? ? ?/*
> 2976: ? ? ? ? * The same happens when we're not even started,
> 2977: ? ? ? ? * but that's worth a warning.
> 2978: ? ? ? ? */
> 2979: ? ? ? ?if (WARN_ON(!local->started))
> 2980: ? ? ? ? ? ? ? ?goto drop;
>
>>> ieee80211_rx+0x91b/0x9e0 [mac80211]()
>>> [36370.370775] Hardware name: Vostro 3500
>>> [36370.370870] Pid: 0, comm: swapper/0 Tainted: G ? ? ? ?WC O 3.2.0
>
> I guess brcmsmac is sending up a received wireless packet to mac80211
> and it is dropped, because mac80211 did not yet call the start callback.
> It is just a warning so if you are having problems connecting to an AP
> you may have other issues.

After this warning I can't connect to an AP anymore, I have to unload
and reload the brcmsmac module.

Thanks for your time.
--
Francis

2012-01-20 08:30:47

by Arend van Spriel

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

On 01/19/2012 10:19 PM, Francis Moreau wrote:
> Hi all,
>
> I'm wondering now why the brmsmac driver had been removed from the
> staging driver tree if no one cares.
>
> Bye.

Sorry for the delay in getting back to you. Still care about our
brcmsmac driver, but I can only work one issue at a time.

>
> On Thu, Jan 12, 2012 at 8:32 PM, Francis Moreau <[email protected]> wrote:
>> Hello,
>>
>> I'm facing a new issue after upgrading from 3.1 to 3.2.
>>
>> It happens when switching on/off my wireless card (BCM4313 [14e4:4727]).
>>
>> Here's the oops I'm getting:
>>
>> [36370.370768] WARNING: at net/mac80211/rx.c:2979

Did this problem occur with plain 3.2 kernel. I checked out the v3.2
mainline tag and looked at line 2979:ieee80211_rx():
2975: /*
2976: * The same happens when we're not even started,
2977: * but that's worth a warning.
2978: */
2979: if (WARN_ON(!local->started))
2980: goto drop;

>> ieee80211_rx+0x91b/0x9e0 [mac80211]()
>> [36370.370775] Hardware name: Vostro 3500
>> [36370.370870] Pid: 0, comm: swapper/0 Tainted: G WC O 3.2.0

I guess brcmsmac is sending up a received wireless packet to mac80211
and it is dropped, because mac80211 did not yet call the start callback.
It is just a warning so if you are having problems connecting to an AP
you may have other issues. As the comment states it is worth a warning
so I will look further into this.

Gr. AvS


2012-01-12 21:39:20

by Francis Moreau

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

On Thu, Jan 12, 2012 at 9:11 PM, Arend van Spriel <[email protected]> wrote:
> On 01/12/2012 08:32 PM, Francis Moreau wrote:
>> Hello,
>>
>> I'm facing a new issue after upgrading from 3.1 to 3.2.
>>
>> It happens when switching on/off my wireless card (BCM4313 [14e4:4727]).
>>
>> Here's the oops I'm getting:
>>
>> [36370.370768] WARNING: at net/mac80211/rx.c:2979
>> ieee80211_rx+0x91b/0x9e0 [mac80211]()
>
> What kernel tree are you using?

Mainline but I added one patch which allows me to use the bcrmsmac
driver while bcma is enabled.

--
Francis

2012-01-20 13:10:40

by Arend van Spriel

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

On 01/19/2012 10:19 PM, Francis Moreau wrote:
> Hi all,
>
> I'm wondering now why the brmsmac driver had been removed from the
> staging driver tree if no one cares.
>
> Bye.
>
> On Thu, Jan 12, 2012 at 8:32 PM, Francis Moreau <[email protected]> wrote:
>> Hello,
>>
>> I'm facing a new issue after upgrading from 3.1 to 3.2.
>>
>> It happens when switching on/off my wireless card (BCM4313 [14e4:4727]).
>>

I forgot to ask. With switching on/off you mean the RFKILL switch?

Gr. AvS



2012-01-19 22:34:53

by Julian Calaby

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

Hi Francis,

On Fri, Jan 20, 2012 at 08:19, Francis Moreau <[email protected]> wrote:
> Hi all,
>
> I'm wondering now why the brmsmac driver had been removed from the
> staging driver tree if no one cares.

People do care, it's just that time is limited, and people are busy.

Whilst nobody has provided this advice, the usual "My device doesn't
work and I'm not using the latest version of the driver" / "My device
doesn't work and I'm using my own patches" advice is to use the
bleeding edge Compat Wireless, without any extra patches, and see if
the problem can be reproduced with that.

See here:

http://linuxwireless.org/en/users/Download

Compat Wireless is the current wireless stack re-packaged to be
compilable on older kernels. Give it a shot, tell us if it works.

Thanks,

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

2012-01-21 17:01:16

by Francis Moreau

[permalink] [raw]
Subject: Re: brcmsmac broken with 3.2

On Fri, Jan 20, 2012 at 2:10 PM, Arend van Spriel <[email protected]> wrote:
> On 01/19/2012 10:19 PM, Francis Moreau wrote:
>> Hi all,
>>
>> I'm wondering now why the brmsmac driver had been removed from the
>> staging driver tree if no one cares.
>>
>> Bye.
>>
>> On Thu, Jan 12, 2012 at 8:32 PM, Francis Moreau <[email protected]> wrote:
>>> Hello,
>>>
>>> I'm facing a new issue after upgrading from 3.1 to 3.2.
>>>
>>> It happens when switching on/off my wireless card (BCM4313 [14e4:4727]).
>>>
>
> I forgot to ask. With switching on/off you mean the RFKILL switch?
>

Yes.

--
Francis