Re: New laptop: AC 9461/9560: iwm or iwlwifi?
- Reply: Marco : "Re: New laptop: AC 9461/9560: iwm or iwlwifi?"
- In reply to: Marco : "Re: New laptop: AC 9461/9560: iwm or iwlwifi?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Dec 2022 21:51:31 UTC
On Mon, 19 Dec 2022, Marco wrote: > On Mon, Dec 19, 2022 at 10:07:50PM +0000, you (Bjoern A. Zeeb) sent the following to [freebsd-wireless] : >> You could try a devctl reset ... between detach and set driver. >> >> Also you could try to stop the iwm0 (wlan0) before detaching and see if >> that gets a clean(er) shutdown (service netif destroy wlan0 && devctl >> detach ...) > > I rebooted with both wlans_ entries in rc.conf but not having any > devmatch_blocklist active. > wlan0 got autocreated with iwm0 as parent and is fuctioning. > So at least having 2 wlans_ entries doesn't seem to hurt. > Also if_iwlwifi.ko is listed in the kldstat output: > > # kldstat | grep -e wlan -e wi-fi -e wifi -e iwm > 3 1 0xffffffff82141000 3130 wlan_xauth.ko > 17 1 0xffffffff850c7000 880c8 if_iwlwifi.ko > 18 1 0xffffffff85150000 17310 if_iwm.ko > 21 1 0xffffffff85200000 28fee8 iwm9000fw.ko > > I stopped wlan0 and performed the devctl reset in between the detach and > set driver steps but still wasn't successful: > > # service netif stop wlan0 && devctl detach pci0:0:20:3 && devctl reset pci0:0:20:3 && devctl set driver pci0:0:20:3 iwlwifi > > wlan0 got destroyed and the following was logged in /var/log/messages: > > Dec 19 22:31:42 harbinger wpa_supplicant[73966]: wlan0: CTRL-EVENT-DISCONNECTED bssid=72:a7:41:9b:4f:da reason=3 locally_generated=1 > Dec 19 22:31:42 harbinger wpa_supplicant[73966]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all > Dec 19 22:31:42 harbinger syslogd: last message repeated 1 times > Dec 19 22:31:42 harbinger wpa_supplicant[73966]: wlan0: CTRL-EVENT-TERMINATING > Dec 19 22:31:42 harbinger kernel: [680] wlan0: link state changed to DOWN > Dec 19 22:31:42 harbinger rtsold[63523]: <rtsock_input_ifannounce> interface wlan0 removed > Dec 19 22:31:42 harbinger kernel: [680] iwm0: detached > Dec 19 22:31:42 harbinger kernel: [680] pci0:0:20:3: Transition from D0 to D3 > Dec 19 22:31:42 harbinger root[97472]: /etc/rc.d/netif: WARNING: wlan0 does not exist. Skipped. > Dec 19 22:31:42 harbinger kernel: [681] pci0:0:20:3: Transition from D0 to D3 > Dec 19 22:31:42 harbinger kernel: [681] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0 > Dec 19 22:31:42 harbinger kernel: [681] iwlwifi0: HW_REV=0xFFFFFFFF, PCI issues? > Dec 19 22:31:42 harbinger kernel: [681] device_attach: iwlwifi0 attach returned 5 > > Despite pci0:0:20:3 seeemingly "attached" to iwlwifi0 I can't seem to > get wlan0 created using iwlwifi as parent. So you by any chance have any power saving sysctl (or tunables) set? I see two transiotions from D0 to D3 logged but nothing taking the device out of D3 gets logged (could be an omission elsewhere). Can you show a pciconf -lBbcevV iwlwifi0 or pciconf -lBbcevV pci0:0:20:3 (which ever one works in that state)? /bz -- Bjoern A. Zeeb r15:7