From nobody Thu Jan 13 02:58:01 2022 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0B596195A994 for ; Thu, 13 Jan 2022 02:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JZ8Hs4xnWz4tqF for ; Thu, 13 Jan 2022 02:58:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 89E3018947 for ; Thu, 13 Jan 2022 02:58:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20D2w16B062301 for ; Thu, 13 Jan 2022 02:58:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20D2w11r062300 for x11@FreeBSD.org; Thu, 13 Jan 2022 02:58:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 261166] graphics/drm-devel-kmod kernel panics: mi_switch: switch in a critical section Date: Thu, 13 Jan 2022 02:58:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grahamperrin@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642042681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PL6VGZCkB9FePPpktedsYW8bj45zotmQ3tUh/MBfFTQ=; b=AKiI6j7CWPl3pWQtQmgEsMB+NiaIaYB680Df3UJE7BJEEzcffqRPeASNqqCMJrNhUvkPoo 0LYrSqeTilwp3FoTy2E46ClDODa7jVKH+QqKxBJNsQXsuCd/FiR2aSmp/fekFxN0U1AiaF AljJWQilp/YQRbBbBOxMIWYRQhMjE22qD38MHdWaJ50L5mAtxoX+phfiXhfCgRBY6XLEZE u2x4Q6bFTGObH3plHeljhcZec7+sm8f9E/UW1ZUqzwV3A3IUSYF1pSAcXL06n5zWaQNONp +qOV1VsZuH3m5iYlJR+GrZWS27NE/aMhk8LOxahvMQ32WSpXTJc7+YZkt8224w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642042681; a=rsa-sha256; cv=none; b=x6JrP2sLEkCeQrL6b9gscjtP0m7j50z6DTEaDswXVrXR7Pbd3UlmRwF9KL8LCBKgOatURW u+0O2cpLOApvqua4ps51WYvVxtqoywhrn60GL3z0VNInNfxbCaxSDjbTwycNH4pVmcyM5k YP+kLq2Blb9SVeDwtcJGOf0GxUC8Ny2BZMgB6nl8s4C3EWRAEbMowin87NDHMhTt7FOfAc mgE2qAgPVdSqLaCIL1bqpGf0LAsmtmlFPHew2ynQDnef8aMpIKpEnV7Vk/VYVO+2eFrwWc ctjVDweAYOTNIV5Yc/HOcGpdlYzMd1RDoG3Yv1TWX6f2zigMx19j4E9m2TnxMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261166 --- Comment #1 from Graham Perrin --- Created attachment 230971 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230971&action= =3Dedit core.txt.1 Unread portion of the kernel message buffer: panic: mi_switch: switch in a critical section cpuid =3D 1 time =3D 1642031271 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe01311a8= 3a0 vpanic() at vpanic+0x17f/frame 0xfffffe01311a83f0 panic() at panic+0x43/frame 0xfffffe01311a8450 mi_switch() at mi_switch+0x19a/frame 0xfffffe01311a8470 __mtx_lock_sleep() at __mtx_lock_sleep+0x1d9/frame 0xfffffe01311a8500 __mtx_lock_flags() at __mtx_lock_flags+0xe5/frame 0xfffffe01311a8550 linux_wake_up() at linux_wake_up+0x38/frame 0xfffffe01311a85a0 radeon_fence_is_signaled() at radeon_fence_is_signaled+0x9b/frame 0xfffffe01311a85f0 dma_resv_add_shared_fence() at dma_resv_add_shared_fence+0x8a/frame 0xfffffe01311a8640 ttm_eu_fence_buffer_objects() at ttm_eu_fence_buffer_objects+0x6a/frame 0xfffffe01311a8670 radeon_cs_parser_fini() at radeon_cs_parser_fini+0x53/frame 0xfffffe01311a8= 6a0 radeon_cs_ioctl() at radeon_cs_ioctl+0x788/frame 0xfffffe01311a8b20 drm_ioctl_kernel() at drm_ioctl_kernel+0xc7/frame 0xfffffe01311a8b70 drm_ioctl() at drm_ioctl+0x2c4/frame 0xfffffe01311a8c60 linux_file_ioctl() at linux_file_ioctl+0x30a/frame 0xfffffe01311a8cc0 kern_ioctl() at kern_ioctl+0x202/frame 0xfffffe01311a8d30 sys_ioctl() at sys_ioctl+0x126/frame 0xfffffe01311a8e00 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe01311a8f30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe01311a8f30 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x27a426f501a, rsp =3D 0x7fffde617ec8, rbp =3D 0x7fffde617ef0 --- KDB: enter: panic Uptime: 22m3s (ada0:ahcich0:0:0:0): spin-down Dumping 1817 out of 16265 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..= 91% __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 55 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 #1 doadump (textdump=3Dtextdump@entry=3D1) at /usr/src/sys/kern/kern_shutdown.c:399 #2 0xffffffff80c00ba4 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:487 #3 0xffffffff80c0100e in vpanic ( fmt=3D0xffffffff811ac565 "mi_switch: switch in a critical section",=20 ap=3D) at /usr/src/sys/kern/kern_shutdown.c:920 #4 0xffffffff80c00d63 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:844 #5 0xffffffff80c0df5a in mi_switch (flags=3Dflags@entry=3D259) at /usr/src/sys/kern/kern_synch.c:503 #6 0xffffffff80c67eea in turnstile_wait (ts=3Dts@entry=3D0xfffff8001f32724= 0,=20 owner=3Downer@entry=3D0xfffffe015f7f03a0, queue=3D,=20 queue@entry=3D0) at /usr/src/sys/kern/subr_turnstile.c:817 #7 0xffffffff80bdc659 in __mtx_lock_sleep (c=3Dc@entry=3D0xfffffe00de6798a= 8,=20 v=3D, opts=3D, opts@entry=3D0,=20 file=3D,=20 file@entry=3D0xffffffff81284276 "/usr/src/sys/compat/linuxkpi/common/src/linux_schedule.c", line=3Dline@entry=3D207) at /usr/src/sys/kern/kern_mutex.c:668 #8 0xffffffff80bdc405 in __mtx_lock_flags (c=3D0xfffffe00de6798a8,=20 opts=3D,=20 file=3D0xffffffff81284276 "/usr/src/sys/compat/linuxkpi/common/src/linux_schedule.c", line=3D207) at /usr/src/sys/kern/kern_mutex.c:284 #9 0xffffffff80e7a028 in linux_wake_up (wqh=3D0xfffffe00de679890, state=3D= 3,=20 nr=3D0, locked=3Dfalse) at /usr/src/sys/compat/linuxkpi/common/src/linux_schedule.c:207 #10 0xffffffff8394520b in radeon_fence_is_signaled () from /boot/modules/radeonkms.ko #11 0xffffffff83a890ca in dma_resv_add_shared_fence () from /boot/modules/linuxkpi_gplv2.ko #12 0xffffffff83a96a6a in ttm_eu_fence_buffer_objects () from /boot/modules/ttm.ko #13 0xffffffff83937513 in radeon_cs_parser_fini () from /boot/modules/radeonkms.ko #14 0xffffffff83937298 in radeon_cs_ioctl () from /boot/modules/radeonkms.ko #15 0xffffffff83a2ca97 in drm_ioctl_kernel () from /boot/modules/drm.ko #16 0xffffffff83a2ce54 in drm_ioctl () from /boot/modules/drm.ko #17 0xffffffff80e6b7da in linux_file_ioctl_sub (fp=3D0xedef, filp=3D0x1,=20 fop=3D, cmd=3D, data=3D,=20 td=3D) at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:1024 #18 linux_file_ioctl (fp=3D0xedef,=20 fp@entry=3D,=20 cmd=3D,=20 cmd@entry=3D,=20 data=3D,=20 data@entry=3D,=20 cred=3D,=20 cred@entry=3D, td=3D0x0= ,=20 td@entry=3D) at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:1648 #19 0xffffffff80c77482 in fo_ioctl (fp=3D, com=3D3223348326,= =20 data=3D, active_cred=3D, td=3D0xfffffe013480b= 020) at /usr/src/sys/sys/file.h:364 #20 kern_ioctl (td=3D, td@entry=3D0xfffffe013480b020,=20 fd=3D, com=3Dcom@entry=3D3223348326, data=3D,=20 data@entry=3D0xfffffe01311a8d50 "\003") at /usr/src/sys/kern/sys_generic.c:803 #21 0xffffffff80c771d6 in sys_ioctl (td=3D0xfffffe013480b020,=20 td@entry=3D,=20 uap=3D0xfffffe013480b410,=20 uap@entry=3D) at /usr/src/sys/kern/sys_generic.c:711 #22 0xffffffff810c93be in syscallenter (td=3D) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189 #23 amd64_syscall (td=3D0xfffffe013480b020, traced=3D0) at /usr/src/sys/amd64/amd64/trap.c:1191 #24 #25 0x0000027a426f501a in ?? () Backtrace stopped: Cannot access memory at address 0x7fffde617ec8 (kgdb) --=20 You are receiving this mail because: You are the assignee for the bug.=