amdgpu crashes sporadically when playing hardware-accelerated video in Firefox
Brief summary of the problem:
If I play video (from YouTube, etc.) in Firefox (reproduced on 120 and 121 beta) with the hardware acceleration turned on, I get sporadic amdgpu crashes. This results in the screen freezing for several seconds followed by blacking out. The system usually then recovers but with Firefox crashing. Output from dmesg after a crash and normal dmesg output are attached.
Hardware description:
- CPU: AMD Ryzen 7 7840U
- GPU: Phoenix1 [1002:15BF] (Radeon 780M)
- System Memory: 32GB
- Display(s): Framework 13 laptop display
- Type of Display Connection: eDP
System information:
- Distro name and Version: Kubuntu 24.04 development
- Kernel version: Linux mamarley-laptop 6.6.2-060602-generic #202311200609 SMP PREEMPT_DYNAMIC Mon Nov 20 06:30:47 EST 2023 x86_64 x86_64 x86_64 GNU/Linux
- AMD official driver version: Kernel as described above, Mesa 23.3.0~rc4
How to reproduce the issue:
- Ensure hardware accelerated video decoding is enabled in Firefox (media.ffmpeg.vaapi.enabled=true)
- Play YouTube videos until amdgpu crashes