From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38664CAC5B0 for ; Sun, 5 Oct 2025 01:17:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id F32DFC4CEF9; Sun, 5 Oct 2025 01:17:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 7AF82C4CEF1 for ; Sun, 5 Oct 2025 01:17:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org 7AF82C4CEF1 Authentication-Results: smtp.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=gentoo.org Received: from mop.sam.mop (2.8.3.0.0.0.0.0.0.0.0.0.0.0.0.0.a.5.c.d.c.d.9.1.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:19dc:dc5a::382]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sam) by smtp.gentoo.org (Postfix) with ESMTPSA id A8D2D340F69; Sun, 05 Oct 2025 01:17:41 +0000 (UTC) From: Sam James To: Allan Wang (=?utf-8?B?546L5a625YGJ?=) List-Id: Cc: "linux-mediatek@lists.infradead.org" , Mingyen Hsieh (=?utf-8?B?6Kyd5piO?= =?utf-8?B?6Ku6?=) , "xiangzhedev@gmail.com" , "linux-firmware@kernel.org" Subject: Re: Regression in linux-firmware-20250917 for mt7921e driver In-Reply-To: Organization: Gentoo References: <87bjn6fgr6.fsf@gentoo.org> <87a52n1xvv.fsf@gentoo.org> User-Agent: mu4e 1.12.13; emacs 31.0.50 Date: Sun, 05 Oct 2025 02:17:39 +0100 Message-ID: <87347ycfkc.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Allan Wang (=E7=8E=8B=E5=AE=B6=E5=81=89) writes: > Hi Sam, Hi Allan, > > Would you please try "insmod mt7921_common disable_clc=3D1"=20 > to help us clarifying this issue ? Sorry for the delay -- this ended up in the wrong inbox. I just tested it and that *seems* to help, but the nature of the problem makes it tricky for me to test it on/off. > > > On Sun, 2025-09-21 at 19:08 +0100, Sam James wrote: >>=20 >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >>=20 >>=20 >> Sam James writes: >>=20 >> > Hi, >> >=20 >> > I'm forwarding a downstream report in Gentoo from >> > https://urldefense.com/v3/__https://bugs.gentoo.org/963106__;!!CTRNKA9= wMg0ARbw!hhyPN8KRVREOUZaTnwDUr6LRxdeYtp4Gnf4XjwU7iMWkTa68kDJhqn79Hwc7wVLveu= sZX55jiMSgSw$ >> > which also came up in Arch at >> > https://urldefense.com/v3/__https://gitlab.archlinux.org/archlinux/pac= kaging/packages/linux-firmware/-/issues/29__;!!CTRNKA9wMg0ARbw!hhyPN8KRVREO= UZaTnwDUr6LRxdeYtp4Gnf4XjwU7iMWkTa68kDJhqn79Hwc7wVLveusZX55kCCRjXw$ >> > and on the linux-firmware gitlab at >> > https://urldefense.com/v3/__https://gitlab.com/kernel-firmware/linux-f= irmware/-/merge_requests/684__;!!CTRNKA9wMg0ARbw!hhyPN8KRVREOUZaTnwDUr6LRxd= eYtp4Gnf4XjwU7iMWkTa68kDJhqn79Hwc7wVLveusZX5770ZdvXg$ >> > . >> >=20 >> > The user describes it on the Arch bug as: >> > """ >> > core/linux-firmware-mediatek@20250917-1 causes network to fail >> > startup >> > and dramatically slows down basically every operation in the >> > kernel. >> >=20 >> > symptoms are a pegged kworker thread at 100% cpu util, shutdown >> > being >> > prevented, extremely slow commands like sudo, filesystem access. I >> > suspect a interrupt storm of some sort. >> > """ >> >=20 >> > And another mentions that removing the module w/ modprobe -r >> > mt7921e hangs. >>=20 >> It turns out that I myself do have such a machine, and here's the >> splat >> I got in dmesg: >>=20 >> [ 29.647345] mt7921e 0000:04:00.0: Message 0004005c (seq 12) >> timeout >> [ 29.648029] ------------[ cut here ]------------ >> [ 29.648033] WARNING: CPU: 8 PID: 149 at drivers/iommu/dma- >> iommu.c:823 __iommu_dma_unmap+0x13e/0x150 >> [ 29.648046] Modules linked in: rfcomm snd_seq_dummy snd_hrtimer >> snd_seq snd_seq_device des3_ede_x86_64 des_generic libdes md4 >> nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet >> nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat >> ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw >> ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 >> nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security nf_tables >> ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter >> ip_tables bnep cuse uvcvideo uvc videobuf2_vmalloc videobuf2_memops >> videobuf2_v4l2 btusb videobuf2_common btrtl btintel videodev btbcm >> btmtk bluetooth mc amdgpu amd_atl intel_rapl_msr intel_rapl_common >> snd_soc_dmic snd_soc_ps_mach snd_ps_pdm_dma snd_sof_amd_acp70 >> 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 >> snd_sof snd_sof_utils edac_mce_amd snd_pci_ps snd_soc_acpi_amd_match >> vfat snd_amd_sdw_acpi soundwire_amd fat >> [ 29.648205] soundwire_generic_allocation snd_hda_codec_realtek >> mt7921e kvm_amd soundwire_bus mt7921_common snd_hda_codec_generic >> snd_ctl_led snd_soc_sdca snd_hda_scodec_component mt792x_lib >> snd_hda_codec_hdmi snd_hda_scodec_cs35l41_spi kvm mt76_connac_lib >> regmap_spi snd_soc_core amdxcp drm_panel_backlight_quirks mt76 >> drm_ttm_helper snd_hda_intel ttm snd_intel_dspcfg snd_compress >> ac97_bus i2c_algo_bit snd_pcm_dmaengine irqbypass snd_intel_sdw_acpi >> snd_rpl_pci_acp6x spd5118 mac80211 drm_suballoc_helper snd_hda_codec >> snd_acp_pci snd_hda_scodec_cs35l41_i2c rapl snd_amd_acpi_mach >> snd_acp_legacy_common libarc4 drm_client_lib snd_hda_scodec_cs35l41 >> snd_hda_core drm_exec snd_soc_cs_amp_lib amdxdna drm_buddy >> snd_pci_acp6x snd_soc_cs35l41_lib thinkpad_acpi think_lmi >> snd_pci_acp5x drm_display_helper snd_hwdep cs_dsp gpu_sched cfg80211 >> pcspkr snd_pcm cec drm_shmem_helper sparse_keymap snd_timer >> snd_rn_pci_acp3x platform_profile snd_acp_config snd snd_soc_acpi >> rfkill drm_kms_helper i2c_piix4 amd_pmc soundcore >> [ 29.648341] serial_multi_instantiate firmware_attributes_class >> snd_pci_acp3x k10temp i2c_smbus joydev wmi_bmof fuse loop nfnetlink >> zstd zram lz4hc_compress lz4_compress dm_crypt typec_displayport >> ucsi_acpi typec_ucsi typec nvme rtsx_pci_sdmmc nvme_core >> polyval_clmulni mmc_core ghash_clmulni_intel video sha512_ssse3 >> nvme_keyring wacom hid_multitouch thunderbolt sha1_ssse3 rtsx_pci >> nvme_auth sp5100_tco wmi i2c_hid_acpi i2c_hid serio_raw >> pkcs8_key_parser >> [ 29.648415] CPU: 8 UID: 0 PID: 149 Comm: kworker/8:1 Not tainted >> 6.16.7-gentoo-dist #1 PREEMPT(lazy) >> [ 29.648421] Hardware name: LENOVO 21JXCTO1WW/21JXCTO1WW, BIOS >> N41ET58W (1.35 ) 03/19/2025 >> [ 29.648426] Workqueue: events mt7921_mac_init [mt7921_common] >> [ 29.648439] RIP: 0010:__iommu_dma_unmap+0x13e/0x150 >> [ 29.648446] Code: 00 00 00 00 48 c7 44 24 10 00 00 00 00 48 c7 44 >> 24 28 00 00 00 00 48 c7 04 24 ff ff ff ff 4c 89 74 24 18 4c 89 74 24 >> 20 eb 87 <0f> 0b e9 79 ff ff ff e8 a6 9d 5e 00 66 0f 1f 44 00 00 90 >> 90 90 90 >> [ 29.648450] RSP: 0018:ffffcbc84091fc98 EFLAGS: 00010206 >> [ 29.648455] RAX: 0000000000008000 RBX: 00000000ffa00000 RCX: >> ffffffffffffffff >> [ 29.648459] RDX: 00000000ffa07fff RSI: 0000000000008000 RDI: >> ffff8940da47b040 >> [ 29.648462] RBP: 0000000000003000 R08: fffffffffffffff8 R09: >> 0000000000002000 >> [ 29.648465] R10: 0000000000040000 R11: 206531323937746d R12: >> ffff894082976810 >> [ 29.648467] R13: ffffcbc84091fc98 R14: ffffcbc84091fcb0 R15: >> 0000000000000000 >> [ 29.648471] FS: 0000000000000000(0000) GS:ffff894ff58a4000(0000) >> knlGS:0000000000000000 >> [ 29.648474] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> [ 29.648478] CR2: 00007fbcc40e4010 CR3: 0000000e3202c000 CR4: >> 0000000000f50ef0 >> [ 29.648481] PKRU: 55555554 >> [ 29.648484] Call Trace: >> [ 29.648490] >> [ 29.648500] iommu_dma_unmap_page+0x48/0x90 >> [ 29.648509] dma_unmap_page_attrs+0x23b/0x260 >> [ 29.648518] mt76_dma_queue_reset+0x304/0x4e0 [mt76] >> [ 29.648533] ? mt76_dma_queue_reset+0x1a0/0x4e0 [mt76] >> [ 29.648541] mt792x_wpdma_reset+0x85/0x2d0 [mt792x_lib] >> [ 29.648551] mt7921_mac_init+0x248/0x400 [mt7921_common] >> [ 29.648558] process_one_work+0x18a/0x340 >> [ 29.648566] worker_thread+0x256/0x3a0 >> [ 29.648571] ? __pfx_worker_thread+0x10/0x10 >> [ 29.648576] kthread+0xf9/0x240 >> [ 29.648582] ? __pfx_kthread+0x10/0x10 >> [ 29.648587] ? __pfx_kthread+0x10/0x10 >> [ 29.648592] ret_from_fork+0xf2/0x110 >> [ 29.648600] ? __pfx_kthread+0x10/0x10 >> [ 29.648604] ret_from_fork_asm+0x1a/0x30 >> [ 29.648616] >> [ 29.648618] ---[ end trace 0000000000000000 ]--- >> [ 32.847581] mt7921e 0000:04:00.0: Message 00000010 (seq 13) >> timeout >> [ 32.847600] mt7921e 0000:04:00.0: Failed to get patch semaphore >> [ 36.047344] mt7921e 0000:04:00.0: Message 00000010 (seq 14) >> timeout >> [ 36.047367] mt7921e 0000:04:00.0: Failed to get patch semaphore >> [ 39.247415] mt7921e 0000:04:00.0: Message 00000010 (seq 15) >> timeout >> [ 39.247433] mt7921e 0000:04:00.0: Failed to get patch semaphore >> [ 42.447428] mt7921e 0000:04:00.0: Message 00000010 (seq 1) timeout >> [ 42.447452] mt7921e 0000:04:00.0: Failed to get patch semaphore >>=20 >> sam > > > ************* MEDIATEK Confidentiality Notice > ******************** > The information contained in this e-mail message (including any=20 > attachments) may be confidential, proprietary, privileged, or otherwise > exempt from disclosure under applicable laws. It is intended to be=20 > conveyed only to the designated recipient(s). Any use, dissemination,=20 > distribution, printing, retaining or copying of this e-mail (including it= s=20 > attachments) by unintended recipient(s) is strictly prohibited and may=20 > be unlawful. If you are not an intended recipient of this e-mail, or beli= eve >=20=20 > that you have received this e-mail in error, please notify the sender=20 > immediately (by replying to this e-mail), delete any and all copies of=20 > this e-mail (including any attachments) from your system, and do not > disclose the content of this e-mail to any other person. Thank you!