NetBSD Problem Report #60755

From www@netbsd.org  Sun Sep 20 12:46:00 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 162A41A923B
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Sep 2026 12:46:00 +0000 (UTC)
Message-Id: <20260920124558.482551A923C@mollari.NetBSD.org>
Date: Sun, 20 Sep 2026 12:45:58 +0000 (UTC)
From: jea.1768@gmail.com
Reply-To: jea.1768@gmail.com
To: gnats-bugs@NetBSD.org
Subject: i915drmkms crashes on Intel Bay Trail GPU making the machine rebooting
X-Send-Pr-Version: www-1.0
X-From4GNATS: "jea.1768@gmail.com via gnats" <gnats-admin@NetBSD.org>

>Number:         60755
>Notify-List:    riastradh
>Category:       kern
>Synopsis:       i915drmkms crashes on Intel Bay Trail GPU making the machine rebooting
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 20 12:50:00 +0000 2026
>Closed-Date:    
>Last-Modified:  Fri Oct 02 03:31:52 +0000 2026
>Originator:     jerome
>Release:        11.0
>Organization:
>Environment:
q1900.localdomain 11.0 NetBSD 11.0 (GENERIC) #0: Thu Jul 30 15:23:12 UTC 2026  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:

1) dmesg | grep -iE 'drm|genfb|i915|radeon|nouveau|amdgpu|vga'
[ 1.034389] acpivga0 at acpi0 (GFX0): ACPI Display Adapter [ 1.034389] acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device [ 1.034389] acpiout1 at acpivga0 (DD02, 0x0002): ACPI Display Output Device [ 1.034389] acpiout2 at acpivga0 (DD03, 0x0200): ACPI Display Output Device [ 1.034389] acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device [ 1.034389] acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device [ 1.034389] acpiout5 at acpivga0 (DD06, 0x0006): ACPI Display Output Device [ 1.034389] acpiout6 at acpivga0 (DD07, 0x0007): ACPI Display Output Device [ 1.034389] acpiout7 at acpivga0 (DD08, 0x0008): ACPI Display Output Device [ 1.034389] acpiout8 at acpivga0 (DD1F, 0x0400): ACPI Display Output Device [ 1.034389] acpiout9 at acpivga0 (ISP0, 0x0f38): ACPI Display Output Device [ 1.034389] acpivga0: connected output devices: [ 1.034389] acpivga0: 0x0400 (acpiout8): Unknown Output Device, head 0 [ 1.034389] i915drmkms0 at pci0 dev 2 function 0: Intel Bay 
 Trail Integrated Graphics Device (rev. 0x0e) [ 3.857724] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 3.857724] [drm] Driver supports precise vblank timestamp query. [ 3.857724] i915drmkms0: interrupting at msi5 vec 0 (i915drmkms0) [ 3.927721] [drm] Initialized i915 1.6.0 20200114 for i915drmkms0 on minor 0 [ 3.957723] intelfb0 at i915drmkms0 [ 3.957723] [drm] DRM_I915_DEBUG enabled [ 3.957723] [drm] DRM_I915_DEBUG_GEM enabled [ 147.646933] i915_gem_object_get_dma_address() at netbsd:i915_gem_object_get_dma_address+0x37 [ 147.646933] i915_gem_do_execbuffer() at netbsd:i915_gem_do_execbuffer+0xcb7 [ 147.646933] i915_gem_execbuffer2_ioctl() at netbsd:i915_gem_execbuffer2_ioctl+0x1be [ 147.656932] drm_ioctl() at netbsd:drm_ioctl+0x246 [ 147.656932] drm_ioctl_shim() at netbsd:drm_ioctl_shim+0x35 [ 1.033996] acpivga0 at acpi0 (GFX0): ACPI Display Adapter [ 1.033996] acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device [ 1.033996] acpiout1 at acpivga0 (DD02, 0x
 0002): ACPI Display Output Device [ 1.033996] acpiout2 at acpivga0 (DD03, 0x0200): ACPI Display Output Device [ 1.033996] acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device [ 1.033996] acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device [ 1.033996] acpiout5 at acpivga0 (DD06, 0x0006): ACPI Display Output Device [ 1.033996] acpiout6 at acpivga0 (DD07, 0x0007): ACPI Display Output Device [ 1.033996] acpiout7 at acpivga0 (DD08, 0x0008): ACPI Display Output Device [ 1.033996] acpiout8 at acpivga0 (DD1F, 0x0400): ACPI Display Output Device [ 1.033996] acpiout9 at acpivga0 (ISP0, 0x0f38): ACPI Display Output Device [ 1.033996] acpivga0: connected output devices: [ 1.033996] acpivga0: 0x0400 (acpiout8): Unknown Output Device, head 0 [ 1.033996] i915drmkms0 at pci0 dev 2 function 0: Intel Bay Trail Integrated Graphics Device (rev. 0x0e) [ 3.857573] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 3.857573] [drm] Driver supports precise vblank timestamp 
 query. [ 3.857573] i915drmkms0: interrupting at msi5 vec 0 (i915drmkms0) [ 3.927576] [drm] Initialized i915 1.6.0 20200114 for i915drmkms0 on minor 0 [ 3.957577] intelfb0 at i915drmkms0 [ 3.957577] [drm] DRM_I915_DEBUG enabled [ 3.957577] [drm] DRM_I915_DEBUG_GEM enabled

2)dmesg | grep -B 15 -A 15 get_dma_address
[     5.367713] wskbd1: connecting to wsdisplay0
[    13.897671] wsdisplay0: screen 1 added (default, vt100 emulation)
[    13.897671] wsdisplay0: screen 2 added (default, vt100 emulation)
[    13.907668] wsdisplay0: screen 3 added (default, vt100 emulation)
[    13.907668] wsdisplay0: screen 4 added (default, vt100 emulation)
[   147.636932] uvm_fault(0xffff810985ee26c0, 0x0, 2) -> e
[   147.636932] fatal page fault in supervisor mode
[   147.636932] trap type 6 code 0x2 rip 0xffffffff8078c02a cs 0x8 rflags 0x13206 cr2 0 ilevel 0 rsp 0xffffdb81406899c8
[   147.636932] curlwp 0xffff8109828ac000 pid 2611.2611 lowest kstack 0xffffdb81406852c0
[   147.636932] panic: trap
[   147.636932] cpu1: Begin traceback...
[   147.636932] vpanic() at netbsd:vpanic+0x171
[   147.646933] panic() at netbsd:panic+0x3c
[   147.646933] trap() at netbsd:trap+0xb32
[   147.646933] --- trap (number 6) ---
[   147.646933] i915_gem_object_get_dma_address() at netbsd:i915_gem_object_get_dma_address+0x37
[   147.646933] i915_gem_do_execbuffer() at netbsd:i915_gem_do_execbuffer+0xcb7
[   147.646933] i915_gem_execbuffer2_ioctl() at netbsd:i915_gem_execbuffer2_ioctl+0x1be
[   147.656932] drm_ioctl() at netbsd:drm_ioctl+0x246
[   147.656932] drm_ioctl_shim() at netbsd:drm_ioctl_shim+0x35
[   147.656932] sys_ioctl() at netbsd:sys_ioctl+0x4ca
[   147.656932] syscall() at netbsd:syscall+0x9a
[   147.656932] --- syscall (number 54) ---
[   147.656932] netbsd:syscall+0x9a:
[   147.656932] cpu1: End traceback...

[   147.656932] dumping to dev 168,1 (offset=231, size=972259):
[   147.656932] dump [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[     1.000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[     1.000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[     1.000000]     2024, 2025, 2026

No Xorg.0.log as the machine crashes before log can be written.



>How-To-Repeat:
NetBSD 11.0 full install with X on ASRock Q1900-ITX motherboard (https://www.asrock.com/mb/Intel/Q1900-ITX/index.fr.asp#Support)

=> Default X installation with i915 driver crashes... :(

>Fix:
1) in xorg.conf : 

Section "Device"
    Identifier "Card0"
    Driver     "wsfb"
EndSection

2) in .profile
export LIBGL_ALWAYS_SOFTWARE=1

So X runs nicely in framebuffer mode only, GPU acceleration just lost

>Release-Note:

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60755 CVS commit: src/sys/external/bsd/drm2/dist/drm/i915/gem
Date: Sun, 20 Sep 2026 13:55:33 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sun Sep 20 13:55:33 UTC 2026

 Modified Files:
 	src/sys/external/bsd/drm2/dist/drm/i915/gem: i915_gem_pages.c

 Log Message:
 i915: Fix null pointer deref in i915_gem_object_get_dma_address.

 Matches the Linux code in the #else this way.

 PR kern/60755: i915drmkms crashes on Intel Bay Trail GPU making the
 machine rebooting


 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 \
     src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 22 Sep 2026 13:23:33 +0000
State-Changed-Why:
Can you please try with a current kernel, having i915_gem_pages.c
rev. 1.8?

You don't need to upgrade everything; you can just copy a current
kernel to, say, /netbsd-HEAD and boot that on your 11.0 userland.  If
it works, we can pull the change up to the netbsd-11 branch so it will
appear in 11.1.


State-Changed-From-To: feedback->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 02 Oct 2026 03:31:52 +0000
State-Changed-Why:
probably fixed in HEAD, needs pullup-11 and pullup-10


...then back to feedback


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.