2012-01-20 14:07:15

by Milan Bouchet-Valat

[permalink] [raw]
Subject: BCM4313 doesn't work after suspend (brcmsmac on compat-wireless-next)

Hi!

With kernels 3.2 and 3.2.1, my Broadcom 4313 wireless card doesn't work
after suspend: I need to reload the brcmsmac module by hand on resume.
It worked fine with 3.1 kernels.

So I tried compat-wireless-next today (on Fedora 16), and it still
doesn't work, though instead of oopses I get warnings. ;-)

The error messages are:
[ 165.612939] ieee80211 phy0: wl0: wlc_coreinit: ucode did not self-suspend!
[ 165.751978] ieee80211 phy0: wl0: wlc_suspend_mac_and_wait: waited 83000 uS
and MI_MACSSPNDD is still not on.
[ 165.751989] ieee80211 phy0: wl0: psmdebug 0x00ff8181, phydebug 0x00000031,
psm_brc 0x0000

(the two latter repeated many times, see attached dmesg.log)

Please ask for any details you may need (output of lspci -vnn is
attached too, just in case).


PS: Please keep me in CC, as I'm not subscribed to the list


Attachments:
dmesg.log (85.04 kB)
lspci.log (6.92 kB)
Download all attachments

2012-01-24 10:35:31

by Milan Bouchet-Valat

[permalink] [raw]
Subject: Re: Re: BCM4313 doesn't work after suspend (brcmsmac on compat-wireless-next)

Le samedi 21 janvier 2012 à 10:58 +0100, Arend van Spriel a écrit :
> I just checked and the suspend/resume patches from Linus were applied on
> January 17th. So you need to pick up the patches (see thread "[0/5]
> bcma/brcmsmac suspend/resume cleanups and fixes" on netdev list).
I just tried the new compat-wireless package built yesterday, and indeed the problem is gone! Funny that I reported it just when it was fixed. I hope it will be backported to 3.2.

Now I've another problem to debug, I'll send a mail soon.

Keep up the good work!

2012-01-20 17:05:06

by Arend van Spriel

[permalink] [raw]
Subject: Re: BCM4313 doesn't work after suspend (brcmsmac on compat-wireless-next)

On 01/20/2012 02:54 PM, Milan Bouchet-Valat wrote:
> Hi!
>
> With kernels 3.2 and 3.2.1, my Broadcom 4313 wireless card doesn't work
> after suspend: I need to reload the brcmsmac module by hand on resume.
> It worked fine with 3.1 kernels.
>
> So I tried compat-wireless-next today (on Fedora 16), and it still
> doesn't work, though instead of oopses I get warnings. ;-)
>
> The error messages are:
> [ 165.612939] ieee80211 phy0: wl0: wlc_coreinit: ucode did not self-suspend!
> [ 165.751978] ieee80211 phy0: wl0: wlc_suspend_mac_and_wait: waited 83000 uS
> and MI_MACSSPNDD is still not on.
> [ 165.751989] ieee80211 phy0: wl0: psmdebug 0x00ff8181, phydebug 0x00000031,
> psm_brc 0x0000
>
> (the two latter repeated many times, see attached dmesg.log)
>
> Please ask for any details you may need (output of lspci -vnn is
> attached too, just in case).
>
>
> PS: Please keep me in CC, as I'm not subscribed to the list

I am not sure when compat-wireless-next was generated, but several
patches were made for suspend/resume. You also need bcma patches. Is
bcma included in the compat-wireless package.

Gr. AvS


2012-01-21 09:58:56

by Arend van Spriel

[permalink] [raw]
Subject: Re: BCM4313 doesn't work after suspend (brcmsmac on compat-wireless-next)

On 01/20/2012 06:22 PM, Milan Bouchet-Valat wrote:
> Hi and thanks for the reply!
>
> Le vendredi 20 janvier 2012 à 18:04 +0100, Arend van Spriel a écrit :
>> I am not sure when compat-wireless-next was generated, but several
>> patches were made for suspend/resume.
> It was generated on January 17th, with sources from the 16th. Is that
> recent enough?at

I just checked and the suspend/resume patches from Linus were applied on
January 17th. So you need to pick up the patches (see thread "[0/5]
bcma/brcmsmac suspend/resume cleanups and fixes" on netdev list).

> (Packages are from
> http://people.redhat.com/sgruszka/compat-wireless-next/F-16/)
>
>> You also need bcma patches. Is
>> bcma included in the compat-wireless package.
> I'm not sure I understand. The bcma module is indeed installed from
> compat-wireless-next and loaded:
> $ lsmod|grep bcma
> bcma 23804 2 brcmsmac,b43
>
> $ uname -r
> 3.1.9-1.fc16.x86_64
>
> $ find /lib/modules/3.1.9-1.fc16.x86_64 -name bcma
> /lib/modules/3.1.9-1.fc16.x86_64/updates/drivers/bcma
> /lib/modules/3.1.9-1.fc16.x86_64/backports/drivers/bcma

That answers my question. bcma is indeed part of compat-wireless.

Gr. AvS


2012-01-20 17:22:59

by Milan Bouchet-Valat

[permalink] [raw]
Subject: Re: BCM4313 doesn't work after suspend (brcmsmac on compat-wireless-next)

Hi and thanks for the reply!

Le vendredi 20 janvier 2012 à 18:04 +0100, Arend van Spriel a écrit :
> I am not sure when compat-wireless-next was generated, but several
> patches were made for suspend/resume.
It was generated on January 17th, with sources from the 16th. Is that
recent enough?

(Packages are from
http://people.redhat.com/sgruszka/compat-wireless-next/F-16/)

> You also need bcma patches. Is
> bcma included in the compat-wireless package.
I'm not sure I understand. The bcma module is indeed installed from
compat-wireless-next and loaded:
$ lsmod|grep bcma
bcma 23804 2 brcmsmac,b43

$ uname -r
3.1.9-1.fc16.x86_64

$ find /lib/modules/3.1.9-1.fc16.x86_64 -name bcma
/lib/modules/3.1.9-1.fc16.x86_64/updates/drivers/bcma
/lib/modules/3.1.9-1.fc16.x86_64/backports/drivers/bcma

(updates/ is from compat-wireless-next, and takes precedence over
backports/ as per /etc/depmod.d/dist.conf)

So should I apply more patches?


Regards