You are not logged in.

#1 2024-01-20 08:53:09

glk0
Member
Registered: 2024-01-05
Posts: 23

[HACK-AROUND] Wifi randomly stops working.

The wifi of my old Lenovo Thinkpad X220 randomly stops working since the last update. It also won't come back after the device awakes from sleep. If I try to reboot the laptop, the problem persists but it disappears if I shutdown the laptop and boot it some time later.

Here is the relevant output of `lspci -vvv`

03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)
	Subsystem: Intel Corporation Centrino Advanced-N 6205 (802.11a/b/g/n)
	!!! Unknown header type 7f
	Interrupt: pin ? routed to IRQ 29
	Region 0: Memory at f2400000 (64-bit, non-prefetchable) [size=8K]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

and the version of linux and llinux-firmware:

    - linux-firmware : 20240115.9b6d0b08-1
    - linux  : 6.7.arch3-1

And also the output of  dmesg

[12263.224680] ------------[ cut here ]------------
[12263.224685] Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
[12263.224710] WARNING: CPU: 1 PID: 7507 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:2225 __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi]
[12263.224747] Modules linked in: usbhid bnep snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm algif_aead crypto_null des3_ede_x86_64 cbc des_generic libdes algif_skcipher cmac md4 algif_hash af_alg vfat fat btusb uvcvideo iwldvm btrtl btintel btbcm btmtk videobuf2_vmalloc bluetooth uvc mac80211 ecdh_generic videobuf2_memops videobuf2_v4l2 videodev cdc_mbim videobuf2_common libarc4 intel_rapl_msr intel_rapl_common cdc_ncm cdc_ether mc usbnet cdc_wdm x86_pkg_temp_thermal intel_powerclamp cdc_acm coretemp mii iwlwifi snd_hda_codec_hdmi snd_ctl_led snd_hda_codec_conexant crct10dif_pclmul crc32_pclmul snd_hda_codec_generic polyval_clmulni polyval_generic joydev mousedev gf128mul ghash_clmulni_intel mei_hdcp mei_wdt iTCO_wdt sha512_ssse3 cfg80211 sha256_ssse3 sha1_ssse3 aesni_intel mei_pxp snd_hda_intel at24 intel_pmc_bxt iTCO_vendor_support snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec mei_me snd_hda_core mei i2c_i801 e1000e snd_hwdep snd_pcm i2c_smbus snd_timer lpc_ich thinkpad_acpi ledtrig_audio crypto_simd cryptd
[12263.224802]  rapl intel_cstate intel_uncore platform_profile rfkill snd psmouse soundcore think_lmi firmware_attributes_class wmi_bmof mac_hid pcspkr pkcs8_key_parser crypto_user dm_mod fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 i915 i2c_algo_bit drm_buddy sdhci_pci serio_raw atkbd ttm cqhci libps2 vivaldi_fmap sdhci intel_gtt crc32c_intel mmc_core drm_display_helper i8042 cec video serio wmi
[12263.224831] CPU: 1 PID: 7507 Comm: kworker/u16:1 Not tainted 6.7.0-arch3-1 #1 29ada86f174bb9983ea57568622d66509982ed7e
[12263.224834] Hardware name: LENOVO 42915CG/42915CG, BIOS 8DET51WW (1.21 ) 08/02/2011
[12263.224836] Workqueue: events_unbound cfg80211_wiphy_work [cfg80211]
[12263.224900] RIP: 0010:__iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi]
[12263.224925] Code: e8 75 7e 68 f9 31 c0 eb 9b 31 f6 48 89 df e8 07 b6 ff ff eb e8 89 c6 48 c7 c7 e8 5c 1a c1 c6 05 55 27 02 00 01 e8 f0 b2 96 f8 <0f> 0b eb a7 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
[12263.224927] RSP: 0018:ffffa9530919fc08 EFLAGS: 00010282
[12263.224929] RAX: 0000000000000000 RBX: ffff966208c44028 RCX: 0000000000000027
[12263.224931] RDX: ffff9663162616c8 RSI: 0000000000000001 RDI: ffff9663162616c0
[12263.224932] RBP: 00000000ffffffff R08: 0000000000000000 R09: ffffa9530919fa90
[12263.224933] R10: 0000000000000003 R11: ffffffffbb8ca768 R12: 0000000000000001
[12263.224935] R13: 0000000000000011 R14: ffff966208c475ec R15: 0000000000000002
[12263.224936] FS:  0000000000000000(0000) GS:ffff966316240000(0000) knlGS:0000000000000000
[12263.224938] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[12263.224939] CR2: 00007e932f4c4000 CR3: 000000017fb62004 CR4: 00000000000606f0
[12263.224941] Call Trace:
[12263.224944]  <TASK>
[12263.224945]  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
[12263.224968]  ? __warn+0x81/0x130
[12263.224974]  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
[12263.225007]  ? report_bug+0x171/0x1a0
[12263.225013]  ? prb_read_valid+0x1b/0x30
[12263.225018]  ? handle_bug+0x3c/0x80
[12263.225022]  ? exc_invalid_op+0x17/0x70
[12263.225026]  ? asm_exc_invalid_op+0x1a/0x20
[12263.225031]  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
[12263.225067]  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
[12263.225091]  iwl_trans_pcie_grab_nic_access+0x1a/0x40 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
[12263.225113]  iwl_write_prph_delay+0x2a/0x80 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
[12263.225133]  iwl_trans_pcie_txq_disable+0xbb/0x130 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
[12263.225155]  iwlagn_tx_agg_stop+0x14c/0x2e0 [iwldvm 12984017dfffee7deac971b42af67b97f52c0d09]
[12263.225170]  iwlagn_mac_ampdu_action+0x269/0x310 [iwldvm 12984017dfffee7deac971b42af67b97f52c0d09]
[12263.225182]  drv_ampdu_action+0xd6/0x190 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12263.225248]  __ieee80211_stop_tx_ba_session+0x169/0x230 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12263.225304]  ieee80211_ba_session_work+0x2e5/0x310 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12263.225357]  ? try_to_wake_up+0x3b9/0x660
[12263.225361]  cfg80211_wiphy_work+0xae/0xe0 [cfg80211 9a6ab623b5a8441ed5e6fbe596b036d1a2ec17fd]
[12263.225414]  process_one_work+0x174/0x340
[12263.225417]  worker_thread+0x27b/0x3a0
[12263.225420]  ? __pfx_worker_thread+0x10/0x10
[12263.225422]  kthread+0xe8/0x120
[12263.225425]  ? __pfx_kthread+0x10/0x10
[12263.225428]  ret_from_fork+0x34/0x50
[12263.225431]  ? __pfx_kthread+0x10/0x10
[12263.225434]  ret_from_fork_asm+0x1b/0x30
[12263.225438]  </TASK>
[12263.225439] ---[ end trace 0000000000000000 ]---
[12263.225444] iwlwifi 0000:03:00.0: iwlwifi transaction failed, dumping registers
[12263.225446] iwlwifi 0000:03:00.0: iwlwifi device config registers:
[12263.225531] iwlwifi 0000:03:00.0: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225534] iwlwifi 0000:03:00.0: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225536] iwlwifi 0000:03:00.0: 00000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225538] iwlwifi 0000:03:00.0: 00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225540] iwlwifi 0000:03:00.0: 00000080: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225541] iwlwifi 0000:03:00.0: 000000a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225543] iwlwifi 0000:03:00.0: 000000c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225545] iwlwifi 0000:03:00.0: 000000e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225546] iwlwifi 0000:03:00.0: 00000100: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225548] iwlwifi 0000:03:00.0: 00000120: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225550] iwlwifi 0000:03:00.0: 00000140: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225551] iwlwifi 0000:03:00.0: iwlwifi device memory mapped registers:
[12263.225566] iwlwifi 0000:03:00.0: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225568] iwlwifi 0000:03:00.0: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[12263.225938] iwlwifi 0000:03:00.0: iwlwifi parent port (0000:00:1c.1) config registers:
[12263.226052] iwlwifi 0000:00:1c.1: 00000000: 1c128086 00100007 060400b4 00810010 00000000 00000000 00030300 200000f0
[12263.226054] iwlwifi 0000:00:1c.1: 00000020: f240f240 0001fff1 00000000 00000000 00000000 00000040 00000000 000202ff
[12263.226056] iwlwifi 0000:00:1c.1: 00000040: 01428010 00008000 00110000 02123c12 50110042 000cb200 01080000 00000000
[12263.226058] iwlwifi 0000:00:1c.1: 00000060: 00000000 00000016 00000000 00000000 00010002 00000000 00000000 00000000
[12263.226060] iwlwifi 0000:00:1c.1: 00000080: 00009005 00000000 00000000 00000000 0000a00d 21da17aa 00000000 00000000
[12263.226061] iwlwifi 0000:00:1c.1: 000000a0: c8020001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226063] iwlwifi 0000:00:1c.1: 000000c0: 00000000 00000000 00000000 00000000 01000000 00000b02 81118000 00000000
[12263.226065] iwlwifi 0000:00:1c.1: 000000e0: 00000300 00000000 00000001 00000000 00000000 00000000 08060f87 00000000
[12263.226067] iwlwifi 0000:00:1c.1: 00000100: 00000000 00000000 00000000 00060011 000011c1 00002000 00000000 00000000
[12263.226068] iwlwifi 0000:00:1c.1: 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226070] iwlwifi 0000:00:1c.1: 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226071] iwlwifi 0000:00:1c.1: 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226073] iwlwifi 0000:00:1c.1: 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226075] iwlwifi 0000:00:1c.1: 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226076] iwlwifi 0000:00:1c.1: 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226078] iwlwifi 0000:00:1c.1: 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[12263.226079] iwlwifi 0000:00:1c.1: 00000200: 00000000 00000000 00000000
[12266.130471] iwlwifi 0000:03:00.0: Error sending REPLY_ADD_STA: time out after 2000ms.
[12266.130502] iwlwifi 0000:03:00.0: Current CMD queue read_ptr 109 write_ptr 110
[12266.160392] iwlwifi 0000:03:00.0: Loaded firmware version: 18.168.6.1 6000g2a-6.ucode
[12266.177703] iwlwifi 0000:03:00.0: 0x00000000 | OK                          
[12266.177708] iwlwifi 0000:03:00.0: 0x00000000 | uPc
[12266.177710] iwlwifi 0000:03:00.0: 0x00000000 | branchlink1
[12266.177712] iwlwifi 0000:03:00.0: 0x00000000 | branchlink2
[12266.177714] iwlwifi 0000:03:00.0: 0x00000000 | interruptlink1
[12266.177716] iwlwifi 0000:03:00.0: 0x00000000 | interruptlink2
[12266.177717] iwlwifi 0000:03:00.0: 0x00000000 | data1
[12266.177719] iwlwifi 0000:03:00.0: 0x00000000 | data2
[12266.177721] iwlwifi 0000:03:00.0: 0x00000000 | line
[12266.177722] iwlwifi 0000:03:00.0: 0x00000000 | beacon time
[12266.177724] iwlwifi 0000:03:00.0: 0x00000000 | tsf low
[12266.177726] iwlwifi 0000:03:00.0: 0x00000000 | tsf hi
[12266.177728] iwlwifi 0000:03:00.0: 0x00000000 | time gp1
[12266.177729] iwlwifi 0000:03:00.0: 0x00000000 | time gp2
[12266.177731] iwlwifi 0000:03:00.0: 0x00000000 | time gp3
[12266.177733] iwlwifi 0000:03:00.0: 0x00000000 | uCode version
[12266.177734] iwlwifi 0000:03:00.0: 0x00000000 | hw version
[12266.177736] iwlwifi 0000:03:00.0: 0x00000000 | board version
[12266.177738] iwlwifi 0000:03:00.0: 0x00000000 | hcmd
[12266.177739] iwlwifi 0000:03:00.0: 0x00000000 | isr0
[12266.177741] iwlwifi 0000:03:00.0: 0x00000000 | isr1
[12266.177743] iwlwifi 0000:03:00.0: 0x00000000 | isr2
[12266.177744] iwlwifi 0000:03:00.0: 0x00000000 | isr3
[12266.177746] iwlwifi 0000:03:00.0: 0x00000000 | isr4
[12266.177748] iwlwifi 0000:03:00.0: 0x00000000 | isr_pref
[12266.177749] iwlwifi 0000:03:00.0: 0x00000000 | wait_event
[12266.177751] iwlwifi 0000:03:00.0: 0x00000000 | l2p_control
[12266.177753] iwlwifi 0000:03:00.0: 0x00000000 | l2p_duration
[12266.177754] iwlwifi 0000:03:00.0: 0x00000000 | l2p_mhvalid
[12266.177756] iwlwifi 0000:03:00.0: 0x00000000 | l2p_addr_match
[12266.177758] iwlwifi 0000:03:00.0: 0x00000000 | lmpm_pmg_sel
[12266.177759] iwlwifi 0000:03:00.0: 0x00000000 | timestamp
[12266.177761] iwlwifi 0000:03:00.0: 0x00000000 | flow_handler
[12266.246833] iwlwifi 0000:03:00.0: Log capacity -1515870811 is bogus, limit to 1 entries
[12266.246837] iwlwifi 0000:03:00.0: Log write index -1515870811 is bogus, limit to 1
[12266.246839] iwlwifi 0000:03:00.0: Start IWL Event Log Dump: display last 1 entries
[12266.263940] wlan0: HW problem - can not stop rx aggregation for 88:89:2f:eb:24:10 tid 0
[12269.708795] ieee80211 phy0: Hardware restart was requested
[12269.708894] iwlwifi 0000:03:00.0: Fw not loaded - dropping CMD: 18
[12269.708900] wlan0: HW problem - can not stop rx aggregation for 88:89:2f:eb:24:10 tid 1
[12269.708930] iwlwifi 0000:03:00.0: iwl_trans_wait_tx_queues_empty bad state = 0
[12269.709059] iwlwifi 0000:03:00.0: iwl_trans_wait_tx_queues_empty bad state = 0
[12269.934194] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[12270.520167] iwlwifi 0000:03:00.0: Could not load the [0] uCode section
[12272.675592] iwlwifi 0000:03:00.0: Failed to run INIT ucode: -5
[12272.675623] iwlwifi 0000:03:00.0: Unable to initialize device.
[12272.675629] ------------[ cut here ]------------
[12272.675632] Hardware became unavailable during restart.
[12272.675684] WARNING: CPU: 2 PID: 7437 at net/mac80211/util.c:2595 ieee80211_reconfig+0xce/0x14e0 [mac80211]
[12272.675768] Modules linked in: usbhid bnep snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm algif_aead crypto_null des3_ede_x86_64 cbc des_generic libdes algif_skcipher cmac md4 algif_hash af_alg vfat fat btusb uvcvideo iwldvm btrtl btintel btbcm btmtk videobuf2_vmalloc bluetooth uvc mac80211 ecdh_generic videobuf2_memops videobuf2_v4l2 videodev cdc_mbim videobuf2_common libarc4 intel_rapl_msr intel_rapl_common cdc_ncm cdc_ether mc usbnet cdc_wdm x86_pkg_temp_thermal intel_powerclamp cdc_acm coretemp mii iwlwifi snd_hda_codec_hdmi snd_ctl_led snd_hda_codec_conexant crct10dif_pclmul crc32_pclmul snd_hda_codec_generic polyval_clmulni polyval_generic joydev mousedev gf128mul ghash_clmulni_intel mei_hdcp mei_wdt iTCO_wdt sha512_ssse3 cfg80211 sha256_ssse3 sha1_ssse3 aesni_intel mei_pxp snd_hda_intel at24 intel_pmc_bxt iTCO_vendor_support snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec mei_me snd_hda_core mei i2c_i801 e1000e snd_hwdep snd_pcm i2c_smbus snd_timer lpc_ich thinkpad_acpi ledtrig_audio crypto_simd cryptd
[12272.675821]  rapl intel_cstate intel_uncore platform_profile rfkill snd psmouse soundcore think_lmi firmware_attributes_class wmi_bmof mac_hid pcspkr pkcs8_key_parser crypto_user dm_mod fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 i915 i2c_algo_bit drm_buddy sdhci_pci serio_raw atkbd ttm cqhci libps2 vivaldi_fmap sdhci intel_gtt crc32c_intel mmc_core drm_display_helper i8042 cec video serio wmi
[12272.675849] CPU: 2 PID: 7437 Comm: kworker/2:0 Tainted: G        W          6.7.0-arch3-1 #1 29ada86f174bb9983ea57568622d66509982ed7e
[12272.675853] Hardware name: LENOVO 42915CG/42915CG, BIOS 8DET51WW (1.21 ) 08/02/2011
[12272.675854] Workqueue: events_freezable ieee80211_restart_work [mac80211]
[12272.675899] RIP: 0010:ieee80211_reconfig+0xce/0x14e0 [mac80211]
[12272.675956] Code: c0 0f 85 9d 01 00 00 c6 87 85 05 00 00 00 e8 49 8b fb ff 41 89 c4 85 c0 0f 84 d9 02 00 00 48 c7 c7 20 67 44 c1 e8 c2 93 75 f8 <0f> 0b 4c 89 f7 e8 b8 c1 ff ff e9 3b 01 00 00 c6 44 24 17 00 41 8b
[12272.675957] RSP: 0018:ffffa953088bfd68 EFLAGS: 00010282
[12272.675959] RAX: 0000000000000000 RBX: ffff966207b79aa0 RCX: 0000000000000027
[12272.675961] RDX: ffff9663162a16c8 RSI: 0000000000000001 RDI: ffff9663162a16c0
[12272.675962] RBP: ffff966207b79e88 R08: 0000000000000000 R09: ffffa953088bfbf0
[12272.675963] R10: 0000000000000003 R11: ffffffffbb8ca768 R12: 00000000fffffffb
[12272.675964] R13: ffff966207b78900 R14: ffff966207b78900 R15: ffff966207b79e90
[12272.675965] FS:  0000000000000000(0000) GS:ffff966316280000(0000) knlGS:0000000000000000
[12272.675967] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[12272.675968] CR2: 00001a9400875000 CR3: 00000001d3a20001 CR4: 00000000000606f0
[12272.675969] Call Trace:
[12272.675972]  <TASK>
[12272.675974]  ? ieee80211_reconfig+0xce/0x14e0 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.676030]  ? __warn+0x81/0x130
[12272.676035]  ? ieee80211_reconfig+0xce/0x14e0 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.676092]  ? report_bug+0x171/0x1a0
[12272.676097]  ? prb_read_valid+0x1b/0x30
[12272.676101]  ? handle_bug+0x3c/0x80
[12272.676104]  ? exc_invalid_op+0x17/0x70
[12272.676107]  ? asm_exc_invalid_op+0x1a/0x20
[12272.676110]  ? ieee80211_reconfig+0xce/0x14e0 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.676166]  ? ieee80211_reconfig+0xce/0x14e0 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.676222]  ? synchronize_rcu_expedited+0x356/0x430
[12272.676225]  ? __pfx_wait_rcu_exp_gp+0x10/0x10
[12272.676228]  ? __pfx_autoremove_wake_function+0x10/0x10
[12272.676231]  ? __timer_delete_sync+0x7d/0xe0
[12272.676236]  ieee80211_restart_work+0xe2/0x150 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.676279]  process_one_work+0x174/0x340
[12272.676283]  worker_thread+0x27b/0x3a0
[12272.676285]  ? __pfx_worker_thread+0x10/0x10
[12272.676287]  kthread+0xe8/0x120
[12272.676290]  ? __pfx_kthread+0x10/0x10
[12272.676293]  ret_from_fork+0x34/0x50
[12272.676296]  ? __pfx_kthread+0x10/0x10
[12272.676298]  ret_from_fork_asm+0x1b/0x30
[12272.676302]  </TASK>
[12272.676303] ---[ end trace 0000000000000000 ]---
[12272.690527] ------------[ cut here ]------------
[12272.690533] WARNING: CPU: 2 PID: 7437 at net/mac80211/driver-ops.c:41 drv_stop+0xf5/0x100 [mac80211]
[12272.690597] Modules linked in: usbhid bnep snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm algif_aead crypto_null des3_ede_x86_64 cbc des_generic libdes algif_skcipher cmac md4 algif_hash af_alg vfat fat btusb uvcvideo iwldvm btrtl btintel btbcm btmtk videobuf2_vmalloc bluetooth uvc mac80211 ecdh_generic videobuf2_memops videobuf2_v4l2 videodev cdc_mbim videobuf2_common libarc4 intel_rapl_msr intel_rapl_common cdc_ncm cdc_ether mc usbnet cdc_wdm x86_pkg_temp_thermal intel_powerclamp cdc_acm coretemp mii iwlwifi snd_hda_codec_hdmi snd_ctl_led snd_hda_codec_conexant crct10dif_pclmul crc32_pclmul snd_hda_codec_generic polyval_clmulni polyval_generic joydev mousedev gf128mul ghash_clmulni_intel mei_hdcp mei_wdt iTCO_wdt sha512_ssse3 cfg80211 sha256_ssse3 sha1_ssse3 aesni_intel mei_pxp snd_hda_intel at24 intel_pmc_bxt iTCO_vendor_support snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec mei_me snd_hda_core mei i2c_i801 e1000e snd_hwdep snd_pcm i2c_smbus snd_timer lpc_ich thinkpad_acpi ledtrig_audio crypto_simd cryptd
[12272.690650]  rapl intel_cstate intel_uncore platform_profile rfkill snd psmouse soundcore think_lmi firmware_attributes_class wmi_bmof mac_hid pcspkr pkcs8_key_parser crypto_user dm_mod fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 i915 i2c_algo_bit drm_buddy sdhci_pci serio_raw atkbd ttm cqhci libps2 vivaldi_fmap sdhci intel_gtt crc32c_intel mmc_core drm_display_helper i8042 cec video serio wmi
[12272.690679] CPU: 2 PID: 7437 Comm: kworker/2:0 Tainted: G        W          6.7.0-arch3-1 #1 29ada86f174bb9983ea57568622d66509982ed7e
[12272.690682] Hardware name: LENOVO 42915CG/42915CG, BIOS 8DET51WW (1.21 ) 08/02/2011
[12272.690684] Workqueue: events_freezable ieee80211_restart_work [mac80211]
[12272.690727] RIP: 0010:drv_stop+0xf5/0x100 [mac80211]
[12272.690772] Code: 0c 00 48 85 c0 74 0c 48 8b 78 08 48 89 de e8 32 03 05 00 65 ff 0d 73 f2 d1 3e 0f 85 39 ff ff ff e8 b0 04 6f f8 e9 2f ff ff ff <0f> 0b 5b c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90
[12272.690773] RSP: 0018:ffffa953088bfcb8 EFLAGS: 00010246
[12272.690775] RAX: 0000000000000000 RBX: ffff966207b78900 RCX: ffff966202707068
[12272.690776] RDX: 0000000000000001 RSI: 0000000000000282 RDI: ffff966207b78900
[12272.690777] RBP: ffff966207b78900 R08: ffffffffbb8ccf20 R09: 0000000000000400
[12272.690778] R10: ffffffffffb69800 R11: 0000000000004036 R12: ffff966207b791d0
[12272.690780] R13: ffff966207b78e10 R14: 0000000000000000 R15: ffff966204d21c38
[12272.690781] FS:  0000000000000000(0000) GS:ffff966316280000(0000) knlGS:0000000000000000
[12272.690782] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[12272.690783] CR2: 00001a9400875000 CR3: 00000001d3a20001 CR4: 00000000000606f0
[12272.690785] Call Trace:
[12272.690788]  <TASK>
[12272.690789]  ? drv_stop+0xf5/0x100 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.690833]  ? __warn+0x81/0x130
[12272.690838]  ? drv_stop+0xf5/0x100 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.690883]  ? report_bug+0x171/0x1a0
[12272.690888]  ? handle_bug+0x3c/0x80
[12272.690891]  ? exc_invalid_op+0x17/0x70
[12272.690894]  ? asm_exc_invalid_op+0x1a/0x20
[12272.690897]  ? drv_stop+0xf5/0x100 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.690941]  ? ieee80211_stop_device+0x4a/0x60 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.690999]  ieee80211_do_stop+0x56a/0x800 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.691051]  ieee80211_stop+0x58/0x180 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.691102]  __dev_close_many+0x9e/0x110
[12272.691106]  dev_close_many+0x8f/0x150
[12272.691109]  ? __pfx_wait_rcu_exp_gp+0x10/0x10
[12272.691113]  dev_close+0x83/0xb0
[12272.691116]  cfg80211_shutdown_all_interfaces+0x4d/0xf0 [cfg80211 9a6ab623b5a8441ed5e6fbe596b036d1a2ec17fd]
[12272.691174]  ieee80211_restart_work+0x11c/0x150 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
[12272.691217]  process_one_work+0x174/0x340
[12272.691220]  worker_thread+0x27b/0x3a0
[12272.691223]  ? __pfx_worker_thread+0x10/0x10
[12272.691224]  kthread+0xe8/0x120
[12272.691228]  ? __pfx_kthread+0x10/0x10
[12272.691230]  ret_from_fork+0x34/0x50
[12272.691234]  ? __pfx_kthread+0x10/0x10
[12272.691236]  ret_from_fork_asm+0x1b/0x30
[12272.691239]  </TASK>
[12272.691240] ---[ end trace 0000000000000000 ]---

Does someone knows what might be causing this ? I'm opened to any suggestion that could help me debug.

Last edited by glk0 (2024-01-22 14:14:35)

Offline

#2 2024-01-20 12:20:02

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [HACK-AROUND] Wifi randomly stops working.

Does the problem also happen in the live environment? The card might be dying.

And please use code tags when posting terminal output, it greatly aids readability. Edit your OP to incorporate them. Thanks.

Offline

#3 2024-01-20 12:49:33

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

Head_on_a_Stick wrote:

Does the problem also happen in the live environment? The card might be dying.

I'm not sure if I understand your question correctly. As I said earlier, the wifi keeps crashing randomly when I'm using my laptop. I've tried downgrading the linux and linux-firmware packages, and that seemed to be working fine for a while, but I had to bring them back to the latest version because the laptop simply won't wake up from sleep.

Offline

#4 2024-01-20 15:12:06

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

HoaS is suggesting that this is a HW issue, hence whether this is a problem w/ other SW stacks like the install iso or a live distro like grml/knoppix/…
That being said: https://www.google.com/search?client=qu … hlinux.org

https://bbs.archlinux.org/viewtopic.php … 1#p2120681 and if that's not it, please post your complete system journal for a boot showing the crash in context:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Edit: https://bbs.archlinux.org/viewtopic.php?id=290682 has this on a system where  the RJ45 acts as an implicit rfkill

Last edited by seth (2024-01-20 15:13:19)

Offline

#5 2024-01-20 16:55:38

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

HoaS is suggesting that this is a HW issue, hence whether this is a problem w/ other SW stacks like the install iso or a live distro like grml/knoppix/…

I didn't try to reproduce the issue in a live environment, and I do not have any bootable USB close by. Do you know some other way I could make sure this is just my hardware deteriorating ?

I tried to set pcie_aspm=off to no avail. The issue persists.

seth wrote:

Edit: https://bbs.archlinux.org/viewtopic.php?id=290682 has this on a system where  the RJ45 acts as an implicit rfkill

I did not notice any correlation of the issue with the use of a wired connection.

Offline

#6 2024-01-20 16:57:46

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

Here is my journal log around when I turn the wifi off, and then try unsuccessfully to turn it on again:

Jan 20 17:34:53 emma sudo[2562]: pam_unix(sudo:session): session opened for user root(uid=0) by emma(uid=1000)
Jan 20 17:34:53 emma sudo[2562]: pam_unix(sudo:session): session closed for user root
Jan 20 17:37:29 emma rtkit-daemon[844]: Supervising 7 threads of 4 processes of 1 users.
Jan 20 17:37:29 emma rtkit-daemon[844]: Supervising 7 threads of 4 processes of 1 users.
Jan 20 17:37:35 emma wpa_supplicant[440]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-55 noise=9999 txrate=65000
Jan 20 17:38:02 emma rtkit-daemon[844]: Supervising 7 threads of 4 processes of 1 users.
Jan 20 17:38:02 emma rtkit-daemon[844]: Supervising 7 threads of 4 processes of 1 users.
Jan 20 17:42:23 emma systemd[1]: Starting Cleanup of Temporary Directories...
Jan 20 17:42:23 emma systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully.
Jan 20 17:42:23 emma systemd[1]: Finished Cleanup of Temporary Directories.
Jan 20 17:45:57 emma wpa_supplicant[440]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-90 noise=9999 txrate=58500
Jan 20 17:45:58 emma wpa_supplicant[440]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-66 noise=9999 txrate=58500
Jan 20 17:47:57 emma dbus-daemon[348]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.111' (uid=0 pid=2709 comm="sudo dmesg")
Jan 20 17:47:57 emma dbus-daemon[348]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Jan 20 17:48:00 emma sudo[2709]:     emma : TTY=pts/0 ; PWD=/home/emma ; USER=root ; COMMAND=/usr/sbin/dmesg
Jan 20 17:48:00 emma sudo[2709]: pam_unix(sudo:session): session opened for user root(uid=0) by emma(uid=1000)
Jan 20 17:48:00 emma sudo[2709]: pam_unix(sudo:session): session closed for user root
Jan 20 17:48:22 emma kernel: wlan0: deauthenticating from 88:89:2f:eb:24:0c by local choice (Reason: 3=DEAUTH_LEAVING)
Jan 20 17:48:22 emma wpa_supplicant[440]: wlan0: CTRL-EVENT-DISCONNECTED bssid=88:89:2f:eb:24:0c reason=3 locally_generated=1
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3113] manager: rfkill: Wi-Fi hardware radio set disabled
Jan 20 17:48:22 emma wpa_supplicant[440]: rfkill: WLAN soft blocked
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3114] device (wlan0): state change: activated -> unavailable (reason 'none', sys-iface-state: 'managed')
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3116] dhcp4 (wlan0): canceled DHCP transaction
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3116] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3116] dhcp4 (wlan0): state changed no lease
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3118] dhcp6 (wlan0): canceled DHCP transaction
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3118] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3118] dhcp6 (wlan0): state changed no lease
Jan 20 17:48:22 emma systemd-resolved[344]: wlan0: Bus client set default route setting: no
Jan 20 17:48:22 emma systemd-resolved[344]: wlan0: Bus client reset DNS server list.
Jan 20 17:48:22 emma systemd[1]: Starting Load/Save RF Kill Switch Status...
Jan 20 17:48:22 emma systemd[1]: Started Load/Save RF Kill Switch Status.
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3850] device (wlan0): set-hw-addr: set MAC address to 0E:B3:29:9F:40:CD (scanning)
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3855] manager: NetworkManager state is now DISCONNECTED
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3879] audit: op="radio-control" arg="wireless-enabled:off" pid=1063 uid=1000 result="success"
Jan 20 17:48:22 emma wpa_supplicant[440]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Jan 20 17:48:22 emma NetworkManager[439]: <info>  [1705769302.3891] manager: rfkill: Wi-Fi now disabled by radio killswitch
Jan 20 17:48:22 emma dbus-daemon[348]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.5' (uid=0 pid=439 comm="/usr/bin/NetworkManager --no-daemon")
Jan 20 17:48:22 emma systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 20 17:48:22 emma dbus-daemon[348]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 20 17:48:22 emma systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 20 17:48:22 emma wpa_supplicant[440]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Jan 20 17:48:22 emma wpa_supplicant[440]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Jan 20 17:48:23 emma systemd-resolved[344]: Switching to fallback DNS server 1.1.1.1#cloudflare-dns.com.
Jan 20 17:48:25 emma NetworkManager[439]: <info>  [1705769305.2543] manager: rfkill: Wi-Fi hardware radio set enabled
Jan 20 17:48:25 emma kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 20 17:48:30 emma systemd[1]: systemd-rfkill.service: Deactivated successfully.
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: Failed to load firmware chunk!
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: iwlwifi transaction failed, dumping registers
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: iwlwifi device config registers:
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000080: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 000000a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 000000c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 000000e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000100: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000120: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000140: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: iwlwifi device memory mapped registers:
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: iwlwifi parent port (0000:00:1c.1) config registers:
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000000: 1c128086 00100007 060400b4 00810010 00000000 00000000 00030300 200000f0
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000020: f240f240 0001fff1 00000000 00000000 00000000 00000040 00000000 000202ff
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000040: 01428010 00008000 00110000 02123c12 50110042 000cb200 01080000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000060: 00000000 00000016 00000000 00000000 00010002 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000080: 00009005 00000000 00000000 00000000 0000a00d 21da17aa 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 000000a0: c8020001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 000000c0: 00000000 00000000 00000000 00000000 01000000 00000b02 81118000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 000000e0: 00000300 00000000 00000001 00000000 00000000 00000000 08060f87 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000100: 00000000 00000000 00000000 00060011 000011c1 00002000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:00:1c.1: 00000200: 00000000 00000000 00000000
Jan 20 17:48:30 emma kernel: iwlwifi 0000:03:00.0: Could not load the [1] uCode section
Jan 20 17:48:30 emma kernel: ------------[ cut here ]------------
Jan 20 17:48:30 emma kernel: Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
Jan 20 17:48:30 emma kernel: WARNING: CPU: 0 PID: 439 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:2225 __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi]
Jan 20 17:48:30 emma kernel: Modules linked in: rfcomm bnep snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm algif_aead crypto_null des3_ede_x86_64 cbc des_generic libdes algif_skcipher cmac md4 algif_hash af_alg vfat fat snd_hda_codec_hdmi btusb snd_ctl_led btrtl snd_hda_codec_conexant btintel btbcm btmtk intel_rapl_msr intel_rapl_common uvcvideo bluetooth snd_hda_codec_generic iwldvm ecdh_generic x86_pkg_temp_thermal intel_powerclamp snd_hda_intel coretemp videobuf2_vmalloc joydev uvc snd_intel_dspcfg snd_intel_sdw_acpi mac80211 crct10dif_pclmul videobuf2_memops crc32_pclmul videobuf2_v4l2 videodev polyval_clmulni polyval_generic mousedev libarc4 gf128mul snd_hda_codec videobuf2_common cdc_mbim ghash_clmulni_intel snd_hda_core mc cdc_ncm cdc_ether usbnet cdc_acm cdc_wdm mii iwlwifi snd_hwdep sha512_ssse3 sha256_ssse3 sha1_ssse3 snd_pcm at24 snd_timer cfg80211 aesni_intel crypto_simd cryptd iTCO_wdt intel_pmc_bxt i2c_i801 iTCO_vendor_support thinkpad_acpi i2c_smbus mei_wdt e1000e ledtrig_audio mei_hdcp mei_pxp platform_profile
Jan 20 17:48:30 emma kernel:  mei_me rapl rfkill intel_cstate intel_uncore mei lpc_ich psmouse snd pcspkr soundcore think_lmi mac_hid wmi_bmof firmware_attributes_class pkcs8_key_parser crypto_user dm_mod fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 i915 serio_raw atkbd libps2 i2c_algo_bit vivaldi_fmap drm_buddy crc32c_intel sdhci_pci ttm cqhci intel_gtt sdhci drm_display_helper mmc_core cec video i8042 wmi serio
Jan 20 17:48:30 emma kernel: CPU: 0 PID: 439 Comm: NetworkManager Not tainted 6.7.0-arch3-1 #1 29ada86f174bb9983ea57568622d66509982ed7e
Jan 20 17:48:30 emma kernel: Hardware name: LENOVO 42915CG/42915CG, BIOS 8DET51WW (1.21 ) 08/02/2011
Jan 20 17:48:30 emma kernel: RIP: 0010:__iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi]
Jan 20 17:48:30 emma kernel: Code: e8 75 fe eb fa 31 c0 eb 9b 31 f6 48 89 df e8 07 b6 ff ff eb e8 89 c6 48 c7 c7 e8 dc 16 c1 c6 05 55 27 02 00 01 e8 f0 32 1a fa <0f> 0b eb a7 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
Jan 20 17:48:30 emma kernel: RSP: 0018:ffffa481411134d8 EFLAGS: 00010282
Jan 20 17:48:30 emma kernel: RAX: 0000000000000000 RBX: ffff91a881738028 RCX: 0000000000000027
Jan 20 17:48:30 emma kernel: RDX: ffff91a9962216c8 RSI: 0000000000000001 RDI: ffff91a9962216c0
Jan 20 17:48:30 emma kernel: RBP: 00000000ffffffff R08: 0000000000000000 R09: ffffa48141113360
Jan 20 17:48:30 emma kernel: R10: 0000000000000003 R11: ffffffffbd0ca768 R12: 0000000000000001
Jan 20 17:48:30 emma kernel: R13: 0000000000000011 R14: ffff91a88173b5ec R15: ffff91a882d0b0d8
Jan 20 17:48:30 emma kernel: FS:  00007ba49bc4c200(0000) GS:ffff91a996200000(0000) knlGS:0000000000000000
Jan 20 17:48:30 emma kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 20 17:48:30 emma kernel: CR2: 000075c2fa11ca80 CR3: 0000000103e6a005 CR4: 00000000000606f0
Jan 20 17:48:30 emma kernel: Call Trace:
Jan 20 17:48:30 emma kernel:  <TASK>
Jan 20 17:48:30 emma kernel:  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  ? __warn+0x81/0x130
Jan 20 17:48:30 emma kernel:  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  ? report_bug+0x171/0x1a0
Jan 20 17:48:30 emma kernel:  ? prb_read_valid+0x1b/0x30
Jan 20 17:48:30 emma kernel:  ? handle_bug+0x3c/0x80
Jan 20 17:48:30 emma kernel:  ? exc_invalid_op+0x17/0x70
Jan 20 17:48:30 emma kernel:  ? asm_exc_invalid_op+0x1a/0x20
Jan 20 17:48:30 emma kernel:  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  ? __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  iwl_trans_pcie_grab_nic_access+0x1a/0x40 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  iwl_write_prph_delay+0x2a/0x80 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  iwl_pcie_tx_stop+0x29/0x190 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  _iwl_trans_pcie_stop_device+0x2d2/0x360 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  iwl_trans_pcie_stop_device+0x5a/0x80 [iwlwifi c78a1c44ddc01147a116d8b609df0a8eb1dce523]
Jan 20 17:48:30 emma kernel:  iwl_run_init_ucode+0xe3/0x120 [iwldvm 12984017dfffee7deac971b42af67b97f52c0d09]
Jan 20 17:48:30 emma kernel:  ? __pfx_iwlagn_wait_calib+0x10/0x10 [iwldvm 12984017dfffee7deac971b42af67b97f52c0d09]
Jan 20 17:48:30 emma kernel:  iwlagn_mac_start+0xaf/0x240 [iwldvm 12984017dfffee7deac971b42af67b97f52c0d09]
Jan 20 17:48:30 emma kernel:  drv_start+0x42/0x100 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
Jan 20 17:48:30 emma kernel:  ieee80211_do_open+0x2ed/0x790 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
Jan 20 17:48:30 emma kernel:  ieee80211_open+0x66/0x90 [mac80211 fd9101b056465c04c815a9a15edb686ebdc1029c]
Jan 20 17:48:30 emma kernel:  __dev_open+0xf4/0x1a0
Jan 20 17:48:30 emma kernel:  __dev_change_flags+0x1d6/0x240
Jan 20 17:48:30 emma kernel:  dev_change_flags+0x26/0x70
Jan 20 17:48:30 emma kernel:  do_setlink+0x39c/0x12d0
Jan 20 17:48:30 emma kernel:  ? ahci_qc_prep+0x144/0x160
Jan 20 17:48:30 emma kernel:  ? __pfx_ata_scsi_rw_xlat+0x10/0x10
Jan 20 17:48:30 emma kernel:  ? __nla_validate_parse+0x61/0xcf0
Jan 20 17:48:30 emma kernel:  ? __ata_scsi_queuecmd+0x20c/0x500
Jan 20 17:48:30 emma kernel:  ? ata_scsi_queuecmd+0x53/0x80
Jan 20 17:48:30 emma kernel:  __rtnl_newlink+0x651/0xa10
Jan 20 17:48:30 emma kernel:  ? __kmem_cache_alloc_node+0x1a0/0x2e0
Jan 20 17:48:30 emma kernel:  ? rtnl_newlink+0x2e/0x70
Jan 20 17:48:30 emma kernel:  rtnl_newlink+0x47/0x70
Jan 20 17:48:30 emma kernel:  rtnetlink_rcv_msg+0x152/0x3c0
Jan 20 17:48:30 emma kernel:  ? ep_autoremove_wake_function+0x23/0x50
Jan 20 17:48:30 emma kernel:  ? __wake_up_common+0x78/0xa0
Jan 20 17:48:30 emma kernel:  ? __pfx_rtnetlink_rcv_msg+0x10/0x10
Jan 20 17:48:30 emma kernel:  netlink_rcv_skb+0x5b/0x110
Jan 20 17:48:30 emma kernel:  netlink_unicast+0x1a6/0x290
Jan 20 17:48:30 emma kernel:  netlink_sendmsg+0x254/0x4d0
Jan 20 17:48:30 emma kernel:  ____sys_sendmsg+0x399/0x3d0
Jan 20 17:48:30 emma kernel:  ? copy_msghdr_from_user+0x7d/0xc0
Jan 20 17:48:30 emma kernel:  ___sys_sendmsg+0x9a/0xe0
Jan 20 17:48:30 emma kernel:  __sys_sendmsg+0x7a/0xd0
Jan 20 17:48:30 emma kernel:  do_syscall_64+0x64/0xe0
Jan 20 17:48:30 emma kernel:  ? syscall_exit_to_user_mode+0x2b/0x40
Jan 20 17:48:30 emma kernel:  ? do_syscall_64+0x70/0xe0
Jan 20 17:48:30 emma kernel:  ? syscall_exit_to_user_mode+0x2b/0x40
Jan 20 17:48:30 emma kernel:  ? do_syscall_64+0x70/0xe0
Jan 20 17:48:30 emma kernel:  ? exit_to_user_mode_prepare+0x17d/0x1f0
Jan 20 17:48:30 emma kernel:  entry_SYSCALL_64_after_hwframe+0x6e/0x76
Jan 20 17:48:30 emma kernel: RIP: 0033:0x7ba49cbc3b3d
Jan 20 17:48:30 emma kernel: Code: 28 89 54 24 1c 48 89 74 24 10 89 7c 24 08 e8 4a 62 f7 ff 8b 54 24 1c 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 33 44 89 c7 48 89 44 24 08 e8 9e 62 f7 ff 48
Jan 20 17:48:30 emma kernel: RSP: 002b:00007fff81448bc0 EFLAGS: 00000293 ORIG_RAX: 000000000000002e
Jan 20 17:48:30 emma kernel: RAX: ffffffffffffffda RBX: 000000000000003c RCX: 00007ba49cbc3b3d
Jan 20 17:48:30 emma kernel: RDX: 0000000000000000 RSI: 00007fff81448c00 RDI: 000000000000000d
Jan 20 17:48:30 emma kernel: RBP: 00007fff81448fd0 R08: 0000000000000000 R09: 0000000000000000
Jan 20 17:48:30 emma kernel: R10: 0000000000000000 R11: 0000000000000293 R12: 000056a1ca7ca800
Jan 20 17:48:30 emma kernel: R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
Jan 20 17:48:30 emma kernel:  </TASK>
Jan 20 17:48:30 emma kernel: ---[ end trace 0000000000000000 ]---
Jan 20 17:48:32 emma systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Jan 20 17:48:33 emma kernel: iwlwifi 0000:03:00.0: Failed to run INIT ucode: -110
Jan 20 17:48:33 emma kernel: iwlwifi 0000:03:00.0: Unable to initialize device.
Jan 20 17:48:33 emma kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 20 17:48:34 emma kernel: iwlwifi 0000:03:00.0: Could not load the [0] uCode section
Jan 20 17:48:36 emma NetworkManager[439]: <warn>  [1705769316.7341] platform-linux: do-change-link[5]: failure 110 (Connection timed out)
Jan 20 17:48:36 emma kernel: iwlwifi 0000:03:00.0: Failed to run INIT ucode: -5
Jan 20 17:48:36 emma kernel: iwlwifi 0000:03:00.0: Unable to initialize device.
Jan 20 17:48:36 emma NetworkManager[439]: <info>  [1705769316.7343] audit: op="radio-control" arg="wireless-enabled:on" pid=1063 uid=1000 result="success"
Jan 20 17:48:36 emma NetworkManager[439]: <info>  [1705769316.7349] manager: rfkill: Wi-Fi now enabled by radio killswitch
Jan 20 17:48:36 emma kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 20 17:48:37 emma kernel: iwlwifi 0000:03:00.0: Could not load the [0] uCode section
Jan 20 17:48:40 emma NetworkManager[439]: <warn>  [1705769320.1122] platform-linux: do-change-link[5]: failure 5 (Input/output error)
Jan 20 17:48:40 emma kernel: iwlwifi 0000:03:00.0: Failed to run INIT ucode: -5
Jan 20 17:48:40 emma kernel: iwlwifi 0000:03:00.0: Unable to initialize device.
Jan 20 17:48:40 emma NetworkManager[439]: <info>  [1705769320.1226] audit: op="radio-control" arg="wireless-enabled:on" pid=1063 uid=1000 result="success"
Jan 20 17:48:42 emma gnome-shell[1063]: NM.DeviceError: Scanning not allowed while unavailable
                                        
                                        Stack trace:
                                          _promisify/proto[asyncFunc]/</<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:453:45
                                          @resource:///org/gnome/shell/ui/init.js:21:20
                                          ### Promise created here: ###
                                          _scanDevice@resource:///org/gnome/shell/ui/status/network.js:1819:22
                                          _scanDevices/<@resource:///org/gnome/shell/ui/status/network.js:1842:35
                                          _scanDevices@resource:///org/gnome/shell/ui/status/network.js:1842:21
                                          _startScanning@resource:///org/gnome/shell/ui/status/network.js:1853:14
                                          NMWirelessToggle/<@resource:///org/gnome/shell/ui/status/network.js:1787:22
                                          _callHandlers@resource:///org/gnome/gjs/modules/core/_signals.js:130:42
                                          _emit@resource:///org/gnome/gjs/modules/core/_signals.js:119:10
                                          open@resource:///org/gnome/shell/ui/quickSettings.js:468:14
                                          _init/<@resource:///org/gnome/shell/ui/quickSettings.js:225:61
                                          @resource:///org/gnome/shell/ui/init.js:21:20
                                          
Jan 20 17:48:50 emma dbus-daemon[348]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.113' (uid=0 pid=2770 comm="sudo dmesg")
Jan 20 17:48:50 emma dbus-daemon[348]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.

Last edited by glk0 (2024-01-20 17:14:49)

Offline

#7 2024-01-20 17:59:09

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

Not "around", please post the entire journal as described in #4

Offline

#8 2024-01-21 06:41:56

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

OK. Uplodaed the journals at  http://0x0.st/H0Ry.txt.

Offline

#9 2024-01-21 09:52:33

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

Jan 21 06:41:33 emma NetworkManager[448]: <info>  [1705815693.7447] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan 21 06:41:34 emma NetworkManager[448]: <info>  [1705815694.6623] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Jan 21 06:41:34 emma NetworkManager[448]: <info>  [1705815694.6950] dhcp6 (wlan0): state changed new lease
…
Jan 21 07:18:03 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-60 noise=9999 txrate=6000
Jan 21 07:20:41 emma obsidian.desktop[3989]: 2024-01-21 06:20:41 Checking for update using Github
Jan 21 07:20:41 emma obsidian.desktop[3989]: 2024-01-21 06:20:41 Success.
Jan 21 07:20:41 emma obsidian.desktop[3989]: 2024-01-21 06:20:41 Latest version is 1.5.3
Jan 21 07:20:41 emma obsidian.desktop[3989]: 2024-01-21 06:20:41 App is up to date.
Jan 21 07:21:19 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:21:20 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:21:22 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:21:23 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:21:25 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:21:26 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:21:34 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:22:02 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:22:16 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:22:20 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:22:22 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:22:51 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:05 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:06 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:23 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:32 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:35 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:36 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:40 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:23:56 emma wpa_supplicant[449]: wlan0: CTRL-EVENT-BEACON-LOSS
Jan 21 07:24:11 emma kernel: iwlwifi 0000:03:00.0: Microcode SW error detected.  Restarting 0x2000000.

You're connecting 6:40:33, probably still have a connection at 07:20:41 and briefly afterwards lose the signal, leading to a firmware reset ~3 minutes later

Problem #1 is

Jan 21 06:41:33 emma iwd[352]: Unexpected connection related event -- is another supplicant running?

=> Disable iwd.

Offline

#10 2024-01-21 16:34:38

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

Tried disabling 'iwd' with

 sudo systemctl disable iwd 

And then I disabled the wifi, and then tried to bring it back again, unsuccesfully. The problem persists.

Output of dmesg at http://0x0.st/H0FZ.txt
Journal  at http://0x0.st/H0FN.txt

Offline

#11 2024-01-21 16:36:50

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

iwd still shows up in that journal and it certainly has trashed iwlwifi.
Also "disable" doesn't do anything immediately. Reboot and report on the new status.

Offline

#12 2024-01-21 20:46:40

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

seth wrote:

iwd still shows up in that journal and it certainly has trashed iwlwifi.
Also "disable" doesn't do anything immediately. Reboot and report on the new status.

Rebooted. And I checked the status of iwd:

$ systemctl status iwd
○ iwd.service - Wireless service
     Loaded: loaded (/usr/lib/systemd/system/iwd.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:iwd(8)
             man:iwd.config(5)
             man:iwd.network(5)
             man:iwd.ap(5)

Grepped through the journal, and found not mention of it either.

Result:
Problem seemed to be resolved for a while. Could power the wifi up/down, get it back on when waking from sleep, etc. Waited for a while, and tried again: problem returned.
Journal: http://0x0.st/H0CL.txt
Dmesg output: http://0x0.st/H0Cp.txt

Offline

#13 2024-01-21 20:59:00

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

Jan 21 21:31:35 emma kernel: wlan0: deauthenticating from 88:89:2f:eb:24:10 by local choice (Reason: 3=DEAUTH_LEAVING)
Jan 21 21:31:35 emma wpa_supplicant[368]: wlan0: CTRL-EVENT-DISCONNECTED bssid=88:89:2f:eb:24:10 reason=3 locally_generated=1
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7196] manager: rfkill: Wi-Fi hardware radio set disabled
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7196] device (wlan0): state change: activated -> unavailable (reason 'none', sys-iface-state: 'managed')
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7198] dhcp4 (wlan0): canceled DHCP transaction
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7198] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7198] dhcp4 (wlan0): state changed no lease
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7200] dhcp6 (wlan0): canceled DHCP transaction
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7200] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7201] dhcp6 (wlan0): state changed no lease
Jan 21 21:31:35 emma wpa_supplicant[368]: rfkill: WLAN soft blocked
Jan 21 21:31:35 emma systemd-resolved[344]: wlan0: Bus client set default route setting: no
Jan 21 21:31:35 emma systemd-resolved[344]: wlan0: Bus client reset DNS server list.
Jan 21 21:31:35 emma systemd[1]: Starting Load/Save RF Kill Switch Status...
Jan 21 21:31:35 emma systemd[1]: Started Load/Save RF Kill Switch Status.
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7905] device (wlan0): set-hw-addr: set MAC address to 92:70:07:89:3A:2A (scanning)
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7915] manager: NetworkManager state is now DISCONNECTED
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7967] audit: op="radio-control" arg="wireless-enabled:off" pid=981 uid=1000 result="success"
Jan 21 21:31:35 emma NetworkManager[367]: <info>  [1705869095.7979] manager: rfkill: Wi-Fi now disabled by radio killswitch
Jan 21 21:31:35 emma wpa_supplicant[368]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Jan 21 21:31:35 emma dbus-daemon[349]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=367 comm="/usr/bin/NetworkManager --no-daemon")
Jan 21 21:31:35 emma systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 21 21:31:35 emma wpa_supplicant[368]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Jan 21 21:31:35 emma wpa_supplicant[368]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Jan 21 21:31:35 emma dbus-daemon[349]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 21 21:31:35 emma systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 21 21:31:36 emma systemd-resolved[344]: Switching to fallback DNS server 1.1.1.1#cloudflare-dns.com.
Jan 21 21:31:37 emma NetworkManager[367]: <info>  [1705869097.3506] manager: rfkill: Wi-Fi hardware radio set enabled
Jan 21 21:31:37 emma kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 21 21:31:37 emma kernel: ------------[ cut here ]------------
Jan 21 21:31:37 emma kernel: Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
Jan 21 21:31:37 emma kernel: WARNING: CPU: 3 PID: 367 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:2225 __iwl_trans_pcie_grab_nic_access+0x150/0x160 [iwlwifi]

It looks like the NIC got rfkill'd and unkill'd within  seconds - did you purposefully stress-test it to cause this?
Did you push the rfkill switch/button at all? (Some increasing amount of devices use the rj45 plug as implicit rfkill)
Is there a parallel windows installation?

Offline

#14 2024-01-21 21:16:50

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

And I tried a reboot again, but this time, the boot halted with the message

1802: Unauthorized network card is plugged in - Power off and remove the miniPCI network card (FFFF/FFFF).

System is halted

I had to shut it down by a long press on the power button.
I run

journalctl -k -b -1

to retrieve the logs for the previous boot, and I posted them at http://0x0.st/H0CG.txt

Last edited by glk0 (2024-01-21 21:17:43)

Offline

#15 2024-01-21 21:34:36

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

seth wrote:

It looks like the NIC got rfkill'd and unkill'd within  seconds - did you purposefully stress-test it to cause this?
Did you push the rfkill switch/button at all? (Some increasing amount of devices use the rj45 plug as implicit rfkill)
Is there a parallel windows installation?

Yeah. I use the GNOME settings app to turn the wifi off then on. I did not use the rfkill button. I do not use the rj45 plug at all so I don't think this could be an implicit rfkill from it. There is no parallel Windows installation, Archlinux is the only OS installed on the laptop.

And also, in an attempt to bring the device back up after the error without having to reboot,  I've been trying to use sysfs to remove the PCI device, and rescan: the remove operation works, but the rescan has no effect; the device doesn't come back, nothing shows up in the log. A clue ?

Last edited by glk0 (2024-01-21 21:46:59)

Offline

#16 2024-01-21 21:36:35

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

Is it a necessary/reliable trigger for the problem? (Notably the high frequency)
The subsequent reboot problem *might* have been because the FW left the HW in a bad state, notably if it's not recurring.

Offline

#17 2024-01-21 21:59:35

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

I'm a bit out of ideas about where to look. With ASPM off, iwd disabled, the problem seems to occur not under the conditions I mentioned in my first post (wake up, turning wifi off/on), but just randomly after some time (~ 1/2 hour, I'm guessing), whether or not I use some kind of rfkill, and less if I stress test it. I don't have a clue about what is causing what and I'm starting to think that HoaS might be right about the card dying. @seth do you know if there's some way I could bring the device back up after it crashes, without going through a reboot ?

Offline

#18 2024-01-21 22:14:10

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

Your best shot is likely to remove the device, unload the module and rescan the bus.

lspci -tvnn

Offline

#19 2024-01-22 08:36:05

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

OK. Tried that and put it into a function in my .zshrc

wifi_restart () {
	echo 1 | sudo tee /sys/bus/pci/devices/0000:03:00.0/remove > /dev/null
	sudo modprobe -r iwldvm iwlwifi > /dev/null
	echo 1 | sudo tee /sys/bus/pci/rescan > /dev/null
}

Result: it works every time I tried it to bring the wifi back up when it crashes.
@seth do you know I could somehow automatically configure the script to run every time the crash occurs ? I'd also like to collect some data on how often the crash happens for a few weeks so I need a way to automatically detect it in the background, handle it ,and log it to some file ...

Offline

#20 2024-01-22 08:38:45

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

And also, I'm new to the forum. As this is a partial fix, shall I add [SOLVED] to the title ?

Offline

#21 2024-01-22 09:04:57

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

You would likely have to have to use a https://wiki.archlinux.org/title/Networ … dispatcher to hook onto the symptom (down or connectivity-change), check the tail of dmesg (or rather the journal, so you can compare timestamps) for the crash pattern (eg. if __iwl_trans_pcie_grab_nic_access is consistent) and then reload the device and log the event.

"[HACK-A-ROUND] "…

Edit: on a formal note it's better to not personally address questions, "@seth" does nothing special (you get mails for every subscribed topic anyway) and you're drastically limiting your resources.
If I was empathic, I'd also concern that it's a bit dismissive towards everyone else but since I'm mostly an asshole, I just don't want them to feel like they could lazily ignore the question tongue

Last edited by seth (2024-01-22 09:09:05)

Offline

#22 2024-01-22 11:21:51

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

Thanks.
But I think I may have declared victory too soon ... The fix worked fine, survived all the stress tests and then after some time, the interface will come back up, just to crash back immediately.
I uploaded the full log at http://0x0.st/HG-P.txt and it may be a bit redundant because I tried the rescan again and again ...
I've gone through it and there's lots of new stuff I don't get, especially this line

Jan 22 05:36:13 emma kernel: ieee80211 phy1: Selected rate control algorithm 'iwl-agn-rs'

I run

lsmod | grep "ieee80211"

and it comes back empty.
I dot not understand ... I thought it was some kernel module, but found it nowhere.

Offline

#23 2024-01-22 14:48:16

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

https://en.wikipedia.org/wiki/IEEE_802.11 - the module is mac80211
Try to limit the rescan to the relevant bus (if you can't figure which it is, "lspci -tvnn" will tell)

Offline

#24 2024-01-22 16:04:25

glk0
Member
Registered: 2024-01-05
Posts: 23

Re: [HACK-AROUND] Wifi randomly stops working.

Is this what you mean ?

echo 1 | sudo tee /sys/bus/pci/0000:03:00.0/rescan

Tried. Result:no effect.
And because the file will disappear after I removed the device, I can't run a specific scan on the device after that.

Offline

#25 2024-01-22 16:10:56

seth
Member
Registered: 2012-09-03
Posts: 51,608

Re: [HACK-AROUND] Wifi randomly stops working.

No, that's the device. Please post the lspci output.

Offline

Board footer

Powered by FluxBB