PCie SMMU issue: Unhandled context fault

Hi NVpepole
I have got the following error when I insmod a wifi driver :

3,7381,1840194478,-;arm-smmu 8000000.iommu: Unhandled context fault: fsr=0x80000402, iova=0xffe66100, fsynr=0x7d0013, cbfrsynra=0x1008, cb=4
 SUBSYSTEM=platform
 DEVICE=+platform:8000000.iommu
3,7382,1840207288,-;mc-err: unknown mcerr fault, int_status=0x00000000, ch_int_status=0x00000000, hubc_int_status=0x00000000 sbs_int_status=0x00000000, hub_int_status=0x00000000

Could you tell me how can I solve this?

Hi

Such issue is not able to be answered just by few lines you provided. What kind of wifi device are you using?

Hi WayneWWW
I use Realtek wifi chip RTL8192FR on PCIe7.

6,7286,1827821562,-;Realtek WLAN driver driver version 4.0.8.4(2022-07-07)
6,7287,1827821568,-;Adaptivity function - version 9.7.08
6,7288,1827822051,-;Realtek WLAN driver 0007:01:00.0: Adding to iommu group 10
 SUBSYSTEM=pci
 DEVICE=+pci:0007:01:00.0
6,7289,1827822368,-;=====>> INSIDE rtl8192cd_init_one <<=====
6,7290,1827822440,-;Device Name = RTKWiFi0
6,7291,1827822442,-;VIF_NUM=0
6,7292,1827822674,-;Realtek WLAN driver 0007:01:00.0: enabling device (0000 -> 0003)
 SUBSYSTEM=pci
 DEVICE=+pci:0007:01:00.0

This Issue have such information as below:

6,7383,1840223004,-;------------[ cut here ]------------
4,7384,1840223017,-;WARNING: CPU: 0 PID: 57 at drivers/iommu/io-pgtable-arm.c:594 __arm_lpae_unmap+0x378/0x498
6,7385,1840223018,-;Modules linked in: rtl8192cd(OE) ip6table_filter(E) ip6table_nat(E) xt_conntrack(E) nf_conntrack_netlink(E) nfnetlink(E) xt_addrtype(E) iptable_filter(E) br_netfilter(E) bnep(E) lzo_rle(E) lzo_compress(E) zram(E) overlay(E) ramoops(E) reed_solomon(E) ip6table_mangle(E) ip6_tables(E) iptable_mangle(E) cfg80211(E) loop(E) rmnet_ctl(E) rmnet_core(E) snd_soc_tegra186_asrc(E) snd_soc_tegra186_arad(E) snd_soc_tegra210_iqc(E) snd_soc_tegra186_dspk(E) snd_soc_tegra210_ope(E) snd_soc_tegra210_mvc(E) snd_soc_tegra210_afc(E) snd_soc_tegra210_dmic(E) snd_soc_tegra210_adx(E) snd_soc_tegra210_amx(E) snd_soc_tegra210_i2s(E) snd_soc_tegra210_admaif(E) snd_soc_tegra210_mixer(E) snd_soc_tegra210_sfc(E) snd_soc_tegra_pcm(E) aes_ce_blk(E) crypto_simd(E) cryptd(E) aes_ce_cipher(E) ghash_ce(E) sha2_ce(E) sha256_arm64(E) sha1_ce(E) snd_soc_spdif_tx(E) snd_soc_tegra_machine_driver(E) r8168(E) snd_soc_tegra210_adsp(E) snd_hda_codec_hdmi(E) snd_soc_tegra_utils(E) snd_soc_simple_card_utils(E) nvadsp(E)
6,7386,1840223077,c; snd_soc_tegra210_ahub(E) snd_hda_tegra(E) tegra210_adma(E) r8169(E) userspace_alert(E) snd_hda_codec(E) realtek(E) snd_hda_core(E) tegra_bpmp_thermal(E) spi_tegra114(E) arg(OE) cfg(OE) nvidia_drm(OE) nvidia_modeset(OE) nvidia(OE) pwm_fan(E) nvgpu(E) nvmap(E) ina3221(E) binfmt_misc(E)
6,7387,1840223103,-;CPU: 0 PID: 57 Comm: irq/18-mc_statu Tainted: G        W  OE     5.10.104-tegra-zte #1
6,7388,1840223104,-;Hardware name: Unknown NVIDIA Orin NX Developer Kit/NVIDIA Orin NX Developer Kit, BIOS 2.1-32413640 01/24/2023
6,7389,1840223107,-;pstate: 80400089 (Nzcv daIf +PAN -UAO -TCO BTYPE=--)
6,7390,1840223109,-;pc : __arm_lpae_unmap+0x378/0x498
6,7391,1840223110,-;lr : __arm_lpae_unmap+0x3c/0x498
6,7392,1840223111,-;sp : ffff8000100038c0
6,7393,1840223112,-;x29: ffff8000100038c0 x28: ffff5f6d9104ac00
6,7394,1840223114,-;x27: 0000000000001000 x26: 0000000000000003
6,7395,1840223115,-;x25: 00000000ffe66000 x24: 0000000000001000
6,7396,1840223117,-;x23: ffff5f6dcc215000 x22: ffff800010003c80
6,7397,1840223119,-;x21: ffff5f6d84844500 x20: 0000000000000003
6,7398,1840223120,-;x19: 0000000000000000 x18: 0000000000000010
6,7399,1840223122,-;x17: 0000000000000000 x16: ffffa1215088f0c8
6,7400,1840223123,-;x15: ffff5f6d80374df0 x14: 746e69202c746c75
6,7401,1840223125,-;x13: 616620727265636d x12: 3030303030307830
6,7402,1840223127,-;x11: 0000000000000040 x10: ffffa121525e9580
6,7403,1840223128,-;x9 : ffffa1215200a000 x8 : ffffa09380000000
6,7404,1840223130,-;x7 : 0000000000000000 x6 : 0000000000000066
6,7405,1840223131,-;x5 : ffff5f6dcc215000 x4 : ffff5f6dcc215330
6,7406,1840223133,-;x3 : 00000000000ffe66 x2 : 0000000000000009
6,7407,1840223134,-;x1 : 0000000000000009 x0 : 000000000000000c
6,7408,1840223136,-;Call trace:
6,7409,1840223138,-; __arm_lpae_unmap+0x378/0x498
6,7410,1840223140,-; __arm_lpae_unmap+0x10c/0x498
6,7411,1840223141,-; __arm_lpae_unmap+0x10c/0x498
6,7412,1840223143,-; __arm_lpae_unmap+0x10c/0x498
6,7413,1840223144,-; arm_lpae_unmap+0x88/0xa8
6,7414,1840223148,-; arm_smmu_unmap+0x70/0x260
6,7415,1840223149,-; __iommu_unmap+0xb8/0x1d0
6,7416,1840223150,-; iommu_unmap_fast+0x40/0x50
6,7417,1840223152,-; __iommu_dma_unmap+0x8c/0x110
6,7418,1840223153,-; iommu_dma_unmap_page+0x50/0x88
6,7419,1840223157,-; dma_unmap_page_attrs+0x64/0x200
6,7420,1840223195,-; rtl88XX_rx_isr+0x480/0x1290 [rtl8192cd]
6,7421,1840223220,-; rtl8192cd_rx_isr+0x24/0xa8 [rtl8192cd]
6,7422,1840223240,-; rtl8192cd_rx_dsr+0x34/0x68 [rtl8192cd]
6,7423,1840223244,-; tasklet_action_common.isra.0+0x15c/0x180
6,7424,1840223246,-; tasklet_hi_action+0x30/0x38
6,7425,1840223249,-; __do_softirq+0x130/0x3d8
6,7426,1840223251,-; irq_exit+0xc0/0xe0
6,7427,1840223254,-; __handle_domain_irq+0x74/0xc8
6,7428,1840223255,-; gic_handle_irq+0x68/0x134
6,7429,1840223256,-; el1_irq+0xd0/0x180
6,7430,1840223258,-; console_unlock+0x36c/0x540
6,7431,1840223260,-; vprintk_emit+0x124/0x2a0
6,7432,1840223261,-; vprintk_default+0x48/0x58
6,7433,1840223263,-; vprintk_func+0xfc/0x2a8
6,7434,1840223267,-; printk+0x70/0x94
6,7435,1840223271,-; log_mcerr_fault+0x9f0/0xa50
6,7436,1840223273,-; tegra_mcerr_thread+0xd4/0x118
6,7437,1840223275,-; irq_thread_fn+0x34/0xa0
6,7438,1840223277,-; irq_thread+0x158/0x250
6,7439,1840223279,-; kthread+0x148/0x168
6,7440,1840223280,-; ret_from_fork+0x10/0x1c
4,7441,1840223282,-;---[ end trace f8398e5844bcf6aa ]---
6,7442,1840223297,-;------------[ cut here ]------------
4,7443,1840223300,-;WARNING: CPU: 0 PID: 57 at drivers/iommu/dma-iommu.c:519 __iommu_dma_unmap+0x100/0x110
6,7444,1840223301,-;Modules linked in: rtl8192cd(OE) ip6table_filter(E) ip6table_nat(E) xt_conntrack(E) nf_conntrack_netlink(E) nfnetlink(E) xt_addrtype(E) iptable_filter(E) br_netfilter(E) bnep(E) lzo_rle(E) lzo_compress(E) zram(E) overlay(E) ramoops(E) reed_solomon(E) ip6table_mangle(E) ip6_tables(E) iptable_mangle(E) cfg80211(E) loop(E) rmnet_ctl(E) rmnet_core(E) snd_soc_tegra186_asrc(E) snd_soc_tegra186_arad(E) snd_soc_tegra210_iqc(E) snd_soc_tegra186_dspk(E) snd_soc_tegra210_ope(E) snd_soc_tegra210_mvc(E) snd_soc_tegra210_afc(E) snd_soc_tegra210_dmic(E) snd_soc_tegra210_adx(E) snd_soc_tegra210_amx(E) snd_soc_tegra210_i2s(E) snd_soc_tegra210_admaif(E) snd_soc_tegra210_mixer(E) snd_soc_tegra210_sfc(E) snd_soc_tegra_pcm(E) aes_ce_blk(E) crypto_simd(E) cryptd(E) aes_ce_cipher(E) ghash_ce(E) sha2_ce(E) sha256_arm64(E) sha1_ce(E) snd_soc_spdif_tx(E) snd_soc_tegra_machine_driver(E) r8168(E) snd_soc_tegra210_adsp(E) snd_hda_codec_hdmi(E) snd_soc_tegra_utils(E) snd_soc_simple_card_utils(E) nvadsp(E)
6,7445,1840223330,c; snd_soc_tegra210_ahub(E) snd_hda_tegra(E) tegra210_adma(E) r8169(E) userspace_alert(E) snd_hda_codec(E) realtek(E) snd_hda_core(E) tegra_bpmp_thermal(E) spi_tegra114(E) arg(OE) cfg(OE) nvidia_drm(OE) nvidia_modeset(OE) nvidia(OE) pwm_fan(E) nvgpu(E) nvmap(E) ina3221(E) binfmt_misc(E)
6,7446,1840223342,-;CPU: 0 PID: 57 Comm: irq/18-mc_statu Tainted: G        W  OE     5.10.104-tegra-zte #1
6,7447,1840223343,-;Hardware name: Unknown NVIDIA Orin NX Developer Kit/NVIDIA Orin NX Developer Kit, BIOS 2.1-32413640 01/24/2023
6,7448,1840223344,-;pstate: 80400089 (Nzcv daIf +PAN -UAO -TCO BTYPE=--)
6,7449,1840223346,-;pc : __iommu_dma_unmap+0x100/0x110
6,7450,1840223347,-;lr : __iommu_dma_unmap+0x8c/0x110
6,7451,1840223348,-;sp : ffff800010003c40
6,7452,1840223348,-;x29: ffff800010003c40 x28: ffff5f6d9104ac00
6,7453,1840223350,-;x27: ffff5f6dd6df2100 x26: ffff5f6dd6de0940
6,7454,1840223351,-;x25: ffff5f6dd7c000c0 x24: ffff5f6d84c6b800
6,7455,1840223353,-;x23: ffff5f6d84845f58 x22: 00000000ffe66100
6,7456,1840223355,-;x21: ffff5f6d80374880 x20: 00000000ffe66000
6,7457,1840223356,-;x19: 0000000000001000 x18: 0000000000000010
6,7458,1840223358,-;x17: 0000000000000000 x16: ffffa1215088f0c8
6,7459,1840223359,-;x15: ffff5f6d80374df0 x14: 746e69202c746c75
6,7460,1840223360,-;x13: 616620727265636d x12: 3030303030307830
6,7461,1840223362,-;x11: 0000000000000040 x10: ffffa121525e9580
6,7462,1840223364,-;x9 : 00000000000ffe66 x8 : ffffa09380000000
6,7463,1840223365,-;x7 : 0000000000000000 x6 : 0000000000000066
6,7464,1840223367,-;x5 : 0000000000000009 x4 : ffff5f6dcc215000
6,7465,1840223369,-;x3 : 000000000000003f x2 : 0000000000000040
6,7466,1840223370,-;x1 : ffff5f6dcc215338 x0 : 0000000000000000
6,7467,1840223372,-;Call trace:
6,7468,1840223374,-; __iommu_dma_unmap+0x100/0x110
6,7469,1840223375,-; iommu_dma_unmap_page+0x50/0x88
6,7470,1840223377,-; dma_unmap_page_attrs+0x64/0x200
6,7471,1840223397,-; rtl88XX_rx_isr+0x480/0x1290 [rtl8192cd]
6,7472,1840223415,-; rtl8192cd_rx_isr+0x24/0xa8 [rtl8192cd]
6,7473,1840223433,-; rtl8192cd_rx_dsr+0x34/0x68 [rtl8192cd]
6,7474,1840223436,-; tasklet_action_common.isra.0+0x15c/0x180
6,7475,1840223438,-; tasklet_hi_action+0x30/0x38
6,7476,1840223439,-; __do_softirq+0x130/0x3d8
6,7477,1840223440,-; irq_exit+0xc0/0xe0
6,7478,1840223442,-; __handle_domain_irq+0x74/0xc8
6,7479,1840223443,-; gic_handle_irq+0x68/0x134
6,7480,1840223444,-; el1_irq+0xd0/0x180
6,7481,1840223446,-; console_unlock+0x36c/0x540
6,7482,1840223448,-; vprintk_emit+0x124/0x2a0
6,7483,1840223449,-; vprintk_default+0x48/0x58
6,7484,1840223451,-; vprintk_func+0xfc/0x2a8
6,7485,1840223453,-; printk+0x70/0x94
6,7486,1840223455,-; log_mcerr_fault+0x9f0/0xa50
6,7487,1840223456,-; tegra_mcerr_thread+0xd4/0x118
6,7488,1840223458,-; irq_thread_fn+0x34/0xa0
6,7489,1840223460,-; irq_thread+0x158/0x250
6,7490,1840223462,-; kthread+0x148/0x168
6,7491,1840223463,-; ret_from_fork+0x10/0x1c
4,7492,1840223464,-;---[ end trace f8398e5844bcf6ab ]---

And it will repeat warning until kernel crash.

Sorry for the late response, have you managed to get issue resolved or still need the support? Thanks

Hi kayccc
Thank you for your reply. The issue is solved by using a new driver.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.