Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2022 10:08:40 +0000
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
Message-ID:  <bug-261166-7141-fP2ljbCUyS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-261166-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-261166-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261166

--- Comment #4 from Graham Perrin <grahamperrin@gmail.com> ---
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<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:920
#4  0xffffffff80c00d63 in panic (fmt=3D<unavailable>)
    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<optimized out>,=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<optimized out>, opts=3D<optimized out>, opts@entry=3D0,=20
    file=3D<optimized out>,=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<unavailable>,=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<optimized out>, cmd=3D<optimized out>, data=3D<optimized out>,=20
    td=3D<optimized out>)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:1024
#18 linux_file_ioctl (fp=3D0x1d3024,=20
    fp@entry=3D<error reading variable: value is not available>,=20
    cmd=3D<unavailable>,=20
    cmd@entry=3D<error reading variable: value is not available>,=20
    data=3D<unavailable>,=20
    data@entry=3D<error reading variable: value is not available>,=20
    cred=3D<optimized out>,=20
    cred@entry=3D<error reading variable: value is not available>, td=3D0x0=
,=20
    td@entry=3D<error reading variable: value is not available>)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:1648
#19 0xffffffff80c77482 in fo_ioctl (fp=3D<optimized out>, com=3D3223348326,=
=20
    data=3D<unavailable>, active_cred=3D<unavailable>, td=3D0xfffffe0196b79=
3a0)
    at /usr/src/sys/sys/file.h:364
#20 kern_ioctl (td=3D<optimized out>, td@entry=3D0xfffffe0196b793a0,=20
    fd=3D<optimized out>, com=3Dcom@entry=3D3223348326, data=3D<unavailable=
>,=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<error reading variable: value is not available>,=20
    uap=3D0xfffffe0196b79790,=20
    uap@entry=3D<error reading variable: value is not available>)
    at /usr/src/sys/kern/sys_generic.c:711
#22 0xffffffff810c93be in syscallenter (td=3D<optimized out>)
    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 <signal handler called>
#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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261166-7141-fP2ljbCUyS>