Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2022 22:40:25 +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:  <psr5s1os-9qn9-73q7-pr43-p3pp8s01164@mnoonqbm.arg>
In-Reply-To: <Y5OueCTI/obivzkR@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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Dec 2022, marco wrote:

Hi,

sorry for only replying now.  I had read through a few days ago and saw
your follow-up as well.

> On Sat, Oct 29, 2022 at 04:49:30PM +0000, you (Bjoern A. Zeeb) sent the following to [freebsd-wireless] :
>>
>> Feel blessed it didn't panic ;-)  It seems iwlwifi doesn't like a
>> particular bit being removed (and re-created, so if you would create the
>> interface again it most likely will panic).
>>
>> I have diagnosed some other weirdness in that area the last days; I hope
>> to have a fix in a few days.
>>
>> /bz
>>
>
> Just chipping in here but I broke my wi-fi trying to move from iwm to iwlwifi
> I'm on stable/13-n253250-308d3d6be6da on a X1 Carbon 7th gen
>
> [~] sysctl hw.model
> hw.model: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
>
>
> original state/config before the attempt to switch to iwlwifi:
>
> [~] pciconf -vlV | grep -B3 network
> 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
> --
> em0@pci0:0:31:6:	class=0x020000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x15bd subvendor=0x17aa subdevice=0x2292
>    vendor     = 'Intel Corporation'
>    device     = 'Ethernet Connection (6) I219-LM'
>    class      = network
>
> [~] grep iwm /var/run/dmesg.boot
> [9] iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
>
> This was my working situation before even trying iwlwifi:
>
> /etc/rc.conf:
>
> # Network settings
> hostname="harbinger.fritz.box"
> ip6addrctl_policy="ipv6_prefer"
> ipv6_privacy="YES"      #NO : Use privacy address on RA-receiving IFs (RFC 4941)
> wlans_iwm0="wlan0"
> create_args_wlan0="regdomain ETSI country NL authmode WPA powersave"
> ifconfig_wlan0="ether f8:75:a4:fa:9d:bf WPA"
>
> /boot/loader.conf:
>
> wlan_xauth_load="YES"
>
> /etc/wpa-supplicant.conf:
>
> ctrl_interface=/var/run/wpa_supplicant
> update_config=1
>
> # AP scanning
> ap_scan=1
>
> country=NL
>
> network={
> 	ssid="foo"
> 	psk=verylong-pre-shared-WPA-key-from-ascii-passphrase
>        key_mgmt=WPA-PSK
> }
>
> I think I remember seeing if_iwlwifi.ko being loaded alongside if_iwm.ko in
> kldstat output before I started my adventure although I don't have any
> reference having defined if_iwlwifi.ko anywhere so I guess that's being
> pulled in as a dependency..

It has matching PCI IDs so will be auto-loaded as well.

LinuxKPI has a lower priority though so the native iwm(4) will
preferably attach if available.


> Please bear with me for I do not recall the exact order of my actions
> (I've tried lots but unfortunately didn't write them down step by step).
>
> First I tried the following rc.conf updates:
>
> devmatch_blocklist="if_iwm"
> wlans_iwlwifi0="wlan0"
> create_args_wlan0="wlanmode sta regdomain ETSI country NL powersave"
> ifconfig_wlan0="ether f8:75:a4:fa:9d:bf WPA" /* this is because wlan0
> was a laggport for my lagg0 lacp setup
> ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 -tso -lro DHCP"
> ifconfig_lagg0_ipv6="inet6 accept_rtadv"

lagg is one of these configurations which still only work in very few
circumstances.  One of the problems being show below the others being
outside of wireless but triggering the problem there.


> I added the lines to loader.conf to make the boot verbose and capture
> any iwlwifi0 related info during the boot.

Great!


> When I rebooted my laptop the boot got stuck in a constant loop cycle
> that kept scrolling off of the screen which I couldn't pause/cancel but
> I think I saw some reference to drm-kmod
>
> Here is the iwlwifi0 capture:
>
> grep iwlwifi /var/log/messages
> Dec  9 15:52:55 harbinger kernel: [745] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 15:52:55 harbinger kernel: [745] iwlwifi0: HW_REV=0xFFFFFFFF, PCI issues?
> Dec  9 15:52:55 harbinger kernel: [745] device_attach: iwlwifi0 attach returned 5
> Dec  9 16:03:16 harbinger kernel: [202] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 16:03:16 harbinger kernel: [202] iwlwifi0: HW_REV=0xFFFFFFFF, PCI issues?
> Dec  9 16:03:16 harbinger kernel: [202] device_attach: iwlwifi0 attach returned 5

It tried to attach but failed.  Twice.  Likely iwm(4) is already attached during these times?


> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: attempting to allocate 6 MSI-X vectors (16 supported)
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: using IRQs 141-146 for MSI-X
> Dec  9 16:06:40 harbinger kernel: [406] firmware: 'iwlwifi-9000-pu-b0-jf-b0-46.ucode' version 46: 1518788 bytes loaded at 0xffffffff85208000
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: successfully loaded firmware image 'iwlwifi-9000-pu-b0-jf-b0-46.ucode'
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 0
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 1
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 2
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 3
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 4
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 6
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 8
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 9
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 10
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 11
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 15
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 16
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 18
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 19
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 20
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 21
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: WRT: Overriding region id 28
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: loaded firmware version 46.9d0122c0.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: base HW address: b8:9a:2a:6e:23:14, OTP minor version: 0x4
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> Dec  9 16:06:40 harbinger kernel: [406] iwlwifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

This time it worked fine.


> Dec  9 16:30:39 harbinger kernel: [1845] iwlwifi0: iwl_trans_send_cmd bad state = 0
> Dec  9 16:30:39 harbinger kernel: [1845] iwlwifi0: Failed to remove MAC context: -5
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: detached
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: attempting to allocate 6 MSI-X vectors (16 supported)
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: using IRQs 141-146 for MSI-X
> Dec  9 16:32:40 harbinger kernel: [1966] firmware: 'iwlwifi-9000-pu-b0-jf-b0-46.ucode' version 46: 1518788 bytes loaded at 0xffffffff8520b000
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: successfully loaded firmware image 'iwlwifi-9000-pu-b0-jf-b0-46.ucode'
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 0
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 1
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 2
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 3
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 4
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 6
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 8
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 9
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 10
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 11
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 15
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 16
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 18
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 19
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 20
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 21
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: WRT: Overriding region id 28
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: loaded firmware version 46.9d0122c0.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
> Dec  9 16:32:40 harbinger kernel: [1966] iwlwifi0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
> Dec  9 16:32:40 harbinger kernel: [1967] iwlwifi0: base HW address: b8:9a:2a:6e:23:14, OTP minor version: 0x4
> Dec  9 16:32:41 harbinger kernel: [1967] iwlwifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:32:41 harbinger kernel: [1967] iwlwifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> Dec  9 16:32:41 harbinger kernel: [1967] iwlwifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: detached

Complete attach and gets detached -- why?

Only to attach again...

> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: attempting to allocate 6 MSI-X vectors (16 supported)
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: using IRQs 141-146 for MSI-X
> Dec  9 16:32:49 harbinger kernel: [1975] firmware: 'iwlwifi-9000-pu-b0-jf-b0-46.ucode' version 46: 1518788 bytes loaded at 0xffffffff8520b000
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: successfully loaded firmware image 'iwlwifi-9000-pu-b0-jf-b0-46.ucode'
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 0
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 1
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 2
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 3
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 4
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 6
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 8
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 9
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 10
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 11
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 15
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 16
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 18
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 19
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 20
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 21
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: WRT: Overriding region id 28
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: loaded firmware version 46.9d0122c0.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: base HW address: b8:9a:2a:6e:23:14, OTP minor version: 0x4
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> Dec  9 16:32:49 harbinger kernel: [1975] iwlwifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

10s something else went on..

> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: detached

And repeat ...

> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: attempting to allocate 6 MSI-X vectors (16 supported)
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: using IRQs 141-146 for MSI-X
> Dec  9 16:32:59 harbinger kernel: [1985] firmware: 'iwlwifi-9000-pu-b0-jf-b0-46.ucode' version 46: 1518788 bytes loaded at 0xffffffff8520b000
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: successfully loaded firmware image 'iwlwifi-9000-pu-b0-jf-b0-46.ucode'
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 0
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 1
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 2
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 3
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 4
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 6
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 8
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 9
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 10
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 11
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 15
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 16
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 18
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 19
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 20
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 21
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: WRT: Overriding region id 28
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: loaded firmware version 46.9d0122c0.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: base HW address: b8:9a:2a:6e:23:14, OTP minor version: 0x4
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> Dec  9 16:32:59 harbinger kernel: [1985] iwlwifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

1s this time...

> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: detached

And repeat ...

> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: attempting to allocate 6 MSI-X vectors (16 supported)
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: using IRQs 141-146 for MSI-X
> Dec  9 16:33:00 harbinger kernel: [1986] firmware: 'iwlwifi-9000-pu-b0-jf-b0-46.ucode' version 46: 1518788 bytes loaded at 0xffffffff8520b000
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: successfully loaded firmware image 'iwlwifi-9000-pu-b0-jf-b0-46.ucode'
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 0
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 1
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 2
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 3
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 4
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 6
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 8
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 9
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 10
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 11
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 15
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 16
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 18
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 19
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 20
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 21
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: WRT: Overriding region id 28
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: loaded firmware version 46.9d0122c0.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: base HW address: b8:9a:2a:6e:23:14, OTP minor version: 0x4
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> Dec  9 16:33:00 harbinger kernel: [1986] iwlwifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:33:00 harbinger kernel: [1987] iwlwifi0: detached

And again ...

> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: <iwlwifi> mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: attempting to allocate 6 MSI-X vectors (16 supported)
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: using IRQs 141-146 for MSI-X
> Dec  9 16:33:01 harbinger kernel: [1987] firmware: 'iwlwifi-9000-pu-b0-jf-b0-46.ucode' version 46: 1518788 bytes loaded at 0xffffffff8520b000
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: successfully loaded firmware image 'iwlwifi-9000-pu-b0-jf-b0-46.ucode'
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 0
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 1
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 2
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 3
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 4
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 6
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 8
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 9
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 10
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 11
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 15
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 16
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 18
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 19
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 20
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 21
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: WRT: Overriding region id 28
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: loaded firmware version 46.9d0122c0.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x312
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: base HW address: b8:9a:2a:6e:23:14, OTP minor version: 0x4
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> Dec  9 16:33:01 harbinger kernel: [1987] iwlwifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

And again ....


~50 minutes passed ... and it crashed...  Likely lagg doing something
and wlan0 going through tis 3rd(?) up/down cycle?

[3rd is roughtly the one in my current tests I can sustain]

> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Microcode SW error detected. Restarting 0x0.
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Start IWL Error Log Dump:
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Transport status: 0x0000004B, valid: 6
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Loaded firmware version: 46.9d0122c0.0 9000-pu-b0-jf-b0-46.ucode
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0000340A | ADVANCED_SYSASSERT
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x000022F0 | trm_hw_status0
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | trm_hw_status1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0048961A | branchlink2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0047905E | interruptlink1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | interruptlink2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | data1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xDEADBEEF | data2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xDEADBEEF | data3
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | beacon time
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00274F1C | tsf low
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | tsf hi
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | time gp1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00274F1D | time gp2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000001 | uCode revision type
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0000002E | uCode version major
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x9D0122C0 | uCode version minor
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000312 | hw version
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x18489002 | board version
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x801EF402 | hcmd
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00022080 | isr0
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | isr1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x08201802 | isr2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00417CC0 | isr3
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | isr4
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x001E01C8 | last cmd Id
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0001B822 | wait_event
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000260 | l2p_control
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | l2p_duration
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000003 | l2p_mhvalid
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | l2p_addr_match
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0000000D | lmpm_pmg_sel
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x03061126 | timestamp
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0000284C | flow_handler
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Start IWL Error Log Dump:
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Transport status: 0x0000004B, valid: 7
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x20000070 | NMI_INTERRUPT_LMAC_FATAL
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | umac branchlink1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xC0088A1A | umac branchlink2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xC0084458 | umac interruptlink1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xC0084458 | umac interruptlink2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000800 | umac data1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xC0084458 | umac data2
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xDEADBEEF | umac data3
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0000002E | umac major
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x9D0122C0 | umac minor
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00274F38 | frame pointer
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xC088627C | stack pointer
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0020012B | last host cmd
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | isr status reg
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: IML/ROM dump:
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | IML/ROM error/state
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000003 | IML/ROM data1
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Fseq Registers:
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xD4EBA0CD | FSEQ_ERROR_CODE
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x00000000 | FSEQ_TOP_INIT_VERSION
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xCA214D53 | FSEQ_CNVIO_INIT_VERSION
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0000A384 | FSEQ_OTP_VERSION
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x4D956F77 | FSEQ_TOP_CONTENT_VERSION
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x87D4A50B | FSEQ_ALIVE_TOKEN
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x19512D4E | FSEQ_CNVI_ID
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xD3AC1FE1 | FSEQ_CNVR_ID
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x01000100 | CNVI_AUX_MISC_CHIP
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x01300202 | CNVR_AUX_MISC_CHIP
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0x0000485B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: 0xA5A5A5A2 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: WRT: Collecting data: ini trigger 4 fired (delay=0ms).
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: FW error in SYNC CMD BINDING_CONTEXT_CMD
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: Failed to send binding (action:1): -5
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: PHY ctxt cmd error. ret=-5
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: lkpi_iv_newstate: error -5 during state transition 1 (SCAN) -> 2 (AUTH)
> Dec  9 17:22:52 harbinger kernel: [4978] iwlwifi0: No queue was found. Dropping TX

I assume followed by a panic then or unfunctional behaviour (given it's
stable/13)?



> I then decided to switch back to a previous BE so I could mount the BE I was just on
> to revert the rc.conf changes and rebooted again to change back to using
> iwm.
> To my surprise wlan0 was not created and I've been stuck in this
> situation since then.

Are you sure you had fully restored the previous rc.conf?

It seems you either had left the blocklist line or forgot to change the
 	wlans_iwlwifi0="wlan0"
back to iwm0 or maybe mistyped it?


> This is what I noticed from dmesg regarding wlan0:
>
> [29] iwmbtfw: iwmbt_fw_read: open: /usr/local/share/iwmbt-firmware/ibt-17-16-1.sfi: No such file or directory
> [29] iwmbtfw: main: Firmware download failed!
> [29] Autoloading module: ng_ubt
> [29] ifconfig: SIOCIFCREATE2 (wlan0): Device not configured

Neither iwm nor iwlwifi were setup to create wlan0;  whether either of
the drivers was loaded is hard to say.

> [29] ifconfig: interface wlan0 does not exist
> [29] Starting wpa_supplicant.
> [29] /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
> [29] Starting Network: wlan0.
> [29] ifconfig: interface wlan0 does not exist
>
> I then tried to move forward again by manually switching from iwm to
> iwlwifi seeing if I could at least create wlan0 from the iwlwifi0 parent
> device.
> I've tried using devctl as follows:
> devctl detach pci0:0:20:3
> devctl set driver pci0:0:20:3 iwlwifi
>
> Running 'pciconf -vlV | grep -B3 network' did confirm iwlwifi0 was set
> instead of iwm:
>
> 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
>
> I had to attempt several kldunload and kldload actions before iwlwifi
> would show up for 'sysctl net.wlan.devices'.

Is that what the above messages show?  These multiple attempts?


> I then created wlan0 by running:
> ifconfig wlan0 create wlandev iwlwifi0 (which worked).
> ifconfig wlan0 coiuntry NL
> ifconfig wlan0 authmode WPA
>
> At this point I think I ran: sh /etc/rc.d/netif start wlan0 and using
> wpa_cli -i wlan0 status and scan_results to check.
> I did see my ssid listed but wpa_cli reported authentication failures.
> This is where I decided to take a break and come back to it later to
> write this email
>
> I just can't figure out why reverting back to iwm hasn't restored wi-fi
> connectivity.

That indeed is a good question.  Especially if there was a reboot/cold
start in between.  My best guess is up there.


> Sorry for the long winded email.
> I'm sure I performed even more steps but can't put them in the correct
> order.

Okay.

Given your follow-up email.  What's the state been since?  Did you have
any further attempts at removing the loader lines for iwm again?

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?

In theory you should be able to leave both:
 	wlans_iwm0="wlan0"
 	wlans_iwlwifi0="wlan0"

lines in rc.conf so switching between one and the other is easier using
the devmatch_blocklist for iwm or doing it manually using devctl.

I assume you did etcupdate or mergemaster after an update to stable/13
so that this statement lists both iwlwifi and iwm:

         set wifi-driver-regex
                 "(ath|bwi|bwn|ipw|iwlwifi|iwi|iwm|iwn|malo|mwl|otus|ral|rsu|rtw|rtwn|rum|\
                 run|uath|upgt|ural|urtw|wpi|wtap|zyd)[0-9]+";

Because then switching with devctl above should in theory auto-create
the wlan0 with the other driver again (if both wlans_*=".." lines are in
rc.conf).


HTH and still happy to hear more about this in the hope we can lift some
of the confusing weirdness that happened.

Lots of peace,
Bjoern

-- 
Bjoern A. Zeeb                                                     r15:7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?psr5s1os-9qn9-73q7-pr43-p3pp8s01164>