From nobody Thu Jan 13 10:08:40 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 9870F19482B4 for ; Thu, 13 Jan 2022 10:08:40 +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 4JZKrm2MmLz4sq4 for ; Thu, 13 Jan 2022 10:08:40 +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 2E0B71EA84 for ; Thu, 13 Jan 2022 10:08:40 +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 20DA8e8B086049 for ; Thu, 13 Jan 2022 10:08:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20DA8eWU086048 for x11@FreeBSD.org; Thu, 13 Jan 2022 10:08:40 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 graphics/drm-current-kmod kernel panics: mi_switch: switch in a critical section Date: Thu, 13 Jan 2022 10:08:40 +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: 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=1642068520; 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=zMmFdLcQ5/b6fe9hqQUTK0jd3dvAF5Ar2JrQ3QIhnU0=; b=fiyM/GpnNNRbn0ieN/CK0qSOkakYDUAFVKSlqmNYsg8b1aRMAOHjdKcigwJb67ppKTyw4P NAfY0QBe41pW44shi/Oozq69g9J1AMRQ3mfMgL3p8XbTnDWlcnk8/99JNP/SyCl9m3EjuH 2D5Clsv1SypR9WaRlTfnW2X+SmwCHbCMavJd5EptulJxSIGlC9KGvZ6//mhjWSNKfCVyE0 kruTCL9a2bjidspfpOPkmb7FLtcF4GjXflGNVf1qMG8FKuDk9L07m3+0NSFekWplfkotqA dqD1wpQfvoSay620zYQ9ScmlH88GFHzrucSgJjZp91yeSvhO7/kVr6BMasBecQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642068520; a=rsa-sha256; cv=none; b=YYstMUpaTtPZ0WjMNuDkncc/tfWuJzFZot02FSHdaX8bXky6aH+GKUGxoqbb5711FqXJaK aAbHLGW0ejWlAY9NOjUPNV5akBwOK/kQgPZP7WV+dIpqkAfz4luLhpyelzY9w2pj2cjoZ0 /agwVW2y1Xn4Da7k9VLQxSTuASTIO/qRHeBB20hdwhu1CkZdTJs009HDzCH/h6pXER8geW Strzg8SuROEAUZ9eGVDEC5bFI0ccnu/0FhRPmXMwq2CyIYBOp95UDG234MDDbJWNrJvg7O LKjLpgEfFNR0bnaLnGBeld2wA2PEWzBC37sqZEWaxT0VWL2pthINzczwVpAwaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261166 --- Comment #4 from Graham Perrin --- Comment on attachment 230979 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230979 core.txt.4 panic with drm-current-kmod Dump header from device: /dev/ada0p2 Architecture: amd64 Architecture Version: 2 Dump Length: 3640209408 Blocksize: 512 Compression: none Dumptime: 2022-01-13 09:39:25 +0000 Hostname: mowa219-gjp4-8570p-freebsd Magic: FreeBSD Kernel Dump Version String: FreeBSD 14.0-CURRENT #15 main-n252381-75d20a5e386: Wed Ja= n 12 04:39:40 GMT 2022 root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC Panic String: mi_switch: switch in a critical section Dump Parity: 383973225 Bounds: 4 Dump Status: good info.4 (END) ---- =E2=80=A6 Unread portion of the kernel message buffer: panic: mi_switch: switch in a critical section cpuid =3D 0 time =3D 1642066765 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0196917= 390 vpanic() at vpanic+0x17f/frame 0xfffffe01969173e0 panic() at panic+0x43/frame 0xfffffe0196917440 mi_switch() at mi_switch+0x19a/frame 0xfffffe0196917460 __mtx_lock_sleep() at __mtx_lock_sleep+0x1d9/frame 0xfffffe01969174f0 __mtx_lock_flags() at __mtx_lock_flags+0xe5/frame 0xfffffe0196917540 linux_wake_up() at linux_wake_up+0x38/frame 0xfffffe0196917590 radeon_fence_is_signaled() at radeon_fence_is_signaled+0x9b/frame 0xfffffe01969175e0 dma_resv_add_shared_fence() at dma_resv_add_shared_fence+0x9a/frame 0xfffffe0196917630 ttm_eu_fence_buffer_objects() at ttm_eu_fence_buffer_objects+0x79/frame 0xfffffe0196917670 radeon_cs_parser_fini() at radeon_cs_parser_fini+0x52/frame 0xfffffe0196917= 6a0 radeon_cs_ioctl() at radeon_cs_ioctl+0x788/frame 0xfffffe0196917b20 drm_ioctl_kernel() at drm_ioctl_kernel+0xc7/frame 0xfffffe0196917b70 drm_ioctl() at drm_ioctl+0x2bf/frame 0xfffffe0196917c60 linux_file_ioctl() at linux_file_ioctl+0x30a/frame 0xfffffe0196917cc0 kern_ioctl() at kern_ioctl+0x202/frame 0xfffffe0196917d30 sys_ioctl() at sys_ioctl+0x126/frame 0xfffffe0196917e00 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe0196917f30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0196917f30 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x38e29d14301a, rsp =3D 0x1d3eec8, rbp =3D 0x1d3eef0 --- KDB: enter: panic Uptime: 8h54m14s (ada0:ahcich0:0:0:0): spin-down Dumping 3471 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=3D0xfffff8020abcbc0= 0,=20 owner=3Downer@entry=3D0xfffffe018636d000, queue=3D,=20 queue@entry=3D0) at /usr/src/sys/kern/subr_turnstile.c:817 #7 0xffffffff80bdc659 in __mtx_lock_sleep (c=3Dc@entry=3D0xfffffe01224049b= 0,=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=3D0xfffffe01224049b0,=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=3D0xfffffe0122404998, state=3D= 3,=20 nr=3D0, locked=3Dfalse) at /usr/src/sys/compat/linuxkpi/common/src/linux_schedule.c:207 #10 0xffffffff839434fb in radeon_fence_is_signaled () from /boot/modules/radeonkms.ko #11 0xffffffff83a8254a in dma_resv_add_shared_fence () from /boot/modules/linuxkpi_gplv2.ko #12 0xffffffff83a90f49 in ttm_eu_fence_buffer_objects () from /boot/modules/ttm.ko #13 0xffffffff83935e82 in radeon_cs_parser_fini () from /boot/modules/radeonkms.ko #14 0xffffffff83935c08 in radeon_cs_ioctl () from /boot/modules/radeonkms.ko #15 0xffffffff83a282d7 in drm_ioctl_kernel () from /boot/modules/drm.ko #16 0xffffffff83a2868f in drm_ioctl () from /boot/modules/drm.ko #17 0xffffffff80e6b7da in linux_file_ioctl_sub (fp=3D0x1d3024, 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=3D0x1d3024,=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=3D0xfffffe0196b79= 3a0) at /usr/src/sys/sys/file.h:364 #20 kern_ioctl (td=3D, td@entry=3D0xfffffe0196b793a0,=20 fd=3D, com=3Dcom@entry=3D3223348326, data=3D,=20 data@entry=3D0xfffffe0196917d50 "\003") at /usr/src/sys/kern/sys_generic.c:803 #21 0xffffffff80c771d6 in sys_ioctl (td=3D0xfffffe0196b793a0,=20 td@entry=3D,=20 uap=3D0xfffffe0196b79790,=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=3D0xfffffe0196b793a0, traced=3D0) at /usr/src/sys/amd64/amd64/trap.c:1191 #24 #25 0x000038e29d14301a in ?? () Backtrace stopped: Cannot access memory at address 0x1d3eec8 (kgdb)=20 =E2=80=A6 --=20 You are receiving this mail because: You are the assignee for the bug.=