[Framework 13 AMD] Issues with wireless after resume

I’ve recently noticed some issues with the mt7921e driver after resume from suspend. I’m wondering if anyone else has had these issues and, if so, if there are any solutions? My current solution is to sudo rmmod mt7921e && sudo modprobe mt7921e but I’m wondering if I should change anything?

Thanks in advance!

Here’s my dmesg output:

[ 5097.305739] mt7921e 0000:01:00.0: Message 00020007 (seq 8) timeout
[ 5097.306285] mt7921e 0000:01:00.0: PM: dpm_run_callback(): pci_pm_restore+0x0/0xe0 returns -110
[ 5097.306308] mt7921e 0000:01:00.0: PM: failed to restore async: error -110
[ 5097.384620] mt7921e 0000:01:00.0: Failed to get patch semaphore
[ 5097.385339] mt7921e 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0002 address=0xe4b7ea00 flags=0x0000]
[ 5100.505518] mt7921e 0000:01:00.0: Message 00000010 (seq 6) timeout
[ 5100.505529] mt7921e 0000:01:00.0: Failed to get patch semaphore
[ 5103.705521] mt7921e 0000:01:00.0: Message 000046ed (seq 7) timeout
[ 5103.705538] ------------[ cut here ]------------
[ 5103.705540] Hardware became unavailable upon resume. This could be a software issue prior to suspend or a hardware issue.
[ 5103.705566] WARNING: CPU: 10 PID: 31186 at net/mac80211/util.c:2593 ieee80211_reconfig+0x9f/0x14e0 [mac80211]
[ 5103.705650] Modules linked in: ccm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci mt7921e snd_sof_xtensa_dsp mt7921_common snd_hda_codec_realtek snd_sof intel_rapl_msr mt792x_lib snd_hda_codec_generic intel_rapl_common snd_sof_utils ledtrig_audio mt76_connac_lib snd_hda_codec_hdmi snd_soc_core mt76 snd_hda_intel snd_compress ac97_bus snd_intel_dspcfg snd_pcm_dmaengine snd_intel_sdw_acpi mac80211 btusb edac_mce_amd snd_pci_ps snd_hda_codec btrtl snd_rpl_pci_acp6x hid_sensor_als snd_acp_pci btintel hid_sensor_trigger kvm_amd snd_hda_core snd_acp_legacy_common libarc4 industrialio_triggered_buffer btbcm snd_pci_acp6x btmtk snd_hwdep kfifo_buf kvm hid_sensor_iio_common snd_pcm cfg80211 industrialio bluetooth snd_pci_acp5x snd_timer snd_rn_pci_acp3x ucsi_acpi irqbypass snd_acp_config mousedev snd joydev typec_ucsi sp5100_tco vfat snd_soc_acpi cros_ec_lpcs hid_sensor_hub hid_multitouch cros_ec fat ecdh_generic rapl
[ 5103.705752]  typec pcspkr k10temp thunderbolt rfkill soundcore snd_pci_acp3x
[ 5103.705759] mt7921e 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0002 address=0xd35c7e00 flags=0x0000]
[ 5103.705761]  i2c_piix4 roles i2c_hid_acpi amd_pmc amd_pmf i2c_hid platform_profile mac_hid ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip6table_filter ip6_tables iptable_filter vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) i2c_dev sg crypto_user loop fuse nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee dm_mod usbhid amdgpu crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic amdxcp gf128mul i2c_algo_bit ghash_clmulni_intel drm_ttm_helper sha512_ssse3 ttm sha256_ssse3 drm_exec sha1_ssse3 gpu_sched serio_raw aesni_intel atkbd drm_suballoc_helper libps2 drm_buddy crypto_simd vivaldi_fmap nvme drm_display_helper cryptd nvme_core xhci_pci video i8042 cec ccp xhci_pci_renesas nvme_auth serio wmi
[ 5103.705876] CPU: 10 PID: 31186 Comm: kworker/u32:52 Tainted: G           OE      6.7.2-arch1-2 #1 96899bd75afcd7d7875d6a29e4be6d285bc2a7a8
[ 5103.705882] Hardware name: Framework Laptop 13 (AMD Ryzen 7040Series)/FRANMDCP05, BIOS 03.03 10/17/2023
[ 5103.705885] Workqueue: events_unbound async_run_entry_fn
[ 5103.705894] RIP: 0010:ieee80211_reconfig+0x9f/0x14e0 [mac80211]
[ 5103.705951] Code: 02 00 00 41 c6 86 85 05 00 00 00 4c 89 f7 e8 78 8b fb ff 41 89 c4 85 c0 0f 84 0d 03 00 00 48 c7 c7 b0 96 2c c2 e8 e1 63 0d ee <0f> 0b eb 2d 84 c0 0f 85 9d 01 00 00 c6 87 85 05 00 00 00 e8 49 8b
[ 5103.705954] RSP: 0018:ffff9d3d443bbcd8 EFLAGS: 00010282
[ 5103.705957] RAX: 0000000000000000 RBX: ffff8d6c1f8b0538 RCX: 0000000000000027
[ 5103.705960] RDX: ffff8d6f2e8a16c8 RSI: 0000000000000001 RDI: ffff8d6f2e8a16c0
[ 5103.705962] RBP: ffff8d6c1f8b03c0 R08: 0000000000000000 R09: 6d61636562206572
[ 5103.705964] R10: 707520656c62616c R11: 696176616e752065 R12: 00000000ffffff92
[ 5103.705966] R13: 0000000000000000 R14: ffff8d6c1f8b0900 R15: ffff8d6bc3483b68
[ 5103.705968] FS:  0000000000000000(0000) GS:ffff8d6f2e880000(0000) knlGS:0000000000000000
[ 5103.705971] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5103.705973] CR2: 0000000000000000 CR3: 000000026ce20000 CR4: 0000000000f50ef0
[ 5103.705975] PKRU: 55555554
[ 5103.705977] Call Trace:
[ 5103.705981]  <TASK>
[ 5103.705983]  ? ieee80211_reconfig+0x9f/0x14e0 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706042]  ? __warn+0x81/0x130
[ 5103.706051]  ? ieee80211_reconfig+0x9f/0x14e0 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706111]  ? report_bug+0x171/0x1a0
[ 5103.706119]  ? srso_alias_return_thunk+0x5/0xfbef5
[ 5103.706126]  ? handle_bug+0x3c/0x80
[ 5103.706132]  ? exc_invalid_op+0x17/0x70
[ 5103.706136]  ? asm_exc_invalid_op+0x1a/0x20
[ 5103.706144]  ? ieee80211_reconfig+0x9f/0x14e0 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706200]  ? ieee80211_reconfig+0x9f/0x14e0 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706257]  ? srso_alias_return_thunk+0x5/0xfbef5
[ 5103.706260]  ? schedule+0x32/0xd0
[ 5103.706264]  ? srso_alias_return_thunk+0x5/0xfbef5
[ 5103.706267]  ? srso_alias_return_thunk+0x5/0xfbef5
[ 5103.706270]  ? schedule_timeout+0x151/0x160
[ 5103.706278]  ? srso_alias_return_thunk+0x5/0xfbef5
[ 5103.706280]  ? wait_for_completion+0x95/0x160
[ 5103.706287]  wiphy_resume+0x82/0x1b0 [cfg80211 a62516f15b07af8c116fcb015ffa2e4d56a4b700]
[ 5103.706343]  ? __pfx_wiphy_resume+0x10/0x10 [cfg80211 a62516f15b07af8c116fcb015ffa2e4d56a4b700]
[ 5103.706391]  dpm_run_callback+0x89/0x1e0
[ 5103.706401]  device_resume+0xa2/0x1f0
[ 5103.706408]  async_resume+0x1e/0x60
[ 5103.706413]  async_run_entry_fn+0x31/0x130
[ 5103.706417]  process_one_work+0x171/0x340
[ 5103.706424]  worker_thread+0x27b/0x3a0
[ 5103.706430]  ? __pfx_worker_thread+0x10/0x10
[ 5103.706433]  kthread+0xe5/0x120
[ 5103.706439]  ? __pfx_kthread+0x10/0x10
[ 5103.706444]  ret_from_fork+0x31/0x50
[ 5103.706451]  ? __pfx_kthread+0x10/0x10
[ 5103.706455]  ret_from_fork_asm+0x1b/0x30
[ 5103.706465]  </TASK>
[ 5103.706467] ---[ end trace 0000000000000000 ]---
[ 5103.706576] ------------[ cut here ]------------
[ 5103.706578] WARNING: CPU: 10 PID: 31186 at net/mac80211/driver-ops.c:41 drv_stop+0xf5/0x100 [mac80211]
[ 5103.706633] Modules linked in: ccm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci mt7921e snd_sof_xtensa_dsp mt7921_common snd_hda_codec_realtek snd_sof intel_rapl_msr mt792x_lib snd_hda_codec_generic intel_rapl_common snd_sof_utils ledtrig_audio mt76_connac_lib snd_hda_codec_hdmi snd_soc_core mt76 snd_hda_intel snd_compress ac97_bus snd_intel_dspcfg snd_pcm_dmaengine snd_intel_sdw_acpi mac80211 btusb edac_mce_amd snd_pci_ps snd_hda_codec btrtl snd_rpl_pci_acp6x hid_sensor_als snd_acp_pci btintel hid_sensor_trigger kvm_amd snd_hda_core snd_acp_legacy_common libarc4 industrialio_triggered_buffer btbcm snd_pci_acp6x btmtk snd_hwdep kfifo_buf kvm hid_sensor_iio_common snd_pcm cfg80211 industrialio bluetooth snd_pci_acp5x snd_timer snd_rn_pci_acp3x ucsi_acpi irqbypass snd_acp_config mousedev snd joydev typec_ucsi sp5100_tco vfat snd_soc_acpi cros_ec_lpcs hid_sensor_hub hid_multitouch cros_ec fat ecdh_generic rapl
[ 5103.706711]  typec pcspkr k10temp thunderbolt rfkill soundcore snd_pci_acp3x i2c_piix4 roles i2c_hid_acpi amd_pmc amd_pmf i2c_hid platform_profile mac_hid ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip6table_filter ip6_tables iptable_filter vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) i2c_dev sg crypto_user loop fuse nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee dm_mod usbhid amdgpu crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic amdxcp gf128mul i2c_algo_bit ghash_clmulni_intel drm_ttm_helper sha512_ssse3 ttm sha256_ssse3 drm_exec sha1_ssse3 gpu_sched serio_raw aesni_intel atkbd drm_suballoc_helper libps2 drm_buddy crypto_simd vivaldi_fmap nvme drm_display_helper cryptd nvme_core xhci_pci video i8042 cec ccp xhci_pci_renesas nvme_auth serio wmi
[ 5103.706799] CPU: 10 PID: 31186 Comm: kworker/u32:52 Tainted: G        W  OE      6.7.2-arch1-2 #1 96899bd75afcd7d7875d6a29e4be6d285bc2a7a8
[ 5103.706801] Hardware name: Framework Laptop 13 (AMD Ryzen 7040Series)/FRANMDCP05, BIOS 03.03 10/17/2023
[ 5103.706802] Workqueue: events_unbound async_run_entry_fn
[ 5103.706804] RIP: 0010:drv_stop+0xf5/0x100 [mac80211]
[ 5103.706824] Code: 0c 00 48 85 c0 74 0c 48 8b 78 08 48 89 de e8 32 03 05 00 65 ff 0d 73 c2 e9 3d 0f 85 39 ff ff ff e8 b0 d4 06 ee e9 2f ff ff ff <0f> 0b 5b e9 9e c9 f6 ee 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90
[ 5103.706825] RSP: 0018:ffff9d3d443bbc28 EFLAGS: 00010246
[ 5103.706827] RAX: 0000000000000000 RBX: ffff8d6c1f8b0900 RCX: ffff8d6c372d1668
[ 5103.706827] RDX: 0000000000000001 RSI: 0000000000000282 RDI: ffff8d6c1f8b0900
[ 5103.706828] RBP: ffff8d6c1f8b0900 R08: ffffffffb20ccf08 R09: 0000000000000400
[ 5103.706829] R10: fffffffffe529800 R11: 0000000000000110 R12: ffff8d6c1f8b11d0
[ 5103.706830] R13: ffff8d6c1f8b0e10 R14: 0000000000000000 R15: ffff8d6c06ed9c38
[ 5103.706830] FS:  0000000000000000(0000) GS:ffff8d6f2e880000(0000) knlGS:0000000000000000
[ 5103.706831] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5103.706832] CR2: 0000000000000000 CR3: 000000026ce20000 CR4: 0000000000f50ef0
[ 5103.706833] PKRU: 55555554
[ 5103.706834] Call Trace:
[ 5103.706835]  <TASK>
[ 5103.706835]  ? drv_stop+0xf5/0x100 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706856]  ? __warn+0x81/0x130
[ 5103.706858]  ? drv_stop+0xf5/0x100 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706879]  ? report_bug+0x171/0x1a0
[ 5103.706882]  ? handle_bug+0x3c/0x80
[ 5103.706884]  ? exc_invalid_op+0x17/0x70
[ 5103.706885]  ? asm_exc_invalid_op+0x1a/0x20
[ 5103.706888]  ? drv_stop+0xf5/0x100 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706909]  ? ieee80211_stop_device+0x4a/0x60 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706932]  ieee80211_do_stop+0x56a/0x800 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706960]  ieee80211_stop+0x58/0x180 [mac80211 902f9288341506cbd5447777d89c2b78aeeaced7]
[ 5103.706984]  __dev_close_many+0x9b/0x110
[ 5103.706990]  dev_close_many+0x8f/0x150
[ 5103.706992]  dev_close+0x83/0xb0
[ 5103.706995]  cfg80211_shutdown_all_interfaces+0x4d/0xf0 [cfg80211 a62516f15b07af8c116fcb015ffa2e4d56a4b700]
[ 5103.707015]  wiphy_resume+0xc1/0x1b0 [cfg80211 a62516f15b07af8c116fcb015ffa2e4d56a4b700]
[ 5103.707035]  ? __pfx_wiphy_resume+0x10/0x10 [cfg80211 a62516f15b07af8c116fcb015ffa2e4d56a4b700]
[ 5103.707054]  dpm_run_callback+0x89/0x1e0
[ 5103.707057]  device_resume+0xa2/0x1f0
[ 5103.707059]  async_resume+0x1e/0x60
[ 5103.707061]  async_run_entry_fn+0x31/0x130
[ 5103.707063]  process_one_work+0x171/0x340
[ 5103.707065]  worker_thread+0x27b/0x3a0
[ 5103.707067]  ? __pfx_worker_thread+0x10/0x10
[ 5103.707068]  kthread+0xe5/0x120
[ 5103.707070]  ? __pfx_kthread+0x10/0x10
[ 5103.707072]  ret_from_fork+0x31/0x50
[ 5103.707074]  ? __pfx_kthread+0x10/0x10
[ 5103.707076]  ret_from_fork_asm+0x1b/0x30
[ 5103.707079]  </TASK>
[ 5103.707080] ---[ end trace 0000000000000000 ]---
[ 5103.707137] ieee80211 phy0: PM: dpm_run_callback(): wiphy_resume+0x0/0x1b0 [cfg80211] returns -110
[ 5103.707162] ieee80211 phy0: PM: failed to restore async: error -110
[ 5103.709212] PM: hibernation: Basic memory bitmaps freed
[ 5103.709362] OOM killer enabled.
[ 5103.709363] Restarting tasks ... done.
[ 5103.710800] Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20231120183620
[ 5103.713804] PM: hibernation: hibernation exit
[ 5104.955381] usb 1-4: reset full-speed USB device number 2 using xhci_hcd
[ 5105.252003] usb 1-4: reset full-speed USB device number 2 using xhci_hcd
[ 5105.960035] Bluetooth: hci0: Device setup in 2197821 usecs
[ 5105.960048] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[ 5106.022879] Bluetooth: hci0: AOSP extensions version v1.00
[ 5106.022889] Bluetooth: hci0: AOSP quality report is supported
[ 5106.905199] mt7921e 0000:01:00.0: Message 00000010 (seq 8) timeout
[ 5106.905232] mt7921e 0000:01:00.0: Failed to get patch semaphore
[ 5106.905636] mt7921e 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0002 address=0xee0ad580 flags=0x0000]
[ 5110.105054] mt7921e 0000:01:00.0: Message 00000010 (seq 9) timeout
[ 5110.105092] mt7921e 0000:01:00.0: Failed to get patch semaphore
[ 5113.305423] mt7921e 0000:01:00.0: Message 000046ed (seq 10) timeout
[ 5113.305603] mt7921e 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0002 address=0xdb0c2580 flags=0x0000]
[ 5113.305621] mt7921e 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0002 address=0xe0983d00 flags=0x0000]
[ 5113.385423] mt7921e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20231120183400a

[ 5113.759977] mt7921e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20231120183441
[ 5117.825904] wlp1s0: authenticate with MACADDR (local address=MACADDR)
[ 5118.304715] wlp1s0: send auth to MACADDR (try 1/3)
[ 5119.683649] wlp1s0: send auth to MACADDR (try 2/3)
[ 5120.666934] wlp1s0: send auth to MACADDR (try 3/3)
[ 5121.678061] wlp1s0: authentication with MACADDR timed out
[ 5122.179551] wlp1s0: authenticate with MACADDR (local address=MACADDR)
[ 5122.193674] wlp1s0: send auth to MACADDR (try 1/3)
[ 5123.683035] wlp1s0: send auth to MACADDR (try 2/3)
[ 5124.747580] wlp1s0: send auth to MACADDR (try 3/3)
[ 5125.677800] wlp1s0: authentication with MACADDR timed out
[ 5126.620739] wlp1s0: authenticate with MACADDR (local address=MACADDR)
[ 5126.791136] wlp1s0: send auth to MACADDR (try 1/3)
[ 5127.677663] wlp1s0: send auth to MACADDR (try 2/3)
[ 5128.646649] wlp1s0: send auth to MACADDR (try 3/3)
[ 5129.707563] wlp1s0: authentication with MACADDR timed out
[ 5131.128732] wlp1s0: authenticate with MACADDR (local address=MACADDR)
[ 5131.139827] wlp1s0: send auth to MACADDR (try 1/3)
[ 5131.731653] wlp1s0: send auth to MACADDR (try 2/3)
[ 5132.722813] wlp1s0: send auth to MACADDR (try 3/3)
[ 5133.649915] wlp1s0: authentication with MACADDR timed out
[ 5140.380703] usb 1-4: reset full-speed USB device number 2 using xhci_hcd
[ 5140.670654] usb 1-4: reset full-speed USB device number 2 using xhci_hcd
[ 5141.577122] mt7921e 0000:01:00.0: ASIC revision: 79220010
[ 5141.629812] ------------[ cut here ]------------
[ 5141.629828] tasklet SCHED state not set: func 0x0
[ 5141.629964] WARNING: CPU: 10 PID: 50 at kernel/softirq.c:751 tasklet_clear_sched+0x64/0x70
[ 5141.629982] Modules linked in: mt7921e(+) ccm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp mt7921_common snd_hda_codec_realtek snd_sof intel_rapl_msr mt792x_lib snd_hda_codec_generic intel_rapl_common snd_sof_utils ledtrig_audio mt76_connac_lib snd_hda_codec_hdmi snd_soc_core mt76 snd_hda_intel snd_compress ac97_bus snd_intel_dspcfg snd_pcm_dmaengine snd_intel_sdw_acpi mac80211 btusb edac_mce_amd snd_pci_ps snd_hda_codec btrtl snd_rpl_pci_acp6x hid_sensor_als snd_acp_pci btintel hid_sensor_trigger kvm_amd snd_hda_core snd_acp_legacy_common libarc4 industrialio_triggered_buffer btbcm snd_pci_acp6x btmtk snd_hwdep kfifo_buf kvm hid_sensor_iio_common snd_pcm cfg80211 industrialio bluetooth snd_pci_acp5x snd_timer snd_rn_pci_acp3x ucsi_acpi irqbypass snd_acp_config mousedev snd joydev typec_ucsi sp5100_tco vfat snd_soc_acpi cros_ec_lpcs hid_sensor_hub hid_multitouch cros_ec fat ecdh_generic
[ 5141.630116]  rapl typec pcspkr k10temp thunderbolt rfkill soundcore snd_pci_acp3x i2c_piix4 roles i2c_hid_acpi amd_pmc amd_pmf i2c_hid platform_profile mac_hid ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip6table_filter ip6_tables iptable_filter vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) i2c_dev sg crypto_user loop fuse nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee dm_mod usbhid amdgpu crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic amdxcp gf128mul i2c_algo_bit ghash_clmulni_intel drm_ttm_helper sha512_ssse3 ttm sha256_ssse3 drm_exec sha1_ssse3 gpu_sched serio_raw aesni_intel atkbd drm_suballoc_helper libps2 drm_buddy crypto_simd vivaldi_fmap nvme drm_display_helper cryptd nvme_core xhci_pci video i8042 cec ccp xhci_pci_renesas nvme_auth serio wmi [last unloaded: mt7921e]
[ 5141.630260] CPU: 10 PID: 50 Comm: ksoftirqd/10 Tainted: G        W  OE      6.7.2-arch1-2 #1 96899bd75afcd7d7875d6a29e4be6d285bc2a7a8
[ 5141.630266] Hardware name: Framework Laptop 13 (AMD Ryzen 7040Series)/FRANMDCP05, BIOS 03.03 10/17/2023
[ 5141.630269] RIP: 0010:tasklet_clear_sched+0x64/0x70
[ 5141.630275] Code: 00 48 c7 c0 ab 60 80 b1 48 8b 57 18 48 c7 c6 a1 4f 80 b1 48 0f 45 f0 48 c7 c7 20 87 87 b1 c6 05 8a e1 f0 01 01 e8 4c 75 ff ff <0f> 0b eb b3 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90
[ 5141.630277] RSP: 0018:ffff9d3d40337e38 EFLAGS: 00010282
[ 5141.630279] RAX: 0000000000000000 RBX: ffff8d6c1f8b4700 RCX: 0000000000000027
[ 5141.630281] RDX: ffff8d6f2e8a16c8 RSI: 0000000000000001 RDI: ffff8d6f2e8a16c0
[ 5141.630282] RBP: 0000000000000000 R08: 0000000000000000 R09: ffff9d3d40337cc0
[ 5141.630283] R10: 0000000000000003 R11: ffffffffb20ca768 R12: ffff8d6f2e8a11d0
[ 5141.630285] R13: ffff8d6c1f8b4710 R14: 0000000000000040 R15: 0000000000000006
[ 5141.630286] FS:  0000000000000000(0000) GS:ffff8d6f2e880000(0000) knlGS:0000000000000000
[ 5141.630287] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5141.630288] CR2: 000079e2d9fe5a38 CR3: 000000026ce20000 CR4: 0000000000f50ef0
[ 5141.630290] PKRU: 55555554
[ 5141.630291] Call Trace:
[ 5141.630295]  <TASK>
[ 5141.630298]  ? tasklet_clear_sched+0x64/0x70
[ 5141.630301]  ? __warn+0x81/0x130
[ 5141.630311]  ? tasklet_clear_sched+0x64/0x70
[ 5141.630313]  ? report_bug+0x171/0x1a0
[ 5141.630323]  ? prb_read_valid+0x1b/0x30
[ 5141.630331]  ? srso_alias_return_thunk+0x5/0xfbef5
[ 5141.630341]  ? handle_bug+0x3c/0x80
[ 5141.630349]  ? exc_invalid_op+0x17/0x70
[ 5141.630351]  ? asm_exc_invalid_op+0x1a/0x20
[ 5141.630361]  ? tasklet_clear_sched+0x64/0x70
[ 5141.630363]  ? tasklet_clear_sched+0x64/0x70
[ 5141.630365]  tasklet_action_common.isra.0+0xa8/0x240
[ 5141.630373]  __do_softirq+0xc9/0x2c8
[ 5141.630384]  ? __pfx_smpboot_thread_fn+0x10/0x10
[ 5141.630393]  run_ksoftirqd+0x2c/0x40
[ 5141.630395]  smpboot_thread_fn+0xd9/0x1d0
[ 5141.630398]  kthread+0xe5/0x120
[ 5141.630421]  ? __pfx_kthread+0x10/0x10
[ 5141.630424]  ret_from_fork+0x31/0x50
[ 5141.630436]  ? __pfx_kthread+0x10/0x10
[ 5141.630438]  ret_from_fork_asm+0x1b/0x30
[ 5141.630446]  </TASK>
[ 5141.630447] ---[ end trace 0000000000000000 ]---
[ 5141.659840] mt7921e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20231120183400a

[ 5141.675391] mt7921e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20231120183441
[ 5142.794832] mt7921e 0000:01:00.0 wlp1s0: renamed from wlan0
[ 5145.894269] wlp1s0: authenticate with MACADDR (local address=MACADDR)
[ 5146.375711] wlp1s0: send auth to MACADDR (try 1/3)
[ 5146.378971] wlp1s0: authenticated
[ 5146.380288] wlp1s0: associate with MACADDR (try 1/3)
[ 5146.392659] wlp1s0: RX AssocResp from MACADDR (capab=0x1011 status=0 aid=5)
[ 5146.418167] wlp1s0: associated
[ 5146.683908] wlp1s0: Limiting TX power to 35 (35 - 0) dBm as advertised by MACADDR
[ 5191.782208] usb 1-4: reset full-speed USB device number 2 using xhci_hcd
[ 5192.072225] usb 1-4: reset full-speed USB device number 2 using xhci_hcd

I have the same issue, also on 6.7.2.

Perhaps this is a regression in 6.7.2? I downgraded to 6.7.0 and wifi seems to recover after resume, though I get this message in the logs:

mt7921e 0000:01:00.0: Message 00020007 (seq 7) timeout
mt7921e 0000:01:00.0: PM: dpm_run_callback(): pci_pm_restore+0x0/0x1b0 returns -110
mt7921e 0000:01:00.0: PM: failed to restore async: error -110

6.7.1 doesn’t appear to have any relevant changes: Linux 6.7.1 [LWN.net]

6.7.2 includes changes to the mt7921 driver: Linux 6.7.2 [LWN.net]

Specifically, a change that mentions suspend/resume (Maybe intended to fix the timeout above?): [PATCH 6.7 167/641] wifi: mt76: mt7921: fix CLC command timeout when suspend/resume - Greg Kroah-Hartman

Yeah, same problem here on Arch with 6.7.3:

[14959.806725] mt7921e 0000:01:00.0: Message 00020007 (seq 15) timeout
[14959.807292] mt7921e 0000:01:00.0: PM: dpm_run_callback(): pci_pm_restore+0x0/0xe0 returns -110
[14959.807316] mt7921e 0000:01:00.0: PM: failed to restore async: error -110
[14959.885568] mt7921e 0000:01:00.0: Failed to get patch semaphore
[14963.007591] mt7921e 0000:01:00.0: Message 00000010 (seq 13) timeout
[14963.007604] mt7921e 0000:01:00.0: Failed to get patch semaphore
[14966.208228] mt7921e 0000:01:00.0: Message 000046ed (seq 14) timeout

doing:

sudo rmmod mt7921e && sudo modprobe mt7921e

brings it back to life, otherwise it refuses to connect to networks with:

[15391.041412] wlan0: authenticate with xx:xx:xx:xx:xx:xx (local address=yy:yy:yy:yy:yy:yy)
[15391.044300] wlan0: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
[15391.790155] wlan0: send auth to xx:xx:xx:xx:xx:xx (try 2/3)
[15392.889980] wlan0: send auth to xx:xx:xx:xx:xx:xx (try 3/3)
[15393.897698] wlan0: authentication with xx:xx:xx:xx:xx:xx timed out

Rebooting also fixes this until another suspend/resume.

1 Like

I’m hitting the same issue here as well, on NixOS with Zen kernels 6.7.2, 6.7.3 and 6.7.4.

Looks like this was introduced in 6.7 and is gonna be fixed in 6.8.

Easy solution is to switch to an LTS kernel, for Arch the linux-lts kernel is at 6.6.16 currently, I have no problems since I switched to that one a week ago.