System freezes momentarily when playing video with Kernel 6.5 with AMD GPU

Bug #2048924 reported by XA Hydra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
New
Undecided
Unassigned
linux-hwe (Ubuntu)
New
Undecided
Unassigned

Bug Description

Upon updating from the 6.2 kernel series to 6.5.0-14, I have began encountering ~1-3 second freezes when playing videos. This happens in Firefox, VLC and Totem. Booting from any 6.2 kernel resolves the situation, and going back to 6.5 reintroduces the issue every time.

My system is running 22.04 and consists of a B450 Chipset, a Ryzen 5600x and a Radeon RX 6600 GPU. I am running Wayland.

Disabling OpenGL output and going to X11 xcb in VLC prevents the freeze, and disabling HW acceleration in Firefox does the same. I am wondering therefore if this is an issue with the GPU driver in this kernel.

XA Hydra (xa-hydra)
description: updated
description: updated
XA Hydra (xa-hydra)
tags: added: video
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Thank you for filing this bug and make Ubuntu better!

Please change the target package from 'ubuntu' to 'linux'

Then run apport-collect 2048924 from your terminal so relevant info and logs

can be pulled into your bug and the developers can help debug

Thanks

XA Hydra (xa-hydra)
affects: ubuntu → linux
XA Hydra (xa-hydra)
tags: added: 24.04.4 hwe
tags: added: 22.04.4
removed: 24.04.4
tags: added: kernel
Revision history for this message
XA Hydra (xa-hydra) wrote :

Apport has nothing to report. I don't think anything is crashing or necessarily populating error logs per-se, but something is most certainly up with this kernel and my hardware because every time I boot to it I get these lockups, and not on any previous kernel.

Revision history for this message
XA Hydra (xa-hydra) wrote :

Just installed the 6.5.0-17 kernel and I still experience the issue. Small hangs when playing and seeking in video. Once again going back to 6.2.0-39 resolves the issue. Something is up in the 6.5x kernels.

Revision history for this message
XA Hydra (xa-hydra) wrote : Re: System hangs briefly before playing videos with Kernel 6.5

Same with 6.5.0-15

summary: - System hangs briefly before playing videos with Kernel 6.5.0-14
+ System hangs briefly before playing videos with Kernel 6.5
Revision history for this message
XA Hydra (xa-hydra) wrote :

Best lead I have is that when this happens, top shows kworker/u64:78-events_unbound as the CPU hog during the event.

XA Hydra (xa-hydra)
summary: - System hangs briefly before playing videos with Kernel 6.5
+ System freezes when playing videos with Kernel 6.5
Revision history for this message
XA Hydra (xa-hydra) wrote (last edit ): Re: System freezes from 100% CPU from kcryptd with Kernel 6.5

Oddly enough, the PIDs for these events_unbound kworker spikes are for kcryptd. When loading videos off of local volumes or going back to a Youtube video in a Firefox tab after some minutes, playing causes the lockup and spike. And again, ONLY on the 6.5 kernels

summary: - System freezes when playing videos with Kernel 6.5
+ System freezes from 100% CPU from kcryptd with Kernel 6.5
XA Hydra (xa-hydra)
tags: added: hang kcryptd kworker
removed: acceleration radeon video
Revision history for this message
XA Hydra (xa-hydra) wrote :

I think I've chased a few red herrings. here. Even on 6.5.0-25 this issue persists. The only way to prevent it is to either downgrade to the 6.2 kernel (which isn't an option considering all the security updates which it will no longer receive) OR installing the driver package from AMD.com.

This very thoroughly implicates the amdgpu driver in this kernel version

summary: - System freezes from 100% CPU from kcryptd with Kernel 6.5
+ System freezes momentarily when playing video with Kernel 6.5 with AMD
+ GPU
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.