Solved drm-kmod: Periodic modesetting locks up X every 4 seconds

UPD: Solved (facepalm...) Found a process in my own script that checked whether external display is connected every few seconds. I wish I could delete the thread, but looks like I don't have this option, so it will have to hang here in the Hall of Shame.

Here's a headscratcher... Started having this issue today - my X is now locking up for a second every ~ 4 seconds. Mouse pointer still remains alive, just no GUI response. Every 4 seconds having these lines appearing in X.0.org, coinciding with lock-ups:

Code:
[   591.447] (II) modeset(0): EDID vendor "LEN", prod id 24997
[   591.448] (II) modeset(0): Using hsync ranges from config file
[   591.448] (II) modeset(0): Using vrefresh ranges from config file
[   591.448] (II) modeset(0): Printing DDC gathered Modelines:
[   591.448] (II) modeset(0): Modeline "2560x1440"x0.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz eP)
...

Happens only when drm-kmod is used. Does not happen with scfb. Started just now by itself on Thinkpad P14s. drm-kmod is built from source. CPU temperatures normal (about 70 deg.) Rebooting/power-offs do not help. It happened before, but I could always cure it by powering off. Now powering off is not helping. Happens only when external display is connected. Tried wiggling HDMI cable - does not help. No anomalies in systat -vmstat io. No other errors in logs.

Also, this only happens only under a user account. When X is started by root, no lock-ups, so it's not a hardware issue. No periodic user jobs in cron, no processes I can see that could interfere.

Any ideas?


CPU: 12th Gen Intel(R) Core(TM) i7-1260P (8) @ 4.70 GHz
GPU 1: Intel Alder Lake-P Integrated Graphics Controller [Integrated]
GPU 2: NVIDIA T550 Laptop GPU
FreeBSD 14.3-RELEASE releng/14.3-n271432-8c9ce319fef7 GENERIC amd64
Installed:
drm-61-kmod-6.1.128.1403000_5 DRM drivers modules
drm-kmod-20250428 Metaport of DRM modules for the linuxkpi-based KMS components
 
From the release notes for 14.3: "LinuxKPI: linux_alloc_pages() now honors__GFP_NORETRY. This is to fix slowdowns with drm-kmodthat get worse over time as physical memory become more fragmented(and probably also depending on other factors). 831e6fb0baf6(Sponsored by The FreeBSD Foundation)."

Time for an update?
 
Back
Top