2018-04-17 08:28:26

by Arend Van Spriel

[permalink] [raw]
Subject: Re: Driver crashes on resume after suspend

+ linux-wireless

On 4/17/2018 12:02 AM, Carl-Erik Kopseng wrote:
> I have a BCM4350 on my Ubuntu 18.04 system. Until today, I could never
> suspend my computer, as the driver brcmfmac would crash on resume
> (looking in dmesg) and only a reboot would make the device reappear.
>
> Today, I found a workaround by making the pm-* commands remove and add
> the module before any power management action:
> echo 'SUSPEND_MODULES="brcmfmac"' | sudo tee -a /etc/pm/config.d/config
>
> This worked fine, but it took me quite a lot of digging, including
> trying out the `wl` driver, the `b43` package, and lots of tweaking. But
> even after going full circle and finding a fix, this still doesn't
> address the actual underlying problem: that brcmfmac doesn't survive
> hibernation and standby. Is there any data I can supply to remedy the
> situation? I attached the dump from wifi debugging utility to pinpoint
> my configuration, but it doesn't contain any dmesg output from the
> kernel crashes. You would probably want a more detailed output than what
> is supplied by dmesg anyway ...

Well. dmesg is always a start so let's have it. If you can compile the
driver you could build it with CONFIG_BRCMDBG enabled and load the
driver with parameter 'debug=0x80000'.

Regards,
Arend