Bug 295625 - graphics/drm-612-kmod hangs on Alder Lake-S GT1 [UHD Graphics 770]
Summary: graphics/drm-612-kmod hangs on Alder Lake-S GT1 [UHD Graphics 770]
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-26 21:15 UTC by Jonathan Chen
Modified: 2026-10-20 00:39 UTC (History)
9 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Chen 2026-05-26 21:15:53 UTC
I'm getting periodic hangs with drm-612-mod on a PC with "Alder Lake-S GT1". The system start fine, but after using chrome for a while, the display will hang.

The console reports:
May 27 08:37:28 stormbringer kernel: drmn0: [drm] Resetting rcs0 for preemption time out
May 27 08:37:28 stormbringer kernel: drmn0: [drm] QSGRenderThread[102291] context reset due to GPU hang
May 27 08:37:28 stormbringer kernel: drmn0: [drm] GPU HANG: ecode 12:1:85dffffb, in QSGRenderThread [102291]
May 27 08:37:29 stormbringer kernel: Fence expiration time out i915-drmn0:MainThread[101912]:28!
...
May 27 08:37:32 stormbringer kernel: Fence expiration time out i915-drmn0:MainThread[101912]:2e!
May 27 08:37:33 stormbringer kernel: Fence expiration time out i915-drmn0:MainThread[101912]:30!
l: Fence expiration time out i915-drmn0:MainThread[101912]:3a!
May 27 08:37:36 stormbringer kernel: drmn0: [drm] Resetting rcs0 for preemption time out


'pcicontrol -lv' reports:
...
vgapci0@pci0:0:2:0:     class=0x030000 rev=0x0c hdr=0x00 vendor=0x8086 device=0x4680 subvendor=0x1028 subdevice=0x0ac1
    vendor     = 'Intel Corporation'
    device     = 'Alder Lake-S GT1 [UHD Graphics 770]'
    class      = display
    subclass   = VGA

I reverted back to drm-66-kmod and that works without any issues.
Comment 1 Jonathan Chen 2026-05-26 22:36:21 UTC
Running 15-STABLE/amd64 updated on 22-May-2026
Comment 2 Cullum Smith 2026-06-02 19:13:20 UTC
I started seeing this after upgrading from 15.0 to 15.1-RC2.

Different Intel GPU though.

# pciconf -lv | grep -B3 display
vgapci0@pci0:0:2:0:     class=0x030000 rev=0x04 hdr=0x00 vendor=0x8086 device=0x4c8a subvendor=0x1028 subdevice=0x0a52
    vendor     = 'Intel Corporation'
    device     = 'RocketLake-S GT1 [UHD Graphics 750]'
    class      = display


# pkg info | grep drm
drm-612-kmod-6.12.85.1501000   Direct Rendering Manager (DRM) GPU drivers
drm-kmod-20260508              Direct Rendering Manager (DRM) GPU drivers metaport

# uname -a

# uname -a
FreeBSD desktop1 15.1-RC2 FreeBSD 15.1-RC2 releng/15.1-f841f71deade GENERIC amd64

dmesg:

Jun  2 14:59:11 desktop1 kernel: drmn0: [drm] GPU HANG: ecode 12:1:85dfffff, in kwin_wayland [101126]
Jun  2 14:59:11 desktop1 kernel: drmn0: [drm] Resetting rcs0 for preemption time out
Jun  2 14:59:11 desktop1 kernel: drmn0: [drm] kwin_wayland[101126] context reset due to GPU hang
Jun  2 14:59:19 desktop1 kernel: drmn0: [drm] GPU HANG: ecode 12:1:859ffffb, in QSGRenderThread [101719]
Jun  2 14:59:19 desktop1 kernel: drmn0: [drm] Resetting rcs0 for preemption time out
Jun  2 14:59:19 desktop1 kernel: drmn0: [drm] QSGRenderThread[101719] context reset due to GPU hang
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:kwin_wayland[101126]:50c96!
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:kwin_wayland[101126]:50c98!
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:kwin_wayland[101126]:50c9a!
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:chrome[101943]:8c24!
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:kwin_wayland[101126]:50c9c!
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:chrome[101943]:8c26!
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:chrome[101943]:8c28!
Jun  2 14:59:24 desktop1 kernel: Fence expiration time out i915-drmn0:chrome[101943]:8c2a!
Jun  2 14:59:26 desktop1 kernel: drmn0: [drm] GPU HANG: ecode 12:1:859ffffb, in QSGRenderThread [101525]
Jun  2 14:59:26 desktop1 kernel: drmn0: [drm] Resetting rcs0 for preemption time out
Jun  2 14:59:26 desktop1 kernel: drmn0: [drm] QSGRenderThread[101525] context reset due to GPU hang
Comment 3 Cullum Smith 2026-06-02 19:16:38 UTC
I should also note that I'm using wayland.
Comment 4 Cullum Smith 2026-06-03 02:45:22 UTC
drm-kmod bug report:

https://github.com/freebsd/drm-kmod/issues/467
Comment 5 Alexey Shuvaev 2026-06-06 20:00:44 UTC
"Me too" report, unfortunately, with another intel GPU.
Using drm-612-kmod the system starts (console) as expected, wayfire starts also well, I can use foot (terminal). But opening firefox or opening the first page in it crashes wayfire.
Reverting to drm-66-kmod fixes the issue.

First, for the desktop system, 16.0-CURRENT (1600018).

Package versions:
mesa-dri-24.1.7_11
mesa-libs-24.1.7_1
drm-612-kmod-6.12.85.1600018
libdrm-2.4.133,1

pciconv -lv:
vgapci0@pci0:0:2:0:	class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0152 subvendor=0x1043 subdevice=0x84ca
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller'
    class      = display
    subclass   = VGA

kernel messages:
drmn0: [drm] GPU HANG: ecode 7:1:85ffbff8, in wayfire [101876]
drmn0: [drm] Resetting rcs0 for stopped heartbeat on rcs0
drmn0: [drm] wayfire[101876] context reset due to GPU hang
drmn0: [drm] GPU HANG: ecode 7:1:85f7fffc, in wayfire [100289]
drmn0: [drm] Resetting rcs0 for stopped heartbeat on rcs0
drmn0: [drm] wayfire[100289] context reset due to GPU hang
drmn0: [drm] GPU HANG: ecode 7:1:86ffbff9, in Renderer [102378]
drmn0: [drm] Resetting rcs0 for stopped heartbeat on rcs0
drmn0: [drm] Renderer[102378] context reset due to GPU hang
drmn0: [drm] GPU HANG: ecode 7:1:85ffbff8, in wayfire [100313]
drmn0: [drm] Resetting rcs0 for stopped heartbeat on rcs0
drmn0: [drm] wayfire[100313] context reset due to GPU hang

drm-6.12 probe messages:
[drm] Got Intel graphics stolen memory base rxcf200000, size 0x10000000
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
drmn0: [drm] Found IVYBRIDGE (device ID 0152) display version 7.00 stepping N/A
lkpi_iic0: <LinuxKPI I2C> on drmn0
iicbus0: <Philips I2C bus> on lkpi_iic0
iic0: <I2C generic I/O> on iicbus0
lkpi_iic1: <LinuxKPI I2C> on drmn0
iicbus1: <Philips I2C bus> on lkpi_iic1
iic1: <I2C generic I/O> on iicbus1
lkpi_iic2: <LinuxKPI I2C> on drmn0
iicbus2: <Philips I2C bus> on lkpi_iic2
iic2: <I2C generic I/O> on iicbus2
lkpi_iic3: <LinuxKPI I2C> on drmn0
iicbus3: <Philips I2C bus> on lkpi_iic3
iic3: <I2C generic I/O> on iicbus3
lkpi_iic4: <LinuxKPI I2C> on drmn0
iicbus4: <Philips I2C bus> on lkpi_iic4
iic4: <I2C generic I/O> on iicbus4
lkpi_iic5: <LinuxKPI I2C> on drmn0
iicbus5: <Philips I2C bus> on lkpi_iic5
iic5: <I2C generic I/O> on iicbus5
sysctl_add_oid: can't re-use a leaf (hw.dri.debug)!
lkpi_iic6: <LinuxKPI I2C> on drm3
iicbus6: <Philips I2C bus> on lkpi_iic6
iic6: <I2C generic I/O> on iicbus6
lkpi_iic7: <LinuxKPI I2C> on drm6
iicbus7: <Philips I2C bus> on lkpi_iic7
iic7: <I2C generic I/O> on iicbus7
lkpi_iic8: <LinuxKPI I2C> on drm7
iicbus8: <Philips I2C bus> on lkpi_iic8
iic8: <I2C generic I/O> on iicbus8
[drm] Initialized i915 1.6.0 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
start FB_INFO:
height=1200 width=1920 depth=32
pbase=0xe0302000 vbase=0xfffff800e0302000
name=drmn0 id=i915drmfb flags=0x0 stride=7680
end FB_INFO

drm-6.6 probe messages:
[drm] Got Intel graphics stolen memory base rxcf200000, size 0x10000000
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
lkpi_iic0: <LinuxKPI I2C> on drmn0
iicbus0: <Philips I2C bus> on lkpi_iic0
iic0: <I2C generic I/O> on iicbus0
lkpi_iic1: <LinuxKPI I2C> on drmn0
iicbus1: <Philips I2C bus> on lkpi_iic1
iic1: <I2C generic I/O> on iicbus1
lkpi_iic2: <LinuxKPI I2C> on drmn0
iicbus2: <Philips I2C bus> on lkpi_iic2
iic2: <I2C generic I/O> on iicbus2
lkpi_iic3: <LinuxKPI I2C> on drmn0
iicbus3: <Philips I2C bus> on lkpi_iic3
iic3: <I2C generic I/O> on iicbus3
lkpi_iic4: <LinuxKPI I2C> on drmn0
iicbus4: <Philips I2C bus> on lkpi_iic4
iic4: <I2C generic I/O> on iicbus4
lkpi_iic5: <LinuxKPI I2C> on drmn0
iicbus5: <Philips I2C bus> on lkpi_iic5
iic5: <I2C generic I/O> on iicbus5
lkpi_iic6: <LinuxKPI I2C> on drmn0
iicbus6: <Philips I2C bus> on lkpi_iic6
iic6: <I2C generic I/O> on iicbus6
iic6: detached
iicbus6: detached
lkpi_iic6: detached
sysctl_add_oid: can't re-use a leaf (hw.dri.debug)!
lkpi_iic6: <LinuxKPI I2C> on drm3
iicbus6: <Philips I2C bus> on lkpi_iic6
iic6: <I2C generic I/O> on iicbus6
lkpi_iic7: <LinuxKPI I2C> on drm6
iicbus7: <Philips I2C bus> on lkpi_iic7
iic7: <I2C generic I/O> on iicbus7
lkpi_iic8: <LinuxKPI I2C> on drm7
iicbus8: <Philips I2C bus> on lkpi_iic8
iic8: <I2C generic I/O> on iicbus8
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
start FB_INFO:
height=1200 width=1920 depth=32
pbase=0xe0302000 vbase=0xfffff800e0302000
name=drmn0 id=i915drmfb flags=0x0 stride=7680
end FB_INFO
Comment 6 Jonathan Chen 2026-06-12 03:23:30 UTC
The latest version introduced on 2026-06-10, drm-612-kmod-6.12.85.1501501_1, appears be better. I've been attempting to crash it for about 30 minutes for now, and it hasn't so far.

I'll probably close this ticket sometime next week unless someone else reports an issue.
Comment 7 Jonathan Chen 2026-06-14 20:34:06 UTC
After a bit more testing, drm-612-kmod-6.12.85.1501501_1 still has GPU hang. This can be triggered by placing the system under stress, eg during a ports-rebuild.

Jun 15 08:15:23 stormbringer kernel: drmn0: [drm] GPU HANG: ecode 12:1:85dfbfff, in MainThread [101919]
Jun 15 08:15:23 stormbringer kernel: drmn0: [drm] Resetting rcs0 for preemption time out
Jun 15 08:15:23 stormbringer kernel: drmn0: [drm] Xorg[101919] context reset due to GPU hang
Jun 15 08:15:38 stormbringer kernel: drmn0: [drm] GPU HANG: ecode 12:1:85dfbfff, in MainThread [101919]
Jun 15 08:15:38 stormbringer kernel: drmn0: [drm] Resetting rcs0 for preemption time out
Jun 15 08:15:38 stormbringer kernel: drmn0: [drm] MainThread[101919] context reset due to GPU hang
Jun 15 08:15:44 stormbringer kernel: Fence expiration time out i915-drmn0:MainThread<101919>:2!
Jun 15 08:15:44 stormbringer kernel: Fence expiration time out i915-drmn0:MainThread<101919>:4!
Jun 15 08:15:45 stormbringer kernel: Fence expiration time out i915-drmn0:MainThread<101919>:6!
Jun 15 08:15:45 stormbringer kernel: Fence expiration time out i915-drmn0:MainThread<101919>:8!
Comment 8 Darren Mulligan 2026-06-15 16:42:09 UTC
I was also experiencing the very frequent gpu hangs under all conditions (couldn’t make it more than 1 hour without it happening). This seems to have been completely fixed for me as of the drm-612-kmod update last week.

I do still experience the graphical freeze under heavy cpu load (system still is still accessible and running normally via ssh), however this isn’t new to drm-612. I experienced this under drm-66 as well.

A workaround that works very well for me is to restrict the cpu use via cpuset. Setting my user and port building jail to leave a single efficiency core free. This leaves the core with 0.2%-0.5% “system” activity under top -P and seemingly solves the problem for me.

Changing the default set instead does not seem to help, with hangs continuing even with 2 cores reserved. (last tested on drm-66 approximately a year ago). I speculate this is because the kernel itself avoids using the core if the default set is changed, but changing the set belonging to all user processes allows the kernel/driver to keep using the spare core.

vgapci0@pci0:0:2:0:     class=0x030000 rev=0x0c hdr=0x00 vendor=0x8086 device=0x4680 subvendor=0x1462 subdevice=0x7e06
    vendor     = 'Intel Corporation'
    device     = 'Alder Lake-S GT1 [UHD Graphics 770]'
    class      = display
    subclass   = VGA

drmn0: [drm] GPU HANG: ecode 12:1:85dfffff, in MainThread [100188]
drmn0: [drm] Resetting rcs0 for preemption time out
drmn0: [drm] Xorg[100188] context reset due to GPU hang
drmn0: [drm] GPU HANG: ecode 12:1:85dfbfff, in MainThread [100188]
drmn0: [drm] Resetting rcs0 for preemption time out
drmn0: [drm] MainThread[100188] context reset due to GPU hang
drmn0: [drm] GPU HANG: ecode 12:1:85dfbfff, in MainThread [100188]
drmn0: [drm] Resetting rcs0 for preemption time out
drmn0: [drm] MainThread[100188] context reset due to GPU hang

The cpuset workaround is not 100.0% effective, but it changes hangs from being almost guaranteed if you build or compress something, to once a month or even less.
Comment 9 Cullum Smith 2026-06-15 16:58:36 UTC
> This seems to have been completely fixed for me as of the drm-612-kmod update last week.

Can you confirm whether you are running CURRENT, 15-STABLE, or 15.1-RELEASE?

Running 15.1-RELEASE and with the lastest drm-612-kmod built from ports, I unfortunately experienced the same crash this morning just 30 minutes after logging in and doing some basic web browsing.
Comment 10 Darren Mulligan 2026-06-15 17:34:17 UTC
(In reply to Cullum Smith from comment #9)

15.1-stable from June 3
drm-612-kmod-6.12.85.1501501_1
gpu-firmware-intel-kmod-alderlake-20250109.1501501
gpu-firmware-intel-kmod-tigerlake-20250109.1501501
Comment 11 Oleh Vinichenko 2026-07-05 03:51:55 UTC
This also happens with intel kabylake on thinkpad t480. When using graphic session, terminal emulator, browser. Run poudriere build and notice a GPU hand crash after some ten seconds. This never happened in such a way before 6.12.
- please, do not consider this as rant -
I have seen drm project adding versions of dubious quality in the past. Some versions are rock stable, some version are giving pain ( most of the time in my case ). At which stage, which release, which criterion certain version ( say, tag in drm-kmod repository ) are decided to be added? Why 6.12? Why not drm-kmod-7 from linux-7?. I know it is a complex and not too easy work to port the drm stack, I do not need explanation on that, no need "send patches", "lack of resources" and similar vague replies. 6.12 is added and its very buggy on various Intel hardware. Why there is no collaboration with OpenBSD, they have much newer drm stack ? ( I have no idea about crashes, stability there, just a fact it's newer ). It is very frustrating and off putting to jump from buggy versions to buggy versions of drm-kmod.
Comment 12 rkoberman 2026-07-06 00:14:47 UTC
One more, especially annoying problem with an AlderLake. Thee is another trouble ticket about the mpv video player failing to work after the recent update to mesa. So I was excited to see that one reporter tried mpv on several different versions of drm-*-kmod and it only worked on 6.12.At my first opportunity, I switched to 6.12 only to find that it locked up the system with no hints in logs when I tried running mpv. Not sure how long it might have lasted had I not typed "mpv", so this might be a trigger of the problems others are seeing.

System is a Lenovo T16 (Intel Gen. 1) running current.The graphics is " Alder Lake-UP3 GT2 [Iris Xe Graphics]'". 

As I have writen a number of scripts I use fairly often that work nicely with mpv and don't with vlc, I really hope to get this resoled soon.
Comment 13 Ulrich Spörlein freebsd_committer freebsd_triage 2026-09-14 16:12:43 UTC
Sorry I'm not helping much, but a T490 running 15.1 is also affected. 6.1 works but 6.12 hangs the system immediately after it has drawn the X11 cursor without being able to render much else (X11, not Wayland for me).

Went back to 6.1, will give 6.6 a go later this week

% pciconf -lv | grep -B3 display
vgapci0@pci0:0:2:0:     class=0x030000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x3ea0 subvendor=0x17aa subdevice=0x2279
    vendor     = 'Intel Corporation'
    device     = 'WhiskeyLake-U GT2 [UHD Graphics 620]'
    class      = display
Comment 14 Artem Kim 2026-09-18 01:44:26 UTC
(In reply to Oleh Vinichenko from comment #11)

DRM is most likely not the issue. The problem may be with MMIO. It’s possible that linuxkpi in FreeBSD 15 has changed the logic for allocating PCI BARs, VT behavior, and so on. Bug 293351
Comment 15 Hiroki Tagato freebsd_committer freebsd_triage 2026-10-12 02:24:32 UTC
The latest version of drm-612-kmod appears to solve the GPU hang issue (at least for me). The commit is ports 3e1c3ad475984e424b30424c306bcdbb1a091569.

Although the commit message does not mention the issue, my desktop has not seen it since the update for about 3-4 days.

My system info:

$ pkg info | grep drm-612
drm-612-kmod-6.12.110.1501000_3 Direct Rendering Manager (DRM) GPU drivers

$ pciconf -lv | grep -B3 display
vgapci0@pci0:0:2:0:     class=0x030000 rev=0x06 hdr=0x00 vendor=0x8086 device=0x5926 subvendor=0x8086 subdevice=0x2068
    vendor     = 'Intel Corporation'
    device     = 'Kaby Lake-U GT3 [Iris Plus Graphics 640]'
    class      = display
Comment 16 Jonathan Chen 2026-10-18 19:21:16 UTC
Version drm-612-kmod-6.12.110.1501503_3 does appears to be much more reliable. I've tested over the weekend, placing my system under load, and have yet to encounter any hangs.
Comment 17 rkoberman 2026-10-20 00:39:50 UTC
I have had one lockup on my Alder Lake in over a day of use. To say the least, it's a huge improvement. Just as important, for the first time in months, vulkan is working. For a long time it simply didn't work and the system fell back to vaapi. THen Vlkan was "fixed". Then it failed to fall back and I had to disable it. Now it works fine. I can play a 1080p video and my CPU is running at about %5 CPU. I'll see how long it will run before the second lock-up.

In any casee, it's a huge improvement over where I was s couple of weeks ago and running drm-612 where it simply didn't work on this system.