On Sat, 31 Dec 2022, Marco wrote:
And /var/log/messages shows:
Dec 31 16:09:45 harbinger wpa_supplicant[77366]: Error reading packet, has
device disappeared?
Dec 31 16:09:45 harbinger syslogd: last message repeated 1 times
Dec 31 16:09:45 harbinger rtsold[65067]: <rtsock_input_ifannounce> interface
wlan0 removed
Dec 31 16:09:45 harbinger kernel: [203] pid 77579 (wpa_supplicant), jid 0, uid
0: exited on signal 11 (core dumped)
Wonder why this dumps core.
Dec 31 16:09:46 harbinger kernel: [204] wlan0: link state changed to DOWN
Dec 31 16:09:46 harbinger kernel: [204] iwm0: detached
Dec 31 16:09:46 harbinger root[27669]: /etc/rc.d/netif: WARNING: wlan0 does not
exist. Skipped.
[~] doas devctl reset -d pci0:0:20:3
/var/log/messages:
Dec 31 16:12:37 harbinger kernel: [374] iwm0: <Intel(R) Dual Band Wireless AC
9560> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
Dec 31 16:12:37 harbinger kernel: [374] iwm0: attempting to allocate 1 MSI
vectors (1 supported)
Dec 31 16:12:37 harbinger kernel: [374] msi: routing MSI IRQ 141 to local APIC
2 vector 53
Dec 31 16:12:37 harbinger kernel: [374] iwm0: using IRQ 141 for MSI
Dec 31 16:12:37 harbinger kernel: [374] iwm0: Failed to lock the nic
Dec 31 16:12:37 harbinger kernel: [374] device_attach: iwm0 attach returned 6
Now iwm(4) failed to re-attach after the reset.
[~] doas devctl set driver pci0:0:20:3 iwlwifi
devctl: Failed to set pci0:0:20:3 driver to iwlwifi: Input/output error
Dec 31 16:13:42 harbinger kernel: [440] iwlwifi0: <iwlwifi> mem
0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
Dec 31 16:13:42 harbinger kernel: [440] iwlwifi0: HW_REV=0xFFFFFFFF, PCI issues?
Dec 31 16:13:42 harbinger kernel: [440] device_attach: iwlwifi0 attach returned
5
And iwlwifi(4) then is no different. I think trying to re-attach iwm(4)
in this setup should first work before we try to swap drivers.
again, yet despite the I/O error pciconf now shows:
[~] doas pciconf -lBbcevV pci0:0:20:3
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
I wonder why the BAR is disabled but iwlwifi could have done that on attach
fail given it was still enabled after iwm(4) detach.
/bz
--
Bjoern A. Zeeb r15:7