Hello,
i installed FreeBSD 13.1 on my Thinkpad T480 but it randomly crashes (dumps posted below).
On drm-kmod git page there is a thread with similar issue posted.
They say it's not drm bug and one user even mentioned it's zfs related.
github.com
This is confusing to me. Sadly I did not find solution.
I do have other FreeBSD machines with X11 running and no such problem ever occured.
I hope it's not hw failure related issue.
Here is full dump
My sysctl.conf, loader.conf, rc.conf
Those are last messages during crash.
Here is the trace
i installed FreeBSD 13.1 on my Thinkpad T480 but it randomly crashes (dumps posted below).
On drm-kmod git page there is a thread with similar issue posted.
They say it's not drm bug and one user even mentioned it's zfs related.
panic: !drm_modeset_is_locked(&plane->mutex) failed at drm_atomic_helper.c:871 · Issue #43 · freebsd/drm-kmod
FreeBSD x1c.lwhsu.org 13.0-CURRENT FreeBSD 13.0-CURRENT #1 r367582M: Wed Nov 11 16:16:00 CST 2020 root@x1c.lwhsu.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 drm-devel-kmod-5.4.62.g20...
This is confusing to me. Sadly I did not find solution.
I do have other FreeBSD machines with X11 running and no such problem ever occured.
I hope it's not hw failure related issue.
Here is full dump
My sysctl.conf, loader.conf, rc.conf
Those are last messages during crash.
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.144_6/drivers/gpu/drm/drm_atomic_helper.c:871
#0 0xffffffff80e5e253 at linux_dump_stack+0x23
#1 0xffffffff83858620 at drm_atomic_helper_check_planes+0xb0
#2 0xffffffff83750dfa at intel_atomic_check+0x124a
#3 0xffffffff83856360 at drm_atomic_check_only+0x400
#4 0xffffffff83856793 at drm_atomic_commit+0x13
#5 0xffffffff838633b8 at drm_client_modeset_commit_atomic+0x148
#6 0xffffffff83863119 at drm_client_modeset_commit_force+0x69
#7 0xffffffff838a30ba at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
#8 0xffffffff8389d057 at vt_kms_postswitch+0x167
#9 0xffffffff80a709f9 at vt_window_switch+0x2d9
#10 0xffffffff80a6db5f at vtterm_cngrab+0x4f
#11 0xffffffff80bb3916 at cngrab+0x26
#12 0xffffffff80c1b614 at kern_reboot+0x354
#13 0xffffffff80c1bb8e at vpanic+0x1ee
#14 0xffffffff80c1b993 at panic+0x43
#15 0xffffffff810afdf5 at trap_fatal+0x385
#16 0xffffffff810afe4f at trap_pfault+0x4f
#17 0xffffffff81087528 at calltrap+0x8
WARN_ON(!mutex_is_locked(&dev->struct_mutex))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&dev->struct_mutex))WARN_ON(!mutex_is_locked(&fbc->lock))
WARN_ON(!mutex_is_locked(&fbc->lock))
WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
Dumping 1324 out of 32613 MB:..2%..11%..21%..31%..42%..51%..61%..71%..81%..91%
Here is the trace
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55 /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory.
(kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1 doadump (textdump=<optimized out>)
at /usr/src/sys/kern/kern_shutdown.c:399
#2 0xffffffff80c1b71c in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:487
#3 0xffffffff80c1bb8e in vpanic (fmt=0xffffffff811b4fb9 "%s",
ap=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:920
#4 0xffffffff80c1b993 in panic (fmt=<unavailable>)
at /usr/src/sys/kern/kern_shutdown.c:844
#5 0xffffffff810afdf5 in trap_fatal (frame=0xfffffe014f0e5ad0,
eva=274877908032) at /usr/src/sys/amd64/amd64/trap.c:944
#6 0xffffffff810afe4f in trap_pfault (frame=0xfffffe014f0e5ad0,
usermode=false, signo=<optimized out>, ucode=<optimized out>)
at /usr/src/sys/amd64/amd64/trap.c:763
#7 <signal handler called>
#8 __mtx_lock_sleep (c=0xfffff80011c6f778, v=<optimized out>)
at /usr/src/sys/kern/kern_mutex.c:594
#9 0xffffffff80cbf1ec in sopoll_generic (so=0xfffff80011c6f760, events=3,
active_cred=<optimized out>, td=0xfffffe014ef5a900)
at /usr/src/sys/kern/uipc_socket.c:3551
#10 0xffffffff80c8b0dc in fo_poll (fp=0xfffff80011c6f778, events=0,
active_cred=0xfffff802865cf500, td=0xfffffe014ef5a900)
at /usr/src/sys/sys/file.h:369
#11 pollscan (td=0xfffffe014ef5a900, fds=0xfffffe014f0e5d00, nfd=21)
at /usr/src/sys/kern/sys_generic.c:1651
#12 kern_poll (td=0xfffffe014ef5a900, ufds=0x7fffdff7b890,
nfds=<optimized out>, tsp=<optimized out>, uset=<optimized out>,
uset@entry=0x0) at /usr/src/sys/kern/sys_generic.c:1492
#13 0xffffffff80c8ac50 in sys_poll (td=0xfffff80011c6f778,
uap=<optimized out>) at /usr/src/sys/kern/sys_generic.c:1417
#14 0xffffffff810b06ec in syscallenter (td=0xfffffe014ef5a900)
at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189
#15 amd64_syscall (td=0xfffffe014ef5a900, traced=0)
at /usr/src/sys/amd64/amd64/trap.c:1185
#16 <signal handler called>
#17 0x00000008013c963a in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdff7b7f8
(kgdb)