Bug 232691 - i915 (?): Fatal trap 12: page fault while in kernel mode (supervisor read data, page not present, i915_gem_* functions)
Summary: i915 (?): Fatal trap 12: page fault while in kernel mode (supervisor read dat...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2018-10-25 21:35 UTC by Martin Filla
Modified: 2019-08-17 09:24 UTC (History)
2 users (show)

See Also:


Attachments
dmesg.txt (28.37 KB, text/plain)
2018-10-25 21:54 UTC, Martin Filla
no flags Details
pkg_version.txt (57.49 KB, text/plain)
2019-07-08 21:43 UTC, Martin Filla
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2018-10-25 21:35:32 UTC
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x40
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff828b8970
stack pointer	        = 0x0:0xfffffe0233d7b630
frame pointer	        = 0x0:0xfffffe0233d7b660
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 59062 (Xorg)
trap number		= 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff80b3d587 at kdb_backtrace+0x67
#1 0xffffffff80af6b27 at vpanic+0x177
#2 0xffffffff80af69a3 at panic+0x43
#3 0xffffffff80f77fdf at trap_fatal+0x35f
#4 0xffffffff80f78039 at trap_pfault+0x49
#5 0xffffffff80f77807 at trap+0x2c7
#6 0xffffffff80f57fbc at calltrap+0x8
#7 0xffffffff82836aff at i915_gem_evict_something+0xbf
#8 0xffffffff8283300e at i915_gem_object_pin+0x37e
#9 0xffffffff82830be9 at i915_gem_pager_populate+0x1a9
#10 0xffffffff80dea557 at vm_fault_hold+0x11f7
#11 0xffffffff80de9315 at vm_fault+0x75
#12 0xffffffff80f7813c at trap_pfault+0x14c
#13 0xffffffff80f77893 at trap+0x353
#14 0xffffffff80f57fbc at calltrap+0x8
Comment 1 Martin Filla 2018-10-25 21:54:04 UTC
Created attachment 198635 [details]
dmesg.txt
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2018-11-19 02:03:39 UTC
Thank you for your report.

If the issue is reproducible, could you please:

- Build/enable a debug kernel if applicable and attach a full backtrace
- Attach the output of pkg version -v

This looks similar to bug 225175, in which case it would be worthwhile trying the drm-kmod port/packages as suggested by Niclas in bug 225175 comment 5
Comment 3 Martin Filla 2019-07-08 21:43:50 UTC
Created attachment 205593 [details]
pkg_version.txt

Hi, 
i added file from command pkg version -v
Comment 4 Martin Filla 2019-07-08 21:51:28 UTC
From info.last its last panic
Dump header from device: /dev/mirror/swap
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 1440104448
  Blocksize: 512
  Dumptime: Mon Jul  8 11:40:09 2019
  Hostname: 
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 11.2-RELEASE-p11 #0: Tue Jul  2 21:24:25 UTC 2019
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
  Panic String: page fault
  Dump Parity: 2032784734
  Bounds: 0
  Dump Status: good
Comment 5 Martin Filla 2019-08-17 09:24:19 UTC
Hi, this is bt with debug symbols

Fatal trap 12: page fault while in kernel mode
cpuid = 7; apic id = 07
fault virtual address	= 0x40
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff82974970
stack pointer	        = 0x0:0xfffffe0233d8a630
frame pointer	        = 0x0:0xfffffe0233d8a660
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 3
current process		= 35462 (Xorg)
trap number		= 12
panic: page fault
cpuid = 7
KDB: stack backtrace:
#0 0xffffffff80b3d5b7 at kdb_backtrace+0x67
#1 0xffffffff80af6b57 at vpanic+0x177
#2 0xffffffff80af69d3 at panic+0x43
#3 0xffffffff80f7827f at trap_fatal+0x35f
#4 0xffffffff80f782d9 at trap_pfault+0x49
#5 0xffffffff80f77aa7 at trap+0x2c7
#6 0xffffffff80f580cc at calltrap+0x8
#7 0xffffffff828f2aff at i915_gem_evict_something+0xbf
#8 0xffffffff828ef00e at i915_gem_object_pin+0x37e
#9 0xffffffff828ecbe9 at i915_gem_pager_populate+0x1a9
#10 0xffffffff80dea657 at vm_fault_hold+0x11f7
#11 0xffffffff80de9415 at vm_fault+0x75
#12 0xffffffff80f783dc at trap_pfault+0x14c
#13 0xffffffff80f77b33 at trap+0x353
#14 0xffffffff80f580cc at calltrap+0x8
Uptime: 4h30m33s
Dumping 1021 out of 8048 MB:..2%..11%..21%..32%..41%..51%..62%..71%..82%..91%

Reading symbols from /boot/kernel/acpi_video.ko...done.
Loaded symbols for /boot/kernel/acpi_video.ko
Reading symbols from /usr/lib/debug/boot/kernel/aesni.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/aesni.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/geom_eli.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/geom_eli.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/geom_mirror.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/geom_mirror.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/zfs.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/zfs.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/opensolaris.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/opensolaris.ko.debug
Reading symbols from /boot/modules/vboxdrv.ko...done.
Loaded symbols for /boot/modules/vboxdrv.ko
Reading symbols from /usr/lib/debug/boot/kernel/coretemp.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/coretemp.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/if_lagg.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/if_lagg.ko.debug
Reading symbols from /boot/kernel/ums.ko...done.
Loaded symbols for /boot/kernel/ums.ko
Reading symbols from /boot/kernel/pflog.ko...done.
Loaded symbols for /boot/kernel/pflog.ko
Reading symbols from /usr/lib/debug/boot/kernel/pf.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/pf.ko.debug
Reading symbols from /boot/modules/vboxnetflt.ko...done.
Loaded symbols for /boot/modules/vboxnetflt.ko
Reading symbols from /usr/lib/debug/boot/kernel/netgraph.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/netgraph.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/ng_ether.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/ng_ether.ko.debug
Reading symbols from /boot/modules/vboxnetadp.ko...done.
Loaded symbols for /boot/modules/vboxnetadp.ko
Reading symbols from /usr/lib/debug/boot/kernel/linux.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/linux.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/linux_common.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/linux_common.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/linux64.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/linux64.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/i915kms.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/i915kms.ko.debug
Reading symbols from /usr/lib/debug/boot/kernel/drm2.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/drm2.ko.debug
Reading symbols from /boot/kernel/iicbus.ko...done.
Loaded symbols for /boot/kernel/iicbus.ko
Reading symbols from /boot/kernel/iic.ko...done.
Loaded symbols for /boot/kernel/iic.ko
Reading symbols from /boot/kernel/iicbb.ko...done.
Loaded symbols for /boot/kernel/iicbb.ko
Reading symbols from /usr/lib/debug/boot/kernel/tmpfs.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/tmpfs.ko.debug
#0  doadump (textdump=<value optimized out>) at pcpu.h:233
233	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) bt
#0  doadump (textdump=<value optimized out>) at pcpu.h:233
#1  0xffffffff80af676b in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:383
#2  0xffffffff80af6b91 in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:776
#3  0xffffffff80af69d3 in panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:707
#4  0xffffffff80f7827f in trap_fatal (frame=0xfffffe0233d8a570, eva=64) at /usr/src/sys/amd64/amd64/trap.c:875
#5  0xffffffff80f782d9 in trap_pfault (frame=0xfffffe0233d8a570, usermode=0) at pcpu.h:233
#6  0xffffffff80f77aa7 in trap (frame=0xfffffe0233d8a570) at /usr/src/sys/amd64/amd64/trap.c:415
#7  0xffffffff80f580cc in alltraps_pushregs_no_rax () at /usr/src/sys/amd64/amd64/exception.S:222
#8  0x0000000000000000 in ?? ()
Current language:  auto; currently minimal