Crash when plug or unplug HDMI cable on a Zephyrus G14 with AMD integrated GPU
Hard to tell what relevent information should be pass here.
I'm running a Zephyrus G14 Laptop with AMD GPU and NVidia GPU. I'm running Linux pop-os 5.11.0-051100-generic #202102142330 SMP Sun Feb 14 23:33:21 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
While running only with integrated GPU (AMDGPU only). Plug and plug the HDMI cable get the system freeze.
Here the dmesg dump:
[ 280.236488] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:70:crtc-1] flip_done timed out
[ 281.004456] [drm:do_aquire_global_lock.isra.0 [amdgpu]] *ERROR* [CRTC:70:crtc-1] hw_done or flip_done timed out
[ 291.244536] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:70:crtc-1] flip_done timed out
[ 301.484906] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:50:plane-2] flip_done timed out
[ 301.506995] [drm] Failed to add display topology, DTM TA is not initialized.
[ 301.536902] ------------[ cut here ]------------
[ 301.536910] WARNING: CPU: 11 PID: 191 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7754 amdgpu_dm_commit_planes.constprop.0+0x9cf/0x9f0 [amdgpu]
[ 301.537315] Modules linked in: rfcomm xt_nat xt_tcpudp veth xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink br_netfilter bridge stp llc ccm cmac algif_hash algif_skcipher af_alg snd_seq_dummy snd_hrtimer bnep btusb btrtl btbcm btintel bluetooth ecdh_generic ecc input_leds overlay intel_rapl_msr intel_rapl_common joydev snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence edac_mce_amd snd_hda_codec snd_hda_core snd_hwdep soundwire_bus snd_soc_core iwlmvm snd_compress ac97_bus snd_pcm_dmaengine mac80211 snd_pcm libarc4 snd_seq_midi snd_seq_midi_event snd_rawmidi kvm_amd snd_seq nls_iso8859_1 iwlwifi kvm snd_seq_device snd_timer asus_nb_wmi hid_multitouch wmi_bmof k10temp efi_pstore ccp rapl cfg80211 snd snd_rn_pci_acp3x soundcore
[ 301.537405] snd_pci_acp3x ucsi_acpi typec_ucsi typec asus_wireless mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 dm_crypt 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_asus asus_wmi sparse_keymap usbhid hid_generic amdgpu iommu_v2 gpu_sched i2c_algo_bit drm_ttm_helper ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drm aesni_intel crypto_simd cryptd glue_helper nvme ahci nvme_core libahci i2c_piix4 xhci_pci xhci_pci_renesas wmi video i2c_hid hid
[ 301.537482] CPU: 11 PID: 191 Comm: kworker/11:1 Tainted: G OE 5.11.0-051100-generic #202102142330
[ 301.537488] Hardware name: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA401IU_GA401IU/GA401IU, BIOS GA401IU.212 05/08/2020
[ 301.537493] Workqueue: events dm_irq_work_func [amdgpu]
[ 301.537844] RIP: 0010:amdgpu_dm_commit_planes.constprop.0+0x9cf/0x9f0 [amdgpu]
[ 301.538183] Code: ff 48 8b 45 a8 48 c7 c7 12 d9 b0 c0 4c 89 55 80 8b b0 f0 03 00 00 e8 50 8a d1 ff 0f b6 55 a3 4c 8b 55 80 e9 24 fa ff ff 0f 0b <0f> 0b e9 89 fe ff ff 0f 0b e9 a2 fe ff ff e8 ae 42 ff e4 66 66 2e
[ 301.538187] RSP: 0018:ffffab49805f39f0 EFLAGS: 00010002
[ 301.538192] RAX: 0000000000000293 RBX: 0000000000000004 RCX: 00000000000005c6
[ 301.538194] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff9f2b57120188
[ 301.538197] RBP: ffffab49805f3ab0 R08: 0000000000000002 R09: 0000000000000001
[ 301.538199] R10: 0000000000000000 R11: ffff9f2b58c60118 R12: 0000000000000293
[ 301.538201] R13: ffff9f2b58c60000 R14: ffff9f2bf567eb80 R15: ffff9f2b47451a00
[ 301.538204] FS: 0000000000000000(0000) GS:ffff9f2e5f8c0000(0000) knlGS:0000000000000000
[ 301.538207] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 301.538210] CR2: 00007f1006411000 CR3: 000000010de10000 CR4: 0000000000350ee0
[ 301.538213] Call Trace:
[ 301.538222] amdgpu_dm_atomic_commit_tail+0xc75/0x1260 [amdgpu]
[ 301.538557] ? __irq_work_queue_local+0x4f/0x60
[ 301.538566] ? irq_work_queue+0x2a/0x40
[ 301.538573] commit_tail+0x99/0x130 [drm_kms_helper]
[ 301.538602] drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[ 301.538626] drm_atomic_commit+0x4a/0x50 [drm]
[ 301.538677] dm_force_atomic_commit.isra.0+0x93/0x120 [amdgpu]
[ 301.539018] dm_restore_drm_connector_state+0x54/0x60 [amdgpu]
[ 301.539367] handle_hpd_irq+0x11a/0x150 [amdgpu]
[ 301.539710] dm_irq_work_func+0x4e/0x60 [amdgpu]
[ 301.540039] process_one_work+0x220/0x3c0
[ 301.540048] worker_thread+0x50/0x370
[ 301.540051] kthread+0x12f/0x150
[ 301.540056] ? process_one_work+0x3c0/0x3c0
[ 301.540059] ? __kthread_bind_mask+0x70/0x70
[ 301.540064] ret_from_fork+0x22/0x30
[ 301.540074] ---[ end trace 2cd88f15afd49fee ]---
[ 301.540145] ------------[ cut here ]------------
[ 301.540146] WARNING: CPU: 11 PID: 191 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7354 amdgpu_dm_commit_planes.constprop.0+0x9d6/0x9f0 [amdgpu]
[ 301.540479] Modules linked in: rfcomm xt_nat xt_tcpudp veth xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink br_netfilter bridge stp llc ccm cmac algif_hash algif_skcipher af_alg snd_seq_dummy snd_hrtimer bnep btusb btrtl btbcm btintel bluetooth ecdh_generic ecc input_leds overlay intel_rapl_msr intel_rapl_common joydev snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence edac_mce_amd snd_hda_codec snd_hda_core snd_hwdep soundwire_bus snd_soc_core iwlmvm snd_compress ac97_bus snd_pcm_dmaengine mac80211 snd_pcm libarc4 snd_seq_midi snd_seq_midi_event snd_rawmidi kvm_amd snd_seq nls_iso8859_1 iwlwifi kvm snd_seq_device snd_timer asus_nb_wmi hid_multitouch wmi_bmof k10temp efi_pstore ccp rapl cfg80211 snd snd_rn_pci_acp3x soundcore
[ 301.540662] snd_pci_acp3x ucsi_acpi typec_ucsi typec asus_wireless mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 dm_crypt 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_asus asus_wmi sparse_keymap usbhid hid_generic amdgpu iommu_v2 gpu_sched i2c_algo_bit drm_ttm_helper ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drm aesni_intel crypto_simd cryptd glue_helper nvme ahci nvme_core libahci i2c_piix4 xhci_pci xhci_pci_renesas wmi video i2c_hid hid
[ 301.540738] CPU: 11 PID: 191 Comm: kworker/11:1 Tainted: G W OE 5.11.0-051100-generic #202102142330
[ 301.540744] Hardware name: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA401IU_GA401IU/GA401IU, BIOS GA401IU.212 05/08/2020
[ 301.540749] Workqueue: events dm_irq_work_func [amdgpu]
[ 301.541084] RIP: 0010:amdgpu_dm_commit_planes.constprop.0+0x9d6/0x9f0 [amdgpu]
[ 301.541426] Code: c7 12 d9 b0 c0 4c 89 55 80 8b b0 f0 03 00 00 e8 50 8a d1 ff 0f b6 55 a3 4c 8b 55 80 e9 24 fa ff ff 0f 0b 0f 0b e9 89 fe ff ff <0f> 0b e9 a2 fe ff ff e8 ae 42 ff e4 66 66 2e 0f 1f 84 00 00 00 00
[ 301.541430] RSP: 0018:ffffab49805f39f0 EFLAGS: 00010086
[ 301.541435] RAX: 0000000000000001 RBX: 0000000000000004 RCX: 00000000000005c6
[ 301.541437] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff9f2b57120188
[ 301.541439] RBP: ffffab49805f3ab0 R08: 0000000000000002 R09: 0000000000000001
[ 301.541441] R10: 0000000000000000 R11: ffff9f2b58c60118 R12: 0000000000000293
[ 301.541443] R13: ffff9f2b58c60000 R14: ffff9f2bf567eb80 R15: ffff9f2b47451a00
[ 301.541446] FS: 0000000000000000(0000) GS:ffff9f2e5f8c0000(0000) knlGS:0000000000000000
[ 301.541449] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 301.541452] CR2: 00007f1006411000 CR3: 000000010de10000 CR4: 0000000000350ee0
[ 301.541455] Call Trace:
[ 301.541460] amdgpu_dm_atomic_commit_tail+0xc75/0x1260 [amdgpu]
[ 301.541792] ? __irq_work_queue_local+0x4f/0x60
[ 301.541800] ? irq_work_queue+0x2a/0x40
[ 301.541808] commit_tail+0x99/0x130 [drm_kms_helper]
[ 301.541836] drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[ 301.541860] drm_atomic_commit+0x4a/0x50 [drm]
[ 301.541911] dm_force_atomic_commit.isra.0+0x93/0x120 [amdgpu]
[ 301.542249] dm_restore_drm_connector_state+0x54/0x60 [amdgpu]
[ 301.542580] handle_hpd_irq+0x11a/0x150 [amdgpu]
[ 301.542908] dm_irq_work_func+0x4e/0x60 [amdgpu]
[ 301.543234] process_one_work+0x220/0x3c0
[ 301.543240] worker_thread+0x50/0x370
[ 301.543244] kthread+0x12f/0x150
[ 301.543249] ? process_one_work+0x3c0/0x3c0
[ 301.543252] ? __kthread_bind_mask+0x70/0x70
[ 301.543256] ret_from_fork+0x22/0x30
[ 301.543265] ---[ end trace 2cd88f15afd49fef ]---