From owner-freebsd-x11@freebsd.org Wed Feb 3 05:08:38 2021 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5ABDF52A4EF; Wed, 3 Feb 2021 05:08:38 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DVqTJ5npKz3L2d; Wed, 3 Feb 2021 05:08:36 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 11358Svr021831 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 2 Feb 2021 21:08:28 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 11358SMM021830; Tue, 2 Feb 2021 21:08:28 -0800 (PST) (envelope-from sgk) Date: Tue, 2 Feb 2021 21:08:28 -0800 From: Steve Kargl 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4DVqTJ5npKz3L2d X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-2.96 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[128.95.76.21:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; SPAMHAUS_ZRD(0.00)[128.95.76.21:from:127.0.2.255]; NEURAL_HAM_SHORT(-0.96)[-0.962]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-x11]; RCVD_COUNT_TWO(0.00)[2] X-Mailman-Approved-At: Wed, 03 Feb 2021 18:12:13 +0000 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2021 05:08:38 -0000 % 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=, rv=, nargs=0, args=) 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", ) at /usr/src/sys/ddb/db_command.c:658 #3 0x009da13b in db_command (last_cmdp=, cmd_table=, 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