Primeiro, gostaria apenas de salientar que esta pergunta também foi feita nos fóruns do Arch
Eu tenho um laptop Dell XPS 13 (9350). Numa base bastante regular (cerca de uma ou duas vezes por dia, embora em momentos diferentes e nem sempre após um acontecimento óbvio, por exemplo, o encerramento da tampa ou a suspensão), perderei a ligação. Ou seja, o i3bar me avisará que ainda estou conectado e que ainda tenho um IP, mas nenhuma resposta de ping de nenhum servidor.
Nesse estado, quando tento alterar a conexão sem fio usando netctl-auto switch-to
, obtenho
WPA association/authentication failed for interface 'wlp58s0'
(Obviamente, todas as chaves estão corretas, pois as conexões funcionam em outros momentos.) A única coisa que parece curar esse estado é uma reinicialização, e isso sempre corrige o problema.
Durante a reinicialização, muitas vezes vejo essa mensagem (veja abaixo para journalctl
output):
brcmfmac: brcmf_msgbuf_tx_ioctl: Failed to reserve space in commonring
Alguns detalhes:
~$ lspci -vnn | grep -i net
3a:00.0 Network controller [0280]: Broadcom Limited BCM4350 802.11ac Wireless Network Adapter [14e4:43a3] (rev 08)
Subsystem: Dell BCM4350 802.11ac Wireless Network Adapter [1028:0021]
~$ lsmod | grep brcmfmac
brcmfmac 233472 0
brcmutil 16384 1 brcmfmac
cfg80211 516096 1 brcmfmac
mmc_core 122880 2 rtsx_pci_sdmmc,brcmfmac
usbcore 208896 7 uvcvideo,usbhid,cdc_acm,xhci_pci,brcmfmac,btusb,xhci_hcd
~$ pacman -Q linux
linux 4.13.3-1
Felizmente, enquanto eu digitava isso aconteceu de novo. Aqui está a saída de journalctl | grep brcmfmac
desde que eu liguei o laptop (arranque a frio) esta manhã:
Sep 29 08:04:09 thelonious kernel: usbcore: registered new interface driver brcmfmac
Sep 29 08:04:09 thelonious kernel: brcmfmac 0000:3a:00.0: enabling device (0000 -> 0002)
Sep 29 08:04:11 thelonious kernel: brcmfmac 0000:3a:00.0: Direct firmware load for brcm/brcmfmac4350-pcie.txt failed with error -2
Sep 29 08:04:11 thelonious kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 22 2015 06:16:26 version 7.35.180.119 (r594535) FWID 01-e791c176
Sep 29 08:04:11 thelonious kernel: brcmfmac 0000:3a:00.0 wlp58s0: renamed from wlan0
Sep 29 08:55:42 thelonious kernel: brcmfmac: brcmf_msgbuf_query_dcmd: Timeout on response for query command
Sep 29 08:55:42 thelonious kernel: brcmfmac: brcmf_cfg80211_dump_station: BRCMF_C_GET_ASSOCLIST unsupported, err=-5
Sep 29 08:55:44 thelonious kernel: brcmfmac: brcmf_msgbuf_query_dcmd: Timeout on response for query command
... snip multiple identical errors ...
Sep 29 08:57:57 thelonious kernel: brcmfmac: brcmf_cfg80211_dump_station: BRCMF_C_GET_ASSOCLIST unsupported, err=-5
Sep 29 08:57:57 thelonious kernel: brcmfmac: brcmf_msgbuf_tx_ioctl: Failed to reserve space in commonring
Sep 29 08:57:57 thelonious kernel: brcmfmac: brcmf_cfg80211_dump_station: BRCMF_C_GET_ASSOCLIST unsupported, err=-12
Sep 29 08:58:00 thelonious kernel: brcmfmac: brcmf_msgbuf_tx_ioctl: Failed to reserve space in commonring
... snip multiple identical errors ...
Sep 29 08:58:20 thelonious kernel: brcmfmac: brcmf_msgbuf_tx_ioctl: Failed to reserve space in commonring
Sep 29 08:58:20 thelonious kernel: brcmfmac: brcmf_cfg80211_dump_station: BRCMF_C_GET_ASSOCLIST unsupported, err=-12
Após tal falha do módulo do kernel, simplesmente reiniciar o serviço não ajuda:
~$ sudo systemctl restart [email protected]
A dependency job for [email protected] failed. See 'journalctl -xe' for details.
~$ sudo journalctl -xe
Sep 30 10:51:58 thelonious sudo[3626]: basie : TTY=pts/2 ; PWD=/home/basie ; USER=root ; COMMAND=/usr/bin/systemctl restart netctl-auto@wlp5
Sep 30 10:51:58 thelonious sudo[3626]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 30 10:51:58 thelonious systemd[1]: Unnecessary job for sys-subsystem-net-devices-wlp57s0.device was removed.
-- Subject: Unit sys-subsystem-net-devices-wlp57s0.device has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sys-subsystem-net-devices-wlp57s0.device has failed.
--
-- The result is collected.
Sep 30 10:51:58 thelonious systemd[1]: [email protected]: Bound to unit sys-subsystem-net-devices-wlp57s0.device, but unit isn't acti
Sep 30 10:51:58 thelonious systemd[1]: Dependency failed for Automatic wireless network connection using netctl profiles.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected] has failed.
--
-- The result is dependency.
Sep 30 10:51:58 thelonious systemd[1]: [email protected]: Job [email protected]/start failed with result 'dependency'.
Sep 30 10:51:58 thelonious sudo[3626]: pam_unix(sudo:session): session closed for user root
Sep 30 10:52:00 thelonious kernel: brcmfmac: brcmf_msgbuf_tx_ioctl: Failed to reserve space in commonring
Sep 30 10:52:00 thelonious kernel: brcmfmac: brcmf_cfg80211_dump_station: BRCMF_C_GET_ASSOCLIST unsupported, err=-12
...snip identical messages...
Sep 30 10:52:05 thelonious kernel: brcmfmac: brcmf_cfg80211_dump_station: BRCMF_C_GET_ASSOCLIST unsupported, err=-12
Sep 30 10:52:10 thelonious kernel: net_ratelimit: 2 callbacks suppressed
Sep 30 10:52:10 thelonious kernel: brcmfmac: brcmf_msgbuf_tx_ioctl: Failed to reserve space in commonring
...etc...
Então, duas perguntas:
- Que outras etapas posso fazer para diagnosticar isso? Obviamente, o módulo
está recebendo um comando que não suporta (noto este patch de
2015 link ), mas não tenho certeza
para onde ir daqui.
- O que é sobre a reinicialização que resolve o problema?
problema que eu poderia tentar de um terminal para restringir a minha pesquisa?