Date: Mon, 19 Dec 2022 22:07:50 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: Marco <freebsd-wireless@lordsith.net> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: New laptop: AC 9461/9560: iwm or iwlwifi? Message-ID: <s0s6p86n-325-7r4q-12r2-164r929r4775@mnoonqbm.arg> In-Reply-To: <Y6DZJT5mNJB8vuwi@freedom.nl> References: <2e3618b7-646b-02be-eb19-8a58aaf3619f@netfence.it> <srp28qr-1p8r-qsp7-6197-67359o129r35@mnoonqbm.arg> <a04c03db-3c0c-037b-3a81-221e6abd2151@netfence.it> <537f4871-5184-394e-1f93-bf625dc088cf@netfence.it> <q35r8954-195o-3rr6-9055-124sqo62o29p@SerrOFQ.bet> <Y5OueCTI/obivzkR@freedom.nl> <psr5s1os-9qn9-73q7-pr43-p3pp8s01164@mnoonqbm.arg> <Y6DP4j8AApeotsVo@freedom.nl> <Y6DWyDbEcLB1MPaS@freedom.nl> <Y6DZJT5mNJB8vuwi@freedom.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Dec 2022, Marco wrote: > On Mon, Dec 19, 2022 at 09:25:28PM +0000, you (Marco) sent the following to [freebsd-wireless] : >> On Mon, Dec 19, 2022 at 08:56:02PM +0000, you (Marco) sent the following to [freebsd-wireless] : >>> On Sat, Dec 17, 2022 at 10:40:25PM +0000, you (Bjoern A. Zeeb) sent the following to [freebsd-wireless] : >>>> >>>> Did you try again to switch back to iwlwifi? >>>> >>>> What happens if you are on a running iwm setup and then do the devctl >>>> detach, set driver dance? >> >> So on my current running iwm setup without changing anything else I did >> the devtl detach, set driver dance which failed as follows: >> >> [~] doas pciconf -lBbcevV iwm0 >> iwm0@pci0:0:20:3: class=0x028000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x9df0 subvendor=0x8086 subdevice=0x0030 >> vendor = 'Intel Corporation' >> device = 'Cannon Point-LP CNVi [Wireless-AC]' >> class = network >> bar [10] = type Memory, range 64, base 0xea238000, size 16384, enabled >> cap 01[c8] = powerspec 3 supports D0 D3 current D0 >> cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message >> cap 10[40] = PCI-Express 2 root endpoint max data 128(128) FLR RO NS >> max read 128 >> cap 11[80] = MSI-X supports 16 messages >> Table in map 0x10[0x2000], PBA in map 0x10[0x3000] >> ecap 0000[100] = unknown 0 >> ecap 0018[14c] = LTR 1 >> ecap 000b[164] = Vendor [1] ID 0010 Rev 0 Length 20 >> >> [~] kldstat | grep -e wlan -e wi-fi -e wifi -e iwm >> 3 1 0xffffffff82d4c000 290cc0 iwm9000fw.ko >> 6 1 0xffffffff82fe6000 3130 wlan_xauth.ko >> 7 1 0xffffffff82fea000 2e870 if_iwm.ko >> >> [~] doas kldload /boot/kernel/if_iwlwifi.ko >> [~] kldstat | grep -e wlan -e wi-fi -e wifi -e iwm >> 3 1 0xffffffff82d4c000 290cc0 iwm9000fw.ko >> 6 1 0xffffffff82fe6000 3130 wlan_xauth.ko >> 7 1 0xffffffff82fea000 2e870 if_iwm.ko >> 39 1 0xffffffff85565000 880c8 if_iwlwifi.ko >> >> [~] doas devctl detach pci0:0:20:3 >> [~] doas pciconf -lBbcevV iwm0 >> pciconf: Device not found >> >> [~] doas devctl set driver pci0:0:20:3 iwlwifi >> devctl: Failed to set pci0:0:20:3 driver to iwlwifi: Input/output error > > Forgot to mention that despite the IO error, pciconf does list > pci0:0:20:3 to be attached to iwlwifi0 > > [~] d pciconf -lBbcevV iwlwifi0 > iwlwifi0@pci0:0:20:3: class=0x028000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x9df0 subvendor=0x8086 subdevice=0x0030 > vendor = 'Intel Corporation' > device = 'Cannon Point-LP CNVi [Wireless-AC]' > class = network > bar [10] = type Memory, range 64, base 0xea238000, size 16384, disabled > cap 01[c8] = powerspec 3 supports D0 D3 current D3 > cap 05[d0] = MSI supports 1 message, 64 bit > cap 10[40] = PCI-Express 2 root endpoint max data 128(128) FLR RO NS > max read 128 > cap 11[80] = MSI-X supports 16 messages > Table in map 0x10[0x2000], PBA in map 0x10[0x3000] > ecap 0000[100] = unknown 0 > ecap 0018[14c] = LTR 1 > ecap 000b[164] = Vendor [1] ID 0010 Rev 0 Length 20 > > And /var/log/messages contains: > > Dec 19 21:17:46 harbinger rtsold[80587]: <rtsock_input_ifannounce> interface wlan0 removed > Dec 19 21:17:46 harbinger wpa_supplicant[51703]: Error reading packet, has device disappeared? > Dec 19 21:17:46 harbinger syslogd: last message repeated 1 times > Dec 19 21:17:46 harbinger kernel: [811025] pid 52018 (wpa_supplicant), jid 0, uid 0: exited on signal 11 (core dumped) > Dec 19 21:17:47 harbinger kernel: [811026] wlan0: link state changed to DOWN > Dec 19 21:17:47 harbinger kernel: [811026] iwm0: detached > Dec 19 21:17:47 harbinger kernel: [811026] pci0:0:20:3: Transition from D0 to D3 > Dec 19 21:17:47 harbinger root[77895]: /etc/rc.d/netif: WARNING: wlan0 does not exist. Skipped. > Dec 19 21:18:05 harbinger kernel: [811044] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0 > Dec 19 21:18:05 harbinger kernel: [811044] iwlwifi0: HW_REV=0xFFFFFFFF, PCI issues? > Dec 19 21:18:05 harbinger kernel: [811044] device_attach: iwlwifi0 attach returned 5 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 ...) /bz -- Bjoern A. Zeeb r15:7
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?s0s6p86n-325-7r4q-12r2-164r929r4775>