Bug 271182 - iwlwifi with lagg requires network restart after boot
Summary: iwlwifi with lagg requires network restart after boot
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 13.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: Bjoern A. Zeeb
URL:
Keywords: honeypot
Depends on:
Blocks: iwlwifi
  Show dependency treegraph
 
Reported: 2023-05-01 20:19 UTC by js
Modified: 2024-04-23 18:35 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description js 2023-05-01 20:19:18 UTC
In order to add iwlwifi wlan0 device as a lagg port, one must add if_iwlwifi to kld_list in rc.conf.  However, when doing this, the wlan0 device (an AX201 in my case) does not associate with an AP on initial boot.  'service netif restart' after initial boot will result in successful AP association and Wifi connectivity is generally reliable after that.

Relevant rc.conf entries:

kld_list="if_iwlwifi i915kms"
ifconfig_re0="ether c4:75:ab:f3:f9:6c"
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport re0 laggport wlan0 DHCP"


Relevant dmesg output:

wlan0: Ethernet address: c4:75:ab:f3:f9:6c
lo0: link state changed to UP
lagg0: IPv6 addresses on re0 have been removed before adding it as a member to prevent IPv6 address scope violation.
lagg0: link state changed to DOWN
lagg0: IPv6 addresses on wlan0 have been removed before adding it as a member to prevent IPv6 address scope violation.
re0: link state changed to DOWN
iwlwifi0: Microcode SW error detected. Restarting 0x0.
iwlwifi0: Start IWL Error Log Dump:
iwlwifi0: Transport status: 0x0000004B, valid: 6
iwlwifi0: Loaded firmware version: 73.35c0a2c6.0 QuZ-a0-hr-b0-73.ucode
iwlwifi0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
iwlwifi0: 0x000022F0 | trm_hw_status0
iwlwifi0: 0x00000000 | trm_hw_status1
iwlwifi0: 0x004CC0FE | branchlink2
iwlwifi0: 0x004C2512 | interruptlink1
iwlwifi0: 0x004C2512 | interruptlink2
iwlwifi0: 0x00012EB2 | data1
iwlwifi0: 0x00001000 | data2
iwlwifi0: 0x00000000 | data3
iwlwifi0: 0x00000000 | beacon time
iwlwifi0: 0x00188041 | tsf low
iwlwifi0: 0x00000000 | tsf hi
iwlwifi0: 0x00000000 | time gp1
iwlwifi0: 0x0018DB04 | time gp2
iwlwifi0: 0x00000001 | uCode revision type
iwlwifi0: 0x00000049 | uCode version major
iwlwifi0: 0x35C0A2C6 | uCode version minor
iwlwifi0: 0x00000351 | hw version
iwlwifi0: 0x00C89001 | board version
iwlwifi0: 0x8058FC41 | hcmd
iwlwifi0: 0x00020000 | isr0
iwlwifi0: 0x60000000 | isr1
iwlwifi0: 0x08F00002 | isr2
iwlwifi0: 0x00C3000C | isr3
iwlwifi0: 0x00000000 | isr4
iwlwifi0: 0x00000000 | last cmd Id
iwlwifi0: 0x00012EB2 | wait_event
iwlwifi0: 0x000000C4 | l2p_control
iwlwifi0: 0x00000000 | l2p_duration
iwlwifi0: 0x00000007 | l2p_mhvalid
iwlwifi0: 0x00000000 | l2p_addr_match
iwlwifi0: 0x00000009 | lmpm_pmg_sel
iwlwifi0: 0x00000000 | timestamp
iwlwifi0: 0x00002868 | flow_handler
iwlwifi0: Start IWL Error Log Dump:
iwlwifi0: Transport status: 0x0000004B, valid: 7
iwlwifi0: 0x20103020 | ADVANCED_SYSASSERT
iwlwifi0: 0x00000000 | umac branchlink1
iwlwifi0: 0x80455E18 | umac branchlink2
iwlwifi0: 0x01077D90 | umac interruptlink1
iwlwifi0: 0x00000000 | umac interruptlink2
iwlwifi0: 0x00000000 | umac data1
iwlwifi0: 0x00000000 | umac data2
iwlwifi0: 0x000000FF | umac data3
iwlwifi0: 0x00000049 | umac major
iwlwifi0: 0x35C0A2C6 | umac minor
iwlwifi0: 0x0018DAFF | frame pointer
iwlwifi0: 0xC0885EE4 | stack pointer
iwlwifi0: 0x0017012B | last host cmd
iwlwifi0: 0x00000000 | isr status reg
iwlwifi0: IML/ROM dump:
iwlwifi0: 0x00000003 | IML/ROM error/state
iwlwifi0: 0x00005639 | IML/ROM data1
iwlwifi0: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0
iwlwifi0: Fseq Registers:
iwlwifi0: 0x60000000 | FSEQ_ERROR_CODE
iwlwifi0: 0x80290033 | FSEQ_TOP_INIT_VERSION
iwlwifi0: 0x00090006 | FSEQ_CNVIO_INIT_VERSION
iwlwifi0: 0x0000A482 | FSEQ_OTP_VERSION
iwlwifi0: 0x00000003 | FSEQ_TOP_CONTENT_VERSION
iwlwifi0: 0x4552414E | FSEQ_ALIVE_TOKEN
iwlwifi0: 0x20000302 | FSEQ_CNVI_ID
iwlwifi0: 0x01300504 | FSEQ_CNVR_ID
iwlwifi0: 0x20000302 | CNVI_AUX_MISC_CHIP
iwlwifi0: 0x01300504 | CNVR_AUX_MISC_CHIP
iwlwifi0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
iwlwifi0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
iwlwifi0: WRT: Collecting data: ini trigger 4 fired (delay=0ms).
iwlwifi0: FW error in SYNC CMD BINDING_CONTEXT_CMD
#0 0xffffffff80bbd3f3 at linux_dump_stack+0x23
#1 0xffffffff82b5c890 at iwl_trans_txq_send_hcmd+0x4a0
#2 0xffffffff82b03f8e at iwl_trans_send_cmd+0xce
#3 0xffffffff82b43a8b at iwl_mvm_send_cmd_status+0x2b
#4 0xffffffff82b43b9f at iwl_mvm_send_cmd_pdu_status+0x4f
#5 0xffffffff82b0cb06 at iwl_mvm_binding_update+0x1f6
#6 0xffffffff82b1e2ba at __iwl_mvm_assign_vif_chanctx+0x7a
#7 0xffffffff82b1aee6 at iwl_mvm_assign_vif_chanctx+0x66
#8 0xffffffff80bb78f7 at lkpi_80211_mo_assign_vif_chanctx+0x27
#9 0xffffffff80bb0f5d at lkpi_sta_scan_to_auth+0x48d
#10 0xffffffff80bb70a8 at lkpi_iv_newstate+0x1b8
#11 0xffffffff80a82b7a at ieee80211_newstate_cb+0x17a
#12 0xffffffff8094d091 at taskqueue_run_locked+0x181
#13 0xffffffff8094e353 at taskqueue_thread_loop+0xc3
#14 0xffffffff808aab2d at fork_exit+0x7d
#15 0xffffffff80cfeb0e at fork_trampoline+0xe
iwlwifi0: Failed to send binding (action:1): -5
iwlwifi0: PHY ctxt cmd error. ret=-5
iwlwifi0: lkpi_iv_newstate: error -5 during state transition 1 (SCAN) -> 2 (AUTH)
iwlwifi0: No queue was found. Dropping TX
iwlwifi0: Failed to trigger RX queues sync (-5)
WARNING !mvmvif->phy_ctxt failed at /usr/src/sys/contrib/dev/iwlwifi/mvm/mac80211.c:3158
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
________________________________________________________


after service netif restart:
________________________________________________________
lo0: link state changed to DOWN
Removing inactive MAC 0xfffffe00c8725c9eM/2
wlan0: Ethernet address: c4:75:ab:f3:f9:6c
lo0: link state changed to UP
lagg0: link state changed to DOWN
lagg0: IPv6 addresses on re0 have been removed before adding it as a member to prevent IPv6 address scope violation.
lagg0: IPv6 addresses on wlan0 have been removed before adding it as a member to prevent IPv6 address scope violation.
wlan0: link state changed to UP
lagg0: link state changed to UP
Comment 1 js 2023-08-20 18:51:23 UTC
Has anyone been able to take a look at this?  I'm happy to do more testing if there's anything else I should try.
Comment 2 js 2023-09-24 21:56:21 UTC
I upgraded to latest stable commit today (stable/13-n256387-7af7a0d1b14 AMD64 amd64) and re-tested.  Everything is now working as expected.  Thank you!
Comment 3 Bjoern A. Zeeb freebsd_committer freebsd_triage 2023-09-25 10:56:05 UTC
Can you please report back in a week or so if still everything is fine.  From my side nothing has changed since the last reports (possibly not from you) came in, so I am suspicious as to what has changed to make it work now...


[ please keep PR open ]
Comment 4 js 2023-09-26 15:56:22 UTC
When I ran mergemaster yesterday, I happened to notice the following change:
https://github.com/freebsd/freebsd-src/commit/052211e08c0e227277d0c4dc603bba2253eb3d73

Could this have been the problem, and removing the wpa_poststart function fixed it?
Comment 5 Bjoern A. Zeeb freebsd_committer freebsd_triage 2023-10-25 21:24:22 UTC
Also for this one.  Any more firmware crashes?

I am asking as I might merge the code from 15/14 to 13 as well and would love to have a "defined state" before that.
Comment 6 js 2023-10-27 02:01:17 UTC
(In reply to Bjoern A. Zeeb from comment #5)
This problem has not happened again.  iwlwifi on 13-STABLE has been rock solid for me over the past month.
Comment 7 Bjoern A. Zeeb freebsd_committer freebsd_triage 2023-10-28 18:02:37 UTC
Thanks for reporting back.  I'll close the issue then.
Comment 8 IreneGagnon 2023-12-05 08:07:54 UTC
MARKED AS SPAM
Comment 9 Byrd Franklin 2023-12-13 02:16:47 UTC
MARKED AS SPAM
Comment 10 Miakso LInas 2024-03-25 06:53:23 UTC
MARKED AS SPAM