Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2023 22:07:20 +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:  <615r1pn6-9741-72s9-nn72-n86714o6q98@mnoonqbm.arg>
In-Reply-To: <Y7BkHGRyyopxbESh@freedom.nl>
References:  <Y5OueCTI/obivzkR@freedom.nl> <psr5s1os-9qn9-73q7-pr43-p3pp8s01164@mnoonqbm.arg> <Y6DP4j8AApeotsVo@freedom.nl> <Y6DWyDbEcLB1MPaS@freedom.nl> <Y6DZJT5mNJB8vuwi@freedom.nl> <s0s6p86n-325-7r4q-12r2-164r929r4775@mnoonqbm.arg> <Y6DtNJZ%2BWvzP%2BLEH@freedom.nl> <69oq98r0-4r8-16s6-3779-82q158sp044@mnoonqbm.arg> <Y66/laJT2zerWjBe@freedom.nl> <r28s5o7s-9rq9-r353-o685-528qp8q13rr@mnoonqbm.arg> <Y7BkHGRyyopxbESh@freedom.nl>

index | next in thread | previous in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?615r1pn6-9741-72s9-nn72-n86714o6q98>