Created attachment 245845 [details] dmesg (freebsd 14.0-rc2) Hey all, I've been noticing for a while now (maybe a year+) that there are periodic "stutterings" that happen on my Framework Laptop (Gen 1, Batch 6) running TigerLake-LP GT2 [Iris Xe Graphics] for graphics. This usually only happens only on sway/Wayland, and not as much (or at all) on i3/Xorg. I'm currently running FreeBSD 14.0-RC2, but I've experienced the issue throughout the 13.X series as well. Just opening up this bug report since I thought I posted about this somewhere before but I can't find it at the moment. The "stuttering" effect is best described by imagining what happens to a garbage collected application when the garbage collector periodically runs. There is a "freeze period" that happens and a few seconds later everything resumes again. This may or may not be some sort of graphical error recovery mechanism kicking in, but I'm not sure. I do see this in my dmesg that may be of interest, but I don't necessarily see this message printed out every single time the freeze occurs. drmn0: [drm] *ERROR* Atomic update failure on pipe D (start=29397 end=29398) time 996 us, min 1431, max 1439, scanline start 1365, end 1468 I'm attaching my current dmesg output for FreeBSD 14.0-RC2. - Jonathan
root@leslie:~ # pkg info drm-kmod drm-kmod-20220907_1 Name : drm-kmod Version : 20220907_1 Installed on : Mon Oct 23 13:37:23 2023 EDT Origin : graphics/drm-kmod Architecture : FreeBSD:14:* Prefix : /usr/local Categories : graphics Licenses : NA Maintainer : x11@FreeBSD.org WWW : https://github.com/freebsd/drm-kmod Comment : Metaport of DRM modules for the linuxkpi-based KMS components Annotations : repo_type : binary repository : FreeBSD Flat size : 243B Description : amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components on amd64, i915 and radeonkms DRM modules from the former base DRM component on other architectures. Metaport for different versions of Linux DRM based on the FreeBSD version in use. This port encompasses the recommendations of the FreeBSDDesktop team of DRM versions for FreeBSD versions based on the last update to the LinuxKPI in that code base. In general, the most recent supported stable DRM for a give FreeBSD version will be installed. CURRENT receives the most recent development DRM. This port does not however hinder the expert user to make other decisions and continue to install DRM ports directly.
Created attachment 245850 [details] dmesg after a few hours Attached is my dmesg after a few hours. We can see more of those atomic failures.
Just pulled in latest drm-kmod changes from the package repo. The following 9 package(s) will be affected (of 0 checked): New packages to be INSTALLED: drm-515-kmod: 5.15.118 Installed packages to be UPGRADED: curl: 8.3.0 -> 8.4.0 libX11: 1.8.6_1,1 -> 1.8.7,1 libXpm: 3.5.15 -> 3.5.17 libnghttp2: 1.56.0 -> 1.57.0 libudev-devd: 0.5.1 -> 0.5.2 llvm15: 15.0.7_6 -> 15.0.7_7 xwayland-devel: 21.0.99.1.520 -> 21.0.99.1.526 Installed packages to be REINSTALLED: drm-kmod-20220907_1 (direct dependency changed: drm-515-kmod) ... Checking integrity... done (1 conflicting) - drm-515-kmod-5.15.118 conflicts with drm-510-kmod-5.10.163_7 on /boot/modules/dmabuf.ko Checking integrity... done (0 conflicting) Conflicts with the existing packages have been found. One more solver iteration is needed to resolve them. The following 10 package(s) will be affected (of 0 checked): Installed packages to be REMOVED: drm-510-kmod: 5.10.163_7 New packages to be INSTALLED: drm-515-kmod: 5.15.118 Installed packages to be UPGRADED: curl: 8.3.0 -> 8.4.0 libX11: 1.8.6_1,1 -> 1.8.7,1 libXpm: 3.5.15 -> 3.5.17 libnghttp2: 1.56.0 -> 1.57.0 libudev-devd: 0.5.1 -> 0.5.2 llvm15: 15.0.7_6 -> 15.0.7_7 xwayland-devel: 21.0.99.1.520 -> 21.0.99.1.526 Installed packages to be REINSTALLED: drm-kmod-20220907_1 (direct dependency changed: drm-515-kmod) so it seems I was on 5.10.163_7 for drm-510-kmod. I'll see if the stuttering still happens on 5.15.118 and report back.
A quick update. After updating to the 5.15 version of kmod, about 99% of the stuttering has disappeared. I’ve only experienced about one stutter in a few days, so this is really good. The atomic error message still occur but the stutters aren’t really happening anymore. We should still leave the ticket open for now since it isn’t fully eliminated but massively reduced.
This isn't really happening to me anymore so things have definitely improved over the years. I'm closing this ticket.