iwlwifi test on X1 Yoga: “MicrocodeSW error”

From: Mathias Picker <Mathias.Picker_at_virtual-earth.de>
Date: Fri, 01 Apr 2022 14:24:26 UTC
Hi all,

just as a testing point, I rebuild -stable yesterday and just 
tried iwlwifi for the first time on an Lenovo X1 Yoga, and got a 
“Microcode SW error“

I had to manually load if_iwlwifi, without it I got no wlan0, 
if_iwm was automatically loaded first I think.

I’m switching back to iwm, just wanted to know if it is working 
already. If someone needs more info just ask.

This is just an information point, I do not need iwlwifi, iwm 
works for now.

Cheers, Mathias

from /etc/rc.conf

kld_list="${kld_list} /boot/modules/i915kms.ko if_iwlwifi"
wlans_iwlwifi0="wlan0"
create_args_wlan0="wlanaddr 48:2a:e3:1a:da:58 country DE regdomain 
ETSI"
ifconfig_wlan0="up WPA"
ifconfig_em0="up"
ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 
DHCP"
ifconfig_lagg0_ipv6="inet6 accept_rtadv"

pciconf sees this:

iwlwifi0@pci0:2:0:0:    class=0x028000 rev=0x78 hdr=0x00 
vendor=0x8086 device=0x24fd subvendor=0x8086 subdevice=0x0010
    vendor     = 'Intel Corporation'
    device     = 'Wireless 8265 / 8275'
    class      = network

dmesg shows:

[…]
iwlwifi0: <iwlwifi> mem 0xe0400000-0xe0401fff at device 0.0 on 
pci1
iwlwifi0: successfully loaded firmware image 
'iwlwifi-8265-36.ucode'
iwlwifi0: loaded firmware version 36.ca7b901d.0 8265-36.ucode 
op_mode iwlmvm
iwlwifi0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
iwlwifi0: base HW address: 18:1d:ea:16:cc:77, OTP minor version: 
0x0
wlan0: Ethernet address: 48:2a:e3:1a:da:58
[…]
lo0: link state changed to UP
lagg0: link state changed to DOWN
iwlwifi0: Microcode SW error detected.  Restarting 0x2000000.
iwlwifi0: Start IWL Error Log Dump:
iwlwifi0: Transport status: 0x0000004B, valid: 6
iwlwifi0: Loaded firmware version: 36.ca7b901d.0 8265-36.ucode
iwlwifi0: 0x0000340A | ADVANCED_SYSASSERT          
iwlwifi0: 0x000002B0 | trm_hw_status0
iwlwifi0: 0x00000000 | trm_hw_status1
iwlwifi0: 0x00024A8C | branchlink2
iwlwifi0: 0x0003AC1E | interruptlink1
iwlwifi0: 0x00000000 | interruptlink2
iwlwifi0: 0x00000000 | data1
iwlwifi0: 0xDEADBEEF | data2
iwlwifi0: 0xDEADBEEF | data3
iwlwifi0: 0x00000000 | beacon time
iwlwifi0: 0x00272265 | tsf low
iwlwifi0: 0x00000000 | tsf hi
iwlwifi0: 0x00000000 | time gp1
iwlwifi0: 0x00272266 | time gp2
iwlwifi0: 0x00000001 | uCode revision type
iwlwifi0: 0x00000024 | uCode version major
iwlwifi0: 0xCA7B901D | uCode version minor
iwlwifi0: 0x00000230 | hw version
iwlwifi0: 0x18489000 | board version
iwlwifi0: 0x0024012B | hcmd
iwlwifi0: 0x00022080 | isr0
iwlwifi0: 0x00000000 | isr1
iwlwifi0: 0x08201802 | isr2
iwlwifi0: 0x00417CC0 | isr3
iwlwifi0: 0x00000000 | isr4
iwlwifi0: 0x00230108 | last cmd Id
iwlwifi0: 0x00000000 | wait_event
iwlwifi0: 0x00000080 | l2p_control
iwlwifi0: 0x00010000 | l2p_duration
iwlwifi0: 0x0000003F | l2p_mhvalid
iwlwifi0: 0x00000000 | l2p_addr_match
iwlwifi0: 0x0000000D | lmpm_pmg_sel
iwlwifi0: 0x10032209 | timestamp
iwlwifi0: 0x00003840 | flow_handler
iwlwifi0: Start IWL Error Log Dump:
iwlwifi0: Transport status: 0x0000004B, valid: 7
iwlwifi0: 0x00000070 | NMI_INTERRUPT_LMAC_FATAL
iwlwifi0: 0x00000000 | umac branchlink1
iwlwifi0: 0xC008694C | umac branchlink2
iwlwifi0: 0xC0083B0C | umac interruptlink1
iwlwifi0: 0xC0083B0C | umac interruptlink2
iwlwifi0: 0x00000800 | umac data1
iwlwifi0: 0xC0083B0C | umac data2
iwlwifi0: 0xDEADBEEF | umac data3
iwlwifi0: 0x00000024 | umac major
iwlwifi0: 0xCA7B901D | umac minor
iwlwifi0: 0xC088628C | frame pointer
iwlwifi0: 0xC088628C | stack pointer
iwlwifi0: 0x0024012B | last host cmd
iwlwifi0: 0x00000000 | isr status reg
iwlwifi0: IML/ROM dump:
iwlwifi0: 0x00000000 | IML/ROM error/state
iwlwifi0: 0x00000003 | IML/ROM data1
iwlwifi0: Fseq Registers:
iwlwifi0: 0x721D49D3 | FSEQ_ERROR_CODE
iwlwifi0: 0x72B445E5 | FSEQ_TOP_INIT_VERSION
iwlwifi0: 0x9A584885 | FSEQ_CNVIO_INIT_VERSION
iwlwifi0: 0x0000A10B | FSEQ_OTP_VERSION
iwlwifi0: 0x2364E64F | FSEQ_TOP_CONTENT_VERSION
iwlwifi0: 0x7B87BBBF | FSEQ_ALIVE_TOKEN
iwlwifi0: 0x2604A0E7 | FSEQ_CNVI_ID
iwlwifi0: 0xDCD5FBDF | FSEQ_CNVR_ID
iwlwifi0: 0x00000010 | CNVI_AUX_MISC_CHIP
iwlwifi0: 0x0BADCAFE | CNVR_AUX_MISC_CHIP
iwlwifi0: 0x0BADCAFE | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
iwlwifi0: 0x0BADCAFE | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
iwlwifi0: Collecting data: trigger 2 fired.
iwlwifi0: FW error in SYNC CMD BINDING_CONTEXT_CMD
#0 0xffffffff80e6e793 at linux_dump_stack+0x23
#1 0xffffffff83f9c164 at iwl_trans_txq_send_hcmd+0x414
#2 0xffffffff83f4329e at iwl_trans_send_cmd+0xce
#3 0xffffffff83f8306b at iwl_mvm_send_cmd_status+0x2b
#4 0xffffffff83f8317f at iwl_mvm_send_cmd_pdu_status+0x4f
#5 0xffffffff83f4beb9 at iwl_mvm_binding_update+0x269
#6 0xffffffff83f5de1b at __iwl_mvm_assign_vif_chanctx+0x7b
#7 0xffffffff83f5a466 at iwl_mvm_assign_vif_chanctx+0x66
#8 0xffffffff80e68f32 at lkpi_80211_mo_assign_vif_chanctx+0x22
#9 0xffffffff80e63c47 at lkpi_sta_scan_to_auth+0x3d7
#10 0xffffffff80e68758 at lkpi_iv_newstate+0x1b8
#11 0xffffffff80dade4a at ieee80211_newstate_cb+0x17a
#12 0xffffffff80c8bcb1 at taskqueue_run_locked+0x181
#13 0xffffffff80c8cfb2 at taskqueue_thread_loop+0xc2
#14 0xffffffff80be62fd at fork_exit+0x7d
#15 0xffffffff8109ca1e 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: iwl_trans_wait_tx_queues_empty bad state = 0
WARNING !mvmvif->phy_ctxt failed at 
/usr/src/sys/contrib/dev/iwlwifi/mvm/mac80211.c:3391
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5


-- 
Mathias Picker                        
Geschäftsführer
Mathias.Picker@virtual-earth.de

virtual earth Gesellschaft für Wissens re/prä sentation mbH
http://www.virtual-earth.de/           HRB126870
support@virtual-earth.de               Westendstr. 142
089 / 1250 3943