startup failure on AX200 iwlwifi at boot

From: Kevin Oberman <rkoberman_at_gmail.com>
Date: Sat, 22 Jan 2022 23:04:23 UTC
When I boot up the system, the wlan0 is  never created. AX200 is detected
but it appears that the microcode load crashes. After the boot completes I
can login as root and "service netif restart wlan0" starts the network
correctly.

System is amd64 running stable/13-n248937-3c6b6246f2f.

Here are the logged errors when the driver loads from kld_list:
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Microcode SW error detected.
Restarting 0x0.
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Start IWL Error Log Dump:
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Transport status: 0x0000004B,
valid: 6
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Loaded firmware version:
67.8f59b80b.0 cc-a0-67.ucode
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000071 |
NMI_INTERRUPT_UMAC_FATAL
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x000022F0 | trm_hw_status0
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | trm_hw_status1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x004FAD06 | branchlink2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x004F15FA | interruptlink1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x004F15FA | interruptlink2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00005AC4 | data1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00001000 | data2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | data3
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x6200E305 | beacon time
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x5749FCFF | tsf low
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x000000C8 | tsf hi
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | time gp1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x52245A1E | time gp2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000001 | uCode revision type
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000043 | uCode version major
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x8F59B80B | uCode version minor
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000340 | hw version
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00489000 | board version
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00CF0103 | hcmd
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00020000 | isr0
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | isr1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x08F00002 | isr2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00C3400C | isr3
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | isr4
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00CF0103 | last cmd Id
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00005AC4 | wait_event
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | l2p_control
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000020 | l2p_duration
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x0000003F | l2p_mhvalid
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000080 | l2p_addr_match
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x0000000B | lmpm_pmg_sel
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | timestamp
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00002868 | flow_handler
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Start IWL Error Log Dump:
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Transport status: 0x0000004B,
valid: 7
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x20101034 | ADVANCED_SYSASSERT
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | umac branchlink1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x80455E02 | umac branchlink2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0xC00811A4 | umac interruptlink1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | umac interruptlink2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000005 | umac data1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | umac data2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0xDEADBEEF | umac data3
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000043 | umac major
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x8F59B80B | umac minor
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x52245A18 | frame pointer
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0xC0885F0C | stack pointer
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00D10305 | last host cmd
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000000 | isr status reg
Jan 21 12:15:00 ptavv kernel: iwlwifi0: IML/ROM dump:
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000003 | IML/ROM error/state
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x0000607E | IML/ROM data1
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Fseq Registers:
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x60000000 | FSEQ_ERROR_CODE
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x80290021 | FSEQ_TOP_INIT_VERSION
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x0000A503 | FSEQ_OTP_VERSION
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x80000003 |
FSEQ_TOP_CONTENT_VERSION
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x4552414E | FSEQ_ALIVE_TOKEN
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00100530 | FSEQ_CNVI_ID
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000532 | FSEQ_CNVR_ID
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00100530 | CNVI_AUX_MISC_CHIP
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x00000532 | CNVR_AUX_MISC_CHIP
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x05B0905B |
CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
Jan 21 12:15:00 ptavv kernel: iwlwifi0: 0x0000025B |
CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
Jan 21 12:15:00 ptavv kernel: iwlwifi0: WRT: Collecting data: ini trigger 4
fired (delay=0ms).
Jan 21 12:15:00 ptavv kernel: iwlwifi0: FW error in SYNC CMD ADD_STA
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Failed to send binding (action:3):
-5
Jan 21 12:15:00 ptavv kernel: iwlwifi0: PHY ctxt cmd error. ret=-5
Jan 21 12:15:00 ptavv kernel: iwlwifi0: lkpi_iv_newstate: error 37 during
state transition 5 (RUN) -> 0 (INIT): iv_newstate already ha$
Jan 21 12:15:00 ptavv kernel: iwlwifi0: <iwlwifi> mem 0xd1300000-0xd1303fff
at device 0.0 on pci2
Jan 21 12:15:00 ptavv kernel: iwlwifi0: successfully loaded firmware image
'iwlwifi-cc-a0-67.ucode'
Jan 21 12:15:00 ptavv kernel: iwlwifi0: api flags index 2 larger than
supported by driver
Jan 21 12:15:00 ptavv kernel: iwlwifi0: TLV_FW_FSEQ_VERSION: FSEQ Version:
89.3.35.37
Jan 21 12:15:00 ptavv kernel: iwlwifi0: loaded firmware version
67.8f59b80b.0 cc-a0-67.ucode op_mode iwlmvm
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Detected Intel(R) Wi-Fi 6 AX200
160MHz, REV=0x340
Jan 21 12:15:00 ptavv kernel: iwlwifi0: Detected RF HR B3, rfid=0x10a100
Jan 21 12:15:00 ptavv kernel: iwlwifi0: base HW address: 6c:6a:77:ed:ce:d9
-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683