Kernel panic with frequent flickering display issues
Brief summary of the problem:
While using browsers, frequent display issues like flickering and horizontal/vertical lines happens with amdgpu. It seems to be tied to a kernel regression.
Hardware description:
- CPU: AMD Ryzen™ 9 7845HX
- GPU: Radeon RX 7600M XT
- System Memory: 16 GB
- Display(s): one/two
- Type of Display Connection: HDMI
System information:
- Distro name and Version: Fedora Linux 38
- Kernel version: Linux alienware 6.4.11-200.fc38.x86_64 SMP PREEMPT_DYNAMIC Wed Aug 16 17:42:12 UTC 2023 x86_64 GNU/Linux
- Custom kernel - N/A
- AMD official driver version: N/A
How to reproduce the issue:
Use chromium-based browser. The issue happens randomly but quite frequently. It also happens when no external peripherals are attached.
Attached files:
Screenshots/video files
Log files (for system lockups / game freezes / crashes)
[ 2279.566281] ------------[ cut here ]------------
[ 2279.566284] WARNING: CPU: 6 PID: 198 at drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:599 amdgpu_irq_put+0x46/0x70 [amdgpu]
[ 2279.566436] Modules linked in: uinput michael_mic rfcomm snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast 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 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables nfnetlink bnep sunrpc snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic qrtr_mhi binfmt_misc vfat fat qrtr ath11k_pci ath11k snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp qmi_helpers snd_sof snd_sof_utils uvcvideo mac80211 uvc snd_soc_core intel_rapl_msr videobuf2_vmalloc snd_hda_intel intel_rapl_common videobuf2_memops snd_intel_dspcfg snd_intel_sdw_acpi edac_mce_amd videobuf2_v4l2 snd_hda_codec snd_compress videobuf2_common ac97_bus snd_pcm_dmaengine btusb videodev snd_hda_core snd_pci_ps btrtl kvm_amd btbcm snd_rpl_pci_acp6x btintel snd_hwdep snd_pci_acp6x libarc4 mc snd_seq kvm btmtk snd_seq_device cfg80211 bluetooth irqbypass snd_pcm dcdbas
[ 2279.566478] ledtrig_audio sparse_keymap snd_pci_acp5x snd_rn_pci_acp3x alienware_wmi dell_wmi_descriptor wmi_bmof snd_timer rapl snd_acp_config snd_soc_acpi snd acpi_cpufreq pcspkr k10temp i2c_piix4 rfkill mhi soundcore snd_pci_acp3x amd_pmc acpi_tad joydev loop zram dm_crypt amdgpu i2c_algo_bit drm_ttm_helper ttm video nvme rtsx_pci_sdmmc drm_suballoc_helper mmc_core nvme_core iommu_v2 drm_buddy crct10dif_pclmul crc32_pclmul gpu_sched hid_multitouch ucsi_acpi crc32c_intel drm_display_helper ccp polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 typec_ucsi r8169 rtsx_pci serio_raw sp5100_tco cec nvme_common typec wmi i2c_hid_acpi i2c_hid ip6_tables ip_tables fuse
[ 2279.566514] CPU: 6 PID: 198 Comm: irq/35-pciehp Not tainted 6.4.11-200.fc38.x86_64 #1
[ 2279.566516] Hardware name: Alienware Alienware m16 R1 AMD/0YFT9X, BIOS 1.2.0 03/31/2023
[ 2279.566518] RIP: 0010:amdgpu_irq_put+0x46/0x70 [amdgpu]
[ 2279.566634] Code: c0 74 33 48 8b 4e 10 48 83 39 00 74 29 89 d1 48 8d 04 88 8b 08 85 c9 74 11 f0 ff 08 74 07 31 c0 e9 df bf 5e cc e9 5a fd ff ff <0f> 0b b8 ea ff ff ff e9 ce bf 5e cc b8 ea ff ff ff e9 c4 bf 5e cc
[ 2279.566635] RSP: 0018:ffff9db200883c58 EFLAGS: 00010246
[ 2279.566637] RAX: ffff911a9eb9e710 RBX: ffff911a9f900000 RCX: 0000000000000000
[ 2279.566638] RDX: 0000000000000000 RSI: ffff911a9f900c48 RDI: ffff911a9f900000
[ 2279.566639] RBP: ffff911a9f925d9a R08: 0000000000000000 R09: 000000000000034e
[ 2279.566640] R10: 00000000000001e5 R11: 00000212c0ad3800 R12: ffff911a9f900010
[ 2279.566641] R13: ffff911a9f925d7a R14: 0000000000000080 R15: ffff911a81acdd20
[ 2279.566642] FS: 0000000000000000(0000) GS:ffff911dbd780000(0000) knlGS:0000000000000000
[ 2279.566643] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2279.566644] CR2: 0000059c0030c000 CR3: 00000001c1022000 CR4: 0000000000750ee0
[ 2279.566645] PKRU: 55555554
[ 2279.566645] Call Trace:
[ 2279.566647] <TASK>
[ 2279.566648] ? amdgpu_irq_put+0x46/0x70 [amdgpu]
[ 2279.566763] ? __warn+0x81/0x130
[ 2279.566769] ? amdgpu_irq_put+0x46/0x70 [amdgpu]
[ 2279.566887] ? report_bug+0x171/0x1a0
[ 2279.566891] ? handle_bug+0x3c/0x80
[ 2279.566894] ? exc_invalid_op+0x17/0x70
[ 2279.566896] ? asm_exc_invalid_op+0x1a/0x20
[ 2279.566900] ? amdgpu_irq_put+0x46/0x70 [amdgpu]
[ 2279.567015] ? __x86_return_thunk+0x9/0x10
[ 2279.567018] gmc_v11_0_hw_fini+0x24/0x60 [amdgpu]
[ 2279.567132] amdgpu_device_fini_hw+0x1ea/0x340 [amdgpu]
[ 2279.567236] ? blocking_notifier_chain_unregister+0x36/0x50
[ 2279.567240] amdgpu_pci_remove+0x51/0x140 [amdgpu]
[ 2279.567340] ? __x86_return_thunk+0x9/0x10
[ 2279.567342] ? __pm_runtime_resume+0x58/0x80
[ 2279.567346] pci_device_remove+0x37/0xa0
[ 2279.567350] device_release_driver_internal+0x19f/0x200
[ 2279.567353] pci_stop_bus_device+0x6c/0x90
[ 2279.567356] pci_stop_bus_device+0x3d/0x90
[ 2279.567358] pci_stop_bus_device+0x2c/0x90
[ 2279.567360] pci_stop_and_remove_bus_device+0x12/0x20
[ 2279.567361] pciehp_unconfigure_device+0x98/0x160
[ 2279.567365] pciehp_disable_slot+0x67/0x130
[ 2279.567367] pciehp_handle_presence_or_link_change+0x84/0x4b0
[ 2279.567370] pciehp_ist+0x230/0x260
[ 2279.567372] ? __pfx_irq_thread_fn+0x10/0x10
[ 2279.567375] irq_thread_fn+0x20/0x60
[ 2279.567376] irq_thread+0xfb/0x1c0
[ 2279.567378] ? __pfx_irq_thread_dtor+0x10/0x10
[ 2279.567380] ? __pfx_irq_thread+0x10/0x10
[ 2279.567381] kthread+0xe5/0x120
[ 2279.567384] ? __pfx_kthread+0x10/0x10
[ 2279.567386] ret_from_fork+0x29/0x50
[ 2279.567391] </TASK>
[ 2279.567392] ---[ end trace 0000000000000000 ]---
[ 2279.567451] ------------[ cut here ]------------
[ 2279.567451] WARNING: CPU: 6 PID: 198 at drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:426 amdgpu_bo_free_kernel+0xf9/0x120 [amdgpu]
[ 2279.567562] Modules linked in: uinput michael_mic rfcomm snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast 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 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables nfnetlink bnep sunrpc snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic qrtr_mhi binfmt_misc vfat fat qrtr ath11k_pci ath11k snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp qmi_helpers snd_sof snd_sof_utils uvcvideo mac80211 uvc snd_soc_core intel_rapl_msr videobuf2_vmalloc snd_hda_intel intel_rapl_common videobuf2_memops snd_intel_dspcfg snd_intel_sdw_acpi edac_mce_amd videobuf2_v4l2 snd_hda_codec snd_compress videobuf2_common ac97_bus snd_pcm_dmaengine btusb videodev snd_hda_core snd_pci_ps btrtl kvm_amd btbcm snd_rpl_pci_acp6x btintel snd_hwdep snd_pci_acp6x libarc4 mc snd_seq kvm btmtk snd_seq_device cfg80211 bluetooth irqbypass snd_pcm dcdbas
[ 2279.567596] ledtrig_audio sparse_keymap snd_pci_acp5x snd_rn_pci_acp3x alienware_wmi dell_wmi_descriptor wmi_bmof snd_timer rapl snd_acp_config snd_soc_acpi snd acpi_cpufreq pcspkr k10temp i2c_piix4 rfkill mhi soundcore snd_pci_acp3x amd_pmc acpi_tad joydev loop zram dm_crypt amdgpu i2c_algo_bit drm_ttm_helper ttm video nvme rtsx_pci_sdmmc drm_suballoc_helper mmc_core nvme_core iommu_v2 drm_buddy crct10dif_pclmul crc32_pclmul gpu_sched hid_multitouch ucsi_acpi crc32c_intel drm_display_helper ccp polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 typec_ucsi r8169 rtsx_pci serio_raw sp5100_tco cec nvme_common typec wmi i2c_hid_acpi i2c_hid ip6_tables ip_tables fuse
[ 2279.567621] CPU: 6 PID: 198 Comm: irq/35-pciehp Tainted: G W 6.4.11-200.fc38.x86_64 #1
[ 2279.567623] Hardware name: Alienware Alienware m16 R1 AMD/0YFT9X, BIOS 1.2.0 03/31/2023
[ 2279.567623] RIP: 0010:amdgpu_bo_free_kernel+0xf9/0x120 [amdgpu]
[ 2279.567732] Code: 00 00 00 4d 85 e4 74 08 49 c7 04 24 00 00 00 00 48 85 ed 74 08 48 c7 45 00 00 00 00 00 5b 5d 41 5c 41 5d 41 5e e9 97 43 69 cc <0f> 0b e9 3b ff ff ff 3d 00 fe ff ff 74 b3 49 8b be 78 a2 ff ff 4c
[ 2279.567733] RSP: 0018:ffff9db200883c18 EFLAGS: 00010202
[ 2279.567734] RAX: 0000000000000001 RBX: ffff911a9f907f98 RCX: 00000000810000fb
[ 2279.567735] RDX: ffff911a9f907fa0 RSI: ffff911a9f907fa8 RDI: ffff911a9f907f98
[ 2279.567735] RBP: ffff911a9f907fa0 R08: 0000000000000000 R09: 00000000810000fb
[ 2279.567736] R10: ffff911a81005718 R11: 000ffffffffff000 R12: ffff911a9f907fa8
[ 2279.567737] R13: ffff911a80fcc800 R14: ffff911a9f905d88 R15: ffff911a81acdd20
[ 2279.567738] FS: 0000000000000000(0000) GS:ffff911dbd780000(0000) knlGS:0000000000000000
[ 2279.567739] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2279.567740] CR2: 0000059c0030c000 CR3: 00000001c1022000 CR4: 0000000000750ee0
[ 2279.567740] PKRU: 55555554
[ 2279.567741] Call Trace:
[ 2279.567742] <TASK>
[ 2279.567743] ? amdgpu_bo_free_kernel+0xf9/0x120 [amdgpu]
[ 2279.567852] ? __warn+0x81/0x130
[ 2279.567854] ? amdgpu_bo_free_kernel+0xf9/0x120 [amdgpu]
[ 2279.567966] ? report_bug+0x171/0x1a0
[ 2279.567968] ? handle_bug+0x3c/0x80
[ 2279.567970] ? exc_invalid_op+0x17/0x70
[ 2279.567972] ? asm_exc_invalid_op+0x1a/0x20
[ 2279.567975] ? amdgpu_bo_free_kernel+0xf9/0x120 [amdgpu]
[ 2279.568086] amdgpu_ih_ring_fini+0x54/0x90 [amdgpu]
[ 2279.568206] amdgpu_irq_fini_hw+0x34/0x80 [amdgpu]
[ 2279.568321] amdgpu_device_fini_hw+0x226/0x340 [amdgpu]
[ 2279.568429] ? blocking_notifier_chain_unregister+0x36/0x50
[ 2279.568432] amdgpu_pci_remove+0x51/0x140 [amdgpu]
[ 2279.568533] ? __x86_return_thunk+0x9/0x10
[ 2279.568535] ? __pm_runtime_resume+0x58/0x80
[ 2279.568537] pci_device_remove+0x37/0xa0
[ 2279.568539] device_release_driver_internal+0x19f/0x200
[ 2279.568541] pci_stop_bus_device+0x6c/0x90
[ 2279.568543] pci_stop_bus_device+0x3d/0x90
[ 2279.568545] pci_stop_bus_device+0x2c/0x90
[ 2279.568546] pci_stop_and_remove_bus_device+0x12/0x20
[ 2279.568548] pciehp_unconfigure_device+0x98/0x160
[ 2279.568550] pciehp_disable_slot+0x67/0x130
[ 2279.568552] pciehp_handle_presence_or_link_change+0x84/0x4b0
[ 2279.568554] pciehp_ist+0x230/0x260
[ 2279.568556] ? __pfx_irq_thread_fn+0x10/0x10
[ 2279.568558] irq_thread_fn+0x20/0x60
[ 2279.568559] irq_thread+0xfb/0x1c0
[ 2279.568561] ? __pfx_irq_thread_dtor+0x10/0x10
[ 2279.568563] ? __pfx_irq_thread+0x10/0x10
[ 2279.568564] kthread+0xe5/0x120
[ 2279.568565] ? __pfx_kthread+0x10/0x10
[ 2279.568567] ret_from_fork+0x29/0x50
[ 2279.568571] </TASK>
[ 2279.568572] ---[ end trace 0000000000000000 ]---
Edited by Vaishali Thakkar