Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Feb 2021 21:08:28 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-current@freebsd.org, freebsd-x11@freebsd.org
Subject:   panic in drm or vt or deadlock on mutex or ...
Message-ID:  <20210203050828.GA21823@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
%  pkg info | grep kmod
drm-devel-kmod-5.4.62.g20210128 DRM modules for the linuxkpi-basedr
KMS components (development version)
gpu-firmware-kmod-g20201213    Firmware modules for the linuxkpi-based
KMS components


mobile dumped core - see /var/crash/vmcore.0

Tue Feb  2 20:56:29 PST 2021

FreeBSD mobile 14.0-CURRENT FreeBSD 14.0-CURRENT #4 main-c256341-g0e01ea872ee-dirty: Wed Jan 27 17:11:57 PST 2021     root@mobile:/usr/obj/usr/src/i386.i386/sys/MOBILE  i386

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0xccccc374
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xef411f
stack pointer	        = 0x28:0x4074e97c
frame pointer	        = 0x28:0x4074e988
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 91696 (chrome)
trap number		= 12
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /mnt/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.92_1/drivers/gpu/drm/drm_atomic_helper.c:621
#0 0x24ba1269 at linux_dump_stack+0x19
#1 0x30036af2 at drm_atomic_helper_check_modeset+0x92
#2 0x24ae2370 at intel_atomic_check+0x70
#3 0x30035d6e at drm_atomic_check_only+0x38e
#4 0x30036091 at drm_atomic_commit+0x11
#5 0x300413f3 at drm_client_modeset_commit_atomic+0xb3
#6 0x300411ee at drm_client_modeset_commit_force+0x5e
#7 0x3007cee1 at drm_fb_helper_restore_fbdev_mode_unlocked+0x71
#8 0x30077722 at vt_kms_postswitch+0x132
#9 0xba4415 at vt_fb_postswitch+0x15
#10 0xbab1e9 at vt_window_switch+0x119
#11 0xba8674 at vtterm_cngrab+0x94
#12 0xcc281f at termcn_cngrab+0xf
#13 0xc07ca6 at cngrab+0x16
#14 0xc6736b at vpanic+0x8b
#15 0xc672d4 at panic+0x14
#16 0xf6e2b7 at trap_fatal+0x347
#17 0xf6e2f0 at trap_pfault+0x30
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /mnt/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.92_1/drivers/gpu/drm/drm_atomic_helper.c:621
#0 0x24ba1269 at linux_dump_stack+0x19
#1 0x30036af2 at drm_atomic_helper_check_modeset+0x92
#2 0x24ae2370 at intel_atomic_check+0x70
#3 0x30035d6e at drm_atomic_check_only+0x38e
#4 0x30036091 at drm_atomic_commit+0x11
#5 0x300413f3 at drm_client_modeset_commit_atomic+0xb3
#6 0x300411ee at drm_client_modeset_commit_force+0x5e
#7 0x3007cee1 at drm_fb_helper_restore_fbdev_mode_unlocked+0x71
#8 0x30077722 at vt_kms_postswitch+0x132
#9 0xba4415 at vt_fb_postswitch+0x15
#10 0xbab1e9 at vt_window_switch+0x119
#11 0xba8674 at vtterm_cngrab+0x94
#12 0xcc281f at termcn_cngrab+0xf
#13 0xc07ca6 at cngrab+0x16
#14 0xc6736b at vpanic+0x8b
#15 0xc672d4 at panic+0x14
#16 0xf6e2b7 at trap_fatal+0x347
#17 0xf6e2f0 at trap_pfault+0x30
WARNING !drm_modeset_is_locked(&dev->mode_config.connection_mutex) failed at /mnt/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.92_1/drivers/gpu/drm/drm_atomic_helper.c:666
#0 0x24ba1269 at linux_dump_stack+0x19
#1 0x30036c35 at drm_atomic_helper_check_modeset+0x1d5
#2 0x24ae2370 at intel_atomic_check+0x70
#3 0x30035d6e at drm_atomic_check_only+0x38e
#4 0x30036091 at drm_atomic_commit+0x11
#5 0x300413f3 at drm_client_modeset_commit_atomic+0xb3
#6 0x300411ee at drm_client_modeset_commit_force+0x5e
#7 0x3007cee1 at drm_fb_helper_restore_fbdev_mode_unlocked+0x71
#8 0x30077722 at vt_kms_postswitch+0x132
#9 0xba4415 at vt_fb_postswitch+0x15
#10 0xbab1e9 at vt_window_switch+0x119
#11 0xba8674 at vtterm_cngrab+0x94
#12 0xcc281f at termcn_cngrab+0xf
#13 0xc07ca6 at cngrab+0x16
#14 0xc6736b at vpanic+0x8b
#15 0xc672d4 at panic+0x14
#16 0xf6e2b7 at trap_fatal+0x347
#17 0xf6e2f0 at trap_pfault+0x30
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /mnt/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.92_1/drivers/gpu/drm/drm_atomic_helper.c:871
#0 0x24ba1269 at linux_dump_stack+0x19
#1 0x300379ed at drm_atomic_helper_check_planes+0x8d
#2 0x24ae338d at intel_atomic_check+0x108d
#3 0x30035d6e at drm_atomic_check_only+0x38e
#4 0x30036091 at drm_atomic_commit+0x11
#5 0x300413f3 at drm_client_modeset_commit_atomic+0xb3
#6 0x300411ee at drm_client_modeset_commit_force+0x5e
#7 0x3007cee1 at drm_fb_helper_restore_fbdev_mode_unlocked+0x71
#8 0x30077722 at vt_kms_postswitch+0x132
#9 0xba4415 at vt_fb_postswitch+0x15
#10 0xbab1e9 at vt_window_switch+0x119
#11 0xba8674 at vtterm_cngrab+0x94
#12 0xcc281f at termcn_cngrab+0xf
#13 0xc07ca6 at cngrab+0x16
#14 0xc6736b at vpanic+0x8b
#15 0xc672d4 at panic+0x14
#16 0xf6e2b7 at trap_fatal+0x347
#17 0xf6e2f0 at trap_pfault+0x30
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /mnt/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.92_1/drivers/gpu/drm/drm_atomic_helper.c:871
#0 0x24ba1269 at linux_dump_stack+0x19
#1 0x300379ed at drm_atomic_helper_check_planes+0x8d
#2 0x24ae338d at intel_atomic_check+0x108d
#3 0x30035d6e at drm_atomic_check_only+0x38e
#4 0x30036091 at drm_atomic_commit+0x11
#5 0x300413f3 at drm_client_modeset_commit_atomic+0xb3
#6 0x300411ee at drm_client_modeset_commit_force+0x5e
#7 0x3007cee1 at drm_fb_helper_restore_fbdev_mode_unlocked+0x71
#8 0x30077722 at vt_kms_postswitch+0x132
#9 0xba4415 at vt_fb_postswitch+0x15
#10 0xbab1e9 at vt_window_switch+0x119
#11 0xba8674 at vtterm_cngrab+0x94
#12 0xcc281f at termcn_cngrab+0xf
#13 0xc07ca6 at cngrab+0x16
#14 0xc6736b at vpanic+0x8b
#15 0xc672d4 at panic+0x14
#16 0xf6e2b7 at trap_fatal+0x347
#17 0xf6e2f0 at trap_pfault+0x30
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /mnt/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.92_1/drivers/gpu/drm/drm_atomic_helper.c:871
#0 0x24ba1269 at linux_dump_stack+0x19
#1 0x300379ed at drm_atomic_helper_check_planes+0x8d
#2 0x24ae338d at intel_atomic_check+0x108d
#3 0x30035d6e at drm_atomic_check_only+0x38e
#4 0x30036091 at drm_atomic_commit+0x11
#5 0x300413f3 at drm_client_modeset_commit_atomic+0xb3
#6 0x300411ee at drm_client_modeset_commit_force+0x5e
#7 0x3007cee1 at drm_fb_helper_restore_fbdev_mode_unlocked+0x71
#8 0x30077722 at vt_kms_postswitch+0x132
#9 0xba4415 at vt_fb_postswitch+0x15
#10 0xbab1e9 at vt_window_switch+0x119
#11 0xba8674 at vtterm_cngrab+0x94
#12 0xcc281f at termcn_cngrab+0xf
#13 0xc07ca6 at cngrab+0x16
#14 0xc6736b at vpanic+0x8b
#15 0xc672d4 at panic+0x14
#16 0xf6e2b7 at trap_fatal+0x347
#17 0xf6e2f0 at trap_pfault+0x30
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /mnt/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.4.92_1/drivers/gpu/drm/drm_atomic_helper.c:871
#0 0x24ba1269 at linux_dump_stack+0x19
#1 0x300379ed at drm_atomic_helper_check_planes+0x8d
#2 0x24ae338d at intel_atomic_check+0x108d
#3 0x30035d6e at drm_atomic_check_only+0x38e
#4 0x30036091 at drm_atomic_commit+0x11
#5 0x300413f3 at drm_client_modeset_commit_atomic+0xb3
#6 0x300411ee at drm_client_modeset_commit_force+0x5e
#7 0x3007cee1 at drm_fb_helper_restore_fbdev_mode_unlocked+0x71
#8 0x30077722 at vt_kms_postswitch+0x132
#9 0xba4415 at vt_fb_postswitch+0x15
#10 0xbab1e9 at vt_window_switch+0x119
#11 0xba8674 at vtterm_cngrab+0x94
#12 0xcc281f at termcn_cngrab+0xf
#13 0xc07ca6 at cngrab+0x16
#14 0xc6736b at vpanic+0x8b
#15 0xc672d4 at panic+0x14
#16 0xf6e2b7 at trap_fatal+0x347
#17 0xf6e2f0 at trap_pfault+0x30
<4>WARN_ON(!mutex_is_locked(&dev->struct_mutex))
               
<4>WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
panic: page fault
cpuid = 0
time = 1612328062
KDB: stack backtrace:
db_trace_self_wrapper(2,4074e93c,c,0,4074e800,...) at db_trace_self_wrapper+0x28/frame 0x4074e7d4
vpanic(f9d603,4074e80c,4074e80c,4074e834,f6e2b7,...) at vpanic+0x11a/frame 0x4074e7ec
panic(f9d603,fe16b8,0,fffff,ccccc39b,...) at panic+0x14/frame 0x4074e800
trap_fatal(1327100,0,c95893,78f03f4,4074e860,...) at trap_fatal+0x347/frame 0x4074e834
trap_pfault(ccccc374,0,0) at trap_pfault+0x30/frame 0x4074e864
trap(4074e93c,8,28,28,0,...) at trap+0x381/frame 0x4074e930
calltrap() at 0xffc0319f/frame 0x4074e930
--- trap 0xc, eip = 0xef411f, esp = 0x4074e97c, ebp = 0x4074e988 ---
vm_radix_lookup(28c7b884,2,0) at vm_radix_lookup+0x7f/frame 0x4074e988
vm_page_lookup(28c7b854,2,0) at vm_page_lookup+0x15/frame 0x4074e99c
vm_fault(24ed8d58,3488b000,2,0,4074eab0) at vm_fault+0x839/frame 0x4074ea48
vm_fault_quick_hold_pages(24ed8d58,34889f00,8000,2,4074eaa8,12) at vm_fault_quick_hold_pages+0x122/frame 0x4074ea88
vn_io_fault1(247f4380) at vn_io_fault1+0x214/frame 0x4074eb44
vn_io_fault(2f5a58e8,4074ebc8,262c1e00,0,247f4380) at vn_io_fault+0x1c4/frame 0x4074eb7c
dofileread(2f5a58e8,4074ebc8,ffffffff,ffffffff,0) at dofileread+0x6d/frame 0x4074ebac
sys_read(247f4380,247f4618,343fb000,247f4380,40516068,...) at sys_read+0x67/frame 0x4074ec00
syscall(4074ece8,3b,3b,3b,2d130d1c,...) at syscall+0x17d/frame 0x4074ecdc
Xint0x80_syscall() at 0xffc033f9/frame 0x4074ecdc
--- syscall (881410048), eip = 0x2d086faf, esp = 0xfa1e339c, ebp = 0xfa1e33c8 ---
KDB: enter: panic

0x00c67249 in doadump (textdump=1081402756)
    at /usr/src/sys/kern/kern_shutdown.c:398
398		savectx(&dumppcb);
(kgdb) #0  0x00c67249 in doadump (textdump=1081402756)
    at /usr/src/sys/kern/kern_shutdown.c:398
#1  0x009da5e9 in db_fncall_generic (addr=<optimized out>, 
    rv=<optimized out>, nargs=0, args=<optimized out>)
    at /usr/src/sys/ddb/db_command.c:610
#2  db_fncall (dummy1=12177025, dummy2=false, dummy3=1081402812, 
    dummy4=0x4074e5b8 "0\263\331\022\324\345t", <incomplete sequence \360\060\253>) at /usr/src/sys/ddb/db_command.c:658
#3  0x009da13b in db_command (last_cmdp=<optimized out>, 
    cmd_table=<optimized out>, dopager=dopager@entry=1)
    at /usr/src/sys/ddb/db_command.c:482
#4  0x009d9e7c in db_command_loop () at /usr/src/sys/ddb/db_command.c:535
#5  0x009dcfcd in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:270
#6  0x00cad8c9 in kdb_trap (type=3, code=0, tf=0x4074e788)
    at /usr/src/sys/kern/subr_kdb.c:727
#7  0x00f6da5d in trap (frame=0x4074e788) at /usr/src/sys/i386/i386/trap.c:665
#8  0xffc0319f in ?? ()
#9  0x4074e788 in ?? ()
#10 0x00000028 in ?? ()
#11 0x00000028 in ?? ()
#12 0x00000100 in ?? ()
#13 0x00ff9138 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(kgdb) 

-- 
steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210203050828.GA21823>