Stacktrace connecting monitor to USB-C DisplayPort connected
When plugging a monitor to the USBC DiplayPort on ASUS Zephyrus G14 (GA401IU.212), the following stack trace get printed out to dmesg
[ 22.918994] ------------[ cut here ]------------
[ 22.918999] WARNING: CPU: 2 PID: 1280 at drivers/iommu/dma-iommu.c:690 __iommu_dma_unmap+0x159/0x170
[ 22.919007] Modules linked in: vxlan xt_policy xt_u32 ip6t_REJECT nf_reject_ipv6 ipt_REJECT xt_nat nf_reject_ipv4 xt_multiport xt_cgroup veth xt_mark xt_owner xt_tcpudp xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype nft_compat br_netfilter bridge stp llc nf_tables nfnetlink xfrm_user xfrm_algo l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel pppox ccm rfcomm snd_seq_dummy snd_hrtimer zstd nvidia_uvm(POE) overlay cmac algif_hash zram algif_skcipher af_alg bnep snd_sof_amd_rembrandt snd_hda_codec_realtek snd_sof_amd_renoir snd_sof_amd_acp snd_hda_codec_generic snd_sof_pci snd_sof_xtensa_dsp dm_crypt snd_hda_codec_hdmi snd_sof snd_hda_intel snd_sof_utils snd_intel_dspcfg snd_intel_sdw_acpi nls_iso8859_1 snd_hda_codec iwlmvm snd_soc_core intel_rapl_msr snd_hda_core intel_rapl_common snd_hwdep snd_compress nvidia_drm(POE) ac97_bus nvidia_modeset(POE) snd_pcm_dmaengine edac_mce_amd snd_seq_midi btusb
[ 22.919070] snd_pci_ps snd_seq_midi_event mac80211 snd_rpl_pci_acp6x btrtl snd_acp_pci snd_rawmidi btbcm snd_pci_acp6x kvm_amd btintel btmtk nvidia(POE) snd_seq libarc4 joydev input_leds snd_pcm kvm bluetooth iwlwifi snd_pci_acp5x asus_nb_wmi ecdh_generic snd_seq_device hid_multitouch apple_mfi_fastcharge ecc snd_rn_pci_acp3x rapl bfq snd_timer wmi_bmof snd_acp_config k10temp cfg80211 snd_soc_acpi snd snd_pci_acp3x soundcore ccp ucsi_acpi typec_ucsi typec asus_wireless mac_hid sch_fq_codel kyber_iosched ipmi_devintf ipmi_msghandler msr parport_pc ppdev lp parport ramoops pstore_blk reed_solomon pstore_zone efi_pstore ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear system76_io(OE) system76_acpi(OE) hid_logitech_hidpp hid_asus hid_apple asus_wmi ledtrig_audio sparse_keymap hid_logitech_dj platform_profile usbhid amdgpu iommu_v2 drm_buddy gpu_sched i2c_algo_bit drm_ttm_helper ttm
[ 22.919143] drm_display_helper cec rc_core nvme drm_kms_helper syscopyarea nvme_core sysfillrect video sysimgblt hid_generic crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel ahci crypto_simd cryptd drm libahci i2c_piix4 xhci_pci nvme_common xhci_pci_renesas wmi i2c_hid_acpi i2c_hid hid
[ 22.919168] CPU: 2 PID: 1280 Comm: Xorg Tainted: P OE 6.2.6-76060206-generic #202303130630~1679424972~22.04~4a8cde1
[ 22.919171] Hardware name: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA401IU_GA401IU/GA401IU, BIOS GA401IU.212 05/08/2020
[ 22.919173] RIP: 0010:__iommu_dma_unmap+0x159/0x170
[ 22.919176] Code: a8 00 00 00 00 48 c7 45 b0 00 00 00 00 48 c7 45 c8 00 00 00 00 48 c7 45 a0 ff ff ff ff 4c 89 45 b8 4c 89 45 c0 e9 77 ff ff ff <0f> 0b e9 60 ff ff ff e8 db f9 60 00 66 66 2e 0f 1f 84 00 00 00 00
[ 22.919178] RSP: 0018:ffffb34ec3afbbc0 EFLAGS: 00010287
[ 22.919180] RAX: 0000000000000000 RBX: 00000000ac000000 RCX: 0000000000000000
[ 22.919182] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 22.919183] RBP: ffffb34ec3afbc28 R08: ffffb34ec3afbbe0 R09: 0000000000000000
[ 22.919184] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000e10000
[ 22.919186] R13: ffff9eb243eb0c10 R14: ffffb34ec3afbbc8 R15: ffff9eb241d89c00
[ 22.919187] FS: 00007f9193c7ca80(0000) GS:ffff9ebb47680000(0000) knlGS:0000000000000000
[ 22.919189] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 22.919190] CR2: 00007f91929ed168 CR3: 0000000106dae000 CR4: 0000000000350ee0
[ 22.919192] Call Trace:
[ 22.919194] <TASK>
[ 22.919200] iommu_dma_unmap_sg+0x8f/0x130
[ 22.919203] dma_unmap_sg_attrs+0x28/0x70
[ 22.919208] amdgpu_dma_buf_unmap+0x27/0x70 [amdgpu]
[ 22.919699] dma_buf_detach+0x5e/0xe0
[ 22.919705] drm_prime_gem_destroy+0x30/0x50 [drm]
[ 22.919757] __nv_drm_gem_dma_buf_free+0x41/0x60 [nvidia_drm]
[ 22.919764] nv_drm_gem_free+0x24/0x40 [nvidia_drm]
[ 22.919770] drm_gem_object_handle_put_unlocked+0xed/0x100 [drm]
[ 22.919808] drm_gem_handle_delete+0x9d/0x100 [drm]
[ 22.919841] ? __pfx_drm_gem_close_ioctl+0x10/0x10 [drm]
[ 22.919874] drm_gem_close_ioctl+0x3a/0x50 [drm]
[ 22.919904] drm_ioctl_kernel+0xd6/0x180 [drm]
[ 22.919941] drm_ioctl+0x2a0/0x4b0 [drm]
[ 22.919974] ? __pfx_drm_gem_close_ioctl+0x10/0x10 [drm]
[ 22.920007] __x64_sys_ioctl+0xa0/0xe0
[ 22.920012] do_syscall_64+0x5b/0x90
[ 22.920015] ? irqentry_exit_to_user_mode+0x9/0x20
[ 22.920018] ? irqentry_exit+0x43/0x50
[ 22.920019] ? exc_page_fault+0x91/0x1b0
[ 22.920022] entry_SYSCALL_64_after_hwframe+0x72/0xdc
[ 22.920026] RIP: 0033:0x7f9193f1aaff
[ 22.920039] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00
[ 22.920041] RSP: 002b:00007ffd13619e70 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 22.920044] RAX: ffffffffffffffda RBX: 00007ffd13619f08 RCX: 00007f9193f1aaff
[ 22.920045] RDX: 00007ffd13619f08 RSI: 0000000040086409 RDI: 000000000000001d
[ 22.920047] RBP: 0000000040086409 R08: 0000000000000000 R09: 00007ffd13619edc
[ 22.920048] R10: 0000000000000000 R11: 0000000000000246 R12: 00005585e2551590
[ 22.920049] R13: 000000000000001d R14: 00005585e278c180 R15: 00007ffd1361a238
[ 22.920052] </TASK>
[ 22.920054] ---[ end trace 0000000000000000 ]---
This laptop run with Hybrid mode with asusctl
$ lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6)
Even if the stack trace get printed, the monitor still light up after some flikering.