Wayland + AMDGPU + Latest kernel = freezing while interacting with UI

Hello.

For some reason the system freezes completely while using any wayland desktop environment or window manager with the AMDGPU open source video driver and a kernel above 6.6.52.rt43.arch1-3 (extra/linux-rt-lts). I was wondering if there’s a way to fix this with a newer kernel. It is easy to reproduce this bug simply by quickly resizing any window, but this also occurs randomly during interaction with different UI elements on the screen.

here’s some info about my system:
journalctl: PrivateBin
general info: Imgur: The magic of the Internet

A test with the Linux-lts or cachyos-linux-lts kernel is a good idea.

The Waydroid error is obvious, but it certainly has nothing to do with the error described.

Imgur is currently overloaded.

If you don’t really need the rt kernel, e.g. to prevent a buffer underflow in time, you should use a different kernel.

this is the contents of the imgur link:

          .-------------------------:                    p0trosh@r2400g
          .+=========================.                    --------------
         :++===++==================-       :++-           OS: CachyOS x86_64
        :*++====+++++=============-        .==:           Kernel: Linux 6.6.52-rt43-arch1-3-rt-lts
       -*+++=====+***++==========:                        Uptime: 16 hours, 5 mins
      =*++++========------------:                         Packages: 1145 (pacman)
     =*+++++=====-                     ...                Shell: fish 3.7.1
   .+*+++++=-===:                    .=+++=:              Display (HP E241i): 1200x1920 @ 60 Hz in 24" [External]
  :++++=====-==:                     -*****+              Display (HP E242): 1920x1200 @ 60 Hz in 24" [External]
 :++========-=.                      .=+**+.              WM: Sway 1.10.1 (Wayland)
.+==========-.                          .                 Theme: Qogir-Dark [GTK2/3]
 :+++++++====-                                .--==-.     Icons: Qogir-Dark [GTK2/3]
  :++==========.                             :+++++++:    Font: Cantarell (11pt) [GTK2/3]
   .-===========.                            =*****+*+    Cursor: breeze-light
    .-===========:                           .+*****+:    Terminal: kitty 0.39.1
      -=======++++:::::::::::::::::::::::::-:  .---:      Terminal Font: SourceCodePro-Regular (10.5pt)
       :======++++====+++******************=.             CPU: AMD Ryzen 5 PRO 2400G with Radeon Vega Graphics (8) @ 3.60 GHz
        :=====+++==========++++++++++++++*-               GPU: AMD Radeon Vega 11 Graphics [Integrated]
         .====++==============++++++++++*-                Memory: 4.20 GiB / 13.56 GiB (31%)
          .===+==================+++++++:                 Swap: 76.50 MiB / 17.56 GiB (0%)
           .-=======================+++:                  Disk (/): 84.39 GiB / 233.18 GiB (36%) - ext4
             ..........................                   Disk (/home/p0trosh/Media): 203.66 GiB / 457.38 GiB (45%) - ext4
                                                          Local IP (enp3s0): 192.168.1.3/24
                                                          Locale: en_US.UTF-8

I’ll test the kernels you suggested and report back in a bit. The reason I picked this one is simply because it was the latest version that seemed to work. And yes, waydroid does not not work because of the current kernel lacking stuff it needs, but it’s not much of problem. I don’t really need waydroid that much on this system, although using the latest kernel would be nice. I deleted it until the kernel is sorted out.

1 Like

core/linux-lts → 6.12.12-1 → longterm:

This one crashed the same way. Only a hard reset allowed me to get back to working OS. Btw, I should also point out that the same issue occurred with Gentoo Linux under kernel 6.13. I got annoyed with compiling stuff and just decided to switch to something Arch based. This is some sort of driver related issue on newer kernels, by the looks of it… either that, or an issue with wayland. Perhaps both? idk… I check another kernel and post a log as well.

– edit –
I guess privatebin is not allowed. Sorry about that. Hope pastebin is okay?

– edit –
same thing…

cachyos-v3/linux-cachyos-lts → 6.12.12-1 → longterm:

To share short outputs, such as inxi -Fxxxz, simply copy and paste them into the forum. To make the text readable, you must put tildes (~~~) three times in the line above and below the text.

When I skimmed through the protocol, I couldn’t find any relevant errors, but I’m still fairly inexperienced in understanding the protocols. So let’s wait…

Well, the only thing I can add for now is that on my old Thinkpad T430 laptop with Intel HD 4000 graphics there’s no problem with wayland + latest kernel at the same time, which again, seems to me like a problem with the GPU driver or wayland. I’ve got Gentoo on that laptop and a kernel version of 6.13.

I just want to share that a have stutters when i resize windows since the last kernel update.
I’m on an intel xeon (haswell) and an nvidia 960 on the base kernel +scheduler
kde plasma wayland and x11. its more noticeable in x11.

ive rollback to a snapshot made before the update and the issue went away.

The system still freezes under the kernel version I reported as stable (Linux 6.6.52-rt43-arch1-3-rt-lts), but this time there was sound for a while without lag or interruption, yet after a few minutes both monitors went blank and lost signal to the GPU. Here’s a log: https://pastebin.com/raw/MZwkQyZx
The only real difference is that newer kernels are simply less stable than this version.

Due to this issue being more prevalent on CachyOS I switched to EndeavourOS, which still had the same issue, although a lot more stable. I just wanted to say, that the recent kernel version update of 6.13.5 seemed to have fixed the issue for good. The system has been up for more than a day and without any freezing issues involved.