Bug 278212 - amdgpu / AMD Radeon XT 6900 - kernel panic (page fault) on FreeBSD 14.0-RELEASE-p6
Summary: amdgpu / AMD Radeon XT 6900 - kernel panic (page fault) on FreeBSD 14.0-RELEA...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2024-04-07 01:49 UTC by Jonathan Vasquez
Modified: 2024-11-13 01:49 UTC (History)
3 users (show)

See Also:


Attachments
core dump (97.86 KB, application/x-troff-man)
2024-04-07 01:49 UTC, Jonathan Vasquez
no flags Details
re-attached core dump (97.86 KB, text/plain)
2024-04-07 01:51 UTC, Jonathan Vasquez
no flags Details
set of /var/crash: core.txt.N and info.N files. (195.86 KB, application/x-xz)
2024-05-06 14:06 UTC, Tomasz "CeDeROM" CEDRO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Vasquez 2024-04-07 01:49:46 UTC
Created attachment 249782 [details]
core dump

Hello all,

I few weeks ago I started experiencing a kernel panic with my AMD Radeon XT 6900 XT (although I don't necessarily think it's a regression, but maybe something related to my workflow with my KVM). I'm on FreeBSD 14.0-RELEASE-p6, and was compiled the sources in order for me to eventually successfully capture a kernel dump (attached).

root@leslie:/usr/src # uname -a
FreeBSD leslie 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0 releng/14.0-n265417-d338712beb16: Tue Apr  2 19:26:31 EDT 2024     root@leslie:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

drm-kmod-20220907_1
gpu-firmware-amd-kmod-sienna-cichlid-20230625

I usually notice this happening when I start up my FreeBSD desktop while the KVM is currently active on my other laptop. I let FreeBSD (cold start since resuming from sleep doesn't work on this desktop) start up in the background and continue using my laptop in the meantime. Once ready, I hit the KVM button, and everything starts to switch over to the desktop, after a few seconds of waiting, instead of me seeing the FreeBSD login prompt, I sometimes see the initial system start up screen, or some other early stage FreeBSD process. Essentially the system had a kernel panic and restarted. Once I wait for the system to start up again, I can see that it mentions a page fault, and the system works normally. I do believe this may have happened to me while I was using the system normally, but it seems to have a higher probability of happening with that KVM switch workflow.

Please let me know if there is anything else I can provide. Thank you!
Comment 1 Jonathan Vasquez 2024-04-07 01:51:19 UTC
Created attachment 249783 [details]
re-attached core dump

re-attached core dump and set type to text/plain
Comment 2 Tomasz "CeDeROM" CEDRO 2024-05-06 14:05:01 UTC
The same happens to me after upgrading to 14.0-RELEASE-p6 AMD64 with amdgpu on RX580 rendering my workstation pretty useless.. kernel panic correlates with running Firefox with some multimedia stuff.

% uname -a
FreeBSD octagon 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

% glxinfo
(..)
AMD Radeon RX 580 Series (radeonsi, polaris10, LLVM 15.0.7, DRM 3.42, 14.0-RELEASE-p6) (0x67df)

% pkg info drm-515-kmod
drm-515-kmod-5.15.118_4
Name           : drm-515-kmod
Version        : 5.15.118_4
Installed on   : Mon May  6 14:46:22 2024 CEST
Origin         : graphics/drm-515-kmod
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : kld graphics
Licenses       : MIT and GPLv2 and BSD2CLAUSE
Maintainer     : x11@FreeBSD.org
WWW            : https://github.com/freebsd/drm-kmod/
Comment        : DRM drivers modules
Annotations    :
        FreeBSD_version: 1400097
        build_timestamp: 2024-04-03T15:48:26+0000
        built_by       : poudriere-git-3.4.1-1-g1e9f97d6
        port_checkout_unclean: no
        port_git_hash  : 3c7a5bf57d
        ports_top_checkout_unclean: no
        ports_top_git_hash: f5d16d08a6
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 14.3MiB
Description    :
amdgpu, i915, and radeon DRM drivers modules.
Currently corresponding to Linux 5.15 DRM.
This version is for FreeBSD 14.0 and above.
Comment 3 Tomasz "CeDeROM" CEDRO 2024-05-06 14:06:32 UTC
Created attachment 250491 [details]
set of /var/crash: core.txt.N and info.N files.
Comment 4 Tomasz "CeDeROM" CEDRO 2024-05-06 19:53:57 UTC
I have tried to create a Fallback xorg.conf just to have a usable machine to work on when amdgpu bugs pops out. I use UEFI boot so SCFB can be used.

Some problems that I have encountered so far looking for a solution with manual xorg.conf:

1. SCFB does not support multiple display outputs. I have two monitors setup required for work. Secondary monitor is rotated.

2. Having two monitors active requires kldload amdgpu. Both are cloned by default. I could use scfb on top of that but also Screen1 is removed as VGA arbiter does not support multi-card setup.

3. Because I failed at SCFB maybe AMDGPU can be still used with reduced functionality (i.e. acceleration disabled). But then it turns out when Accel is off the secondary screen rotation is impossible :D :D So far I have set DRI to 2 and will see what happens. On next crash I will disable/change other features lised in man amdgpu.

If anyone knows how to create a fallback configuration based only on SCFB that would work with multiple screens and one of them rotated that would be really nice so folks can still work on Xorg even no acceleration :-)

By the way I have tried Wayland / Wayfire just to make sure the same problem occurs. I managed to start Firefox and crash did not happen. But I did not work a lot on that setup its kinda clunky :-P
Comment 5 Tomasz "CeDeROM" CEDRO 2024-05-07 22:28:45 UTC
Okay this fallback below seems to work and kind of prevented kernel panics (second day testing so far). This may be optimized. Maybe only setting DRI to 2 is enough. I entered all man amdgpu options so these can be tuned. Two monitors setup where one is rotated with Enlightentment WM. Its a bit slower but acceleration works. For some reason things slows down a lot sometimes but there is no crash :-)

/usr/local/etc/X11/xorg.conf.d/30-amgpufallback.conf:

Section "Device"
        Identifier      "RX580"
        Driver          "amdgpu"
#       Option  "Accel" "Off"
#       Option "ZaphodHeads" "HDMI-A-0,HDMI-A-1"
        Option  "DRI"   "2"
        Option  "EnablePageFlip" "Off"
        Option  "TearFree" "on"
        Option  "VariableRefresh" "Off"
        Option  "AsyncFlipSecondaries" "On"
#       Option  "AccelMethod" "none"
EndSection

Section "Monitor"
        Identifier      "LG"
        Option          "Monitor-HDMI-A-0"
        Option          "Primary" "True"
        Option          "LeftOf" "HDMI-A-1"
EndSection

Section "Monitor"
        Identifier      "DELL"
        Option          "Monitor-HDMI-A-1"
        Option          "RightOf" "HDMI-A-0"
        Option          "Rotate" "270"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "RX580"
        Monitor         "LG"
        SubSection      "Display"
                Depth   24
                Modes   "3840x2160"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "Screen1"
        Device          "RX580"
        Monitor         "DELL"
        SubSection      "Display"
                Depth   24
                Modes   "2560x1440"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier "MainLayout"
        Screen "Screen0" 0 0
        Screen "Screen1" rightOf "Screen0"
        Option  "SingleCard" "True"
EndSection
Comment 6 Tomasz "CeDeROM" CEDRO 2024-05-09 16:57:40 UTC
Two more kernel panics from today, with nondefault xorg.conf (does not seem to help much). I even tried to slow down CPU, NB, RAM, just to make sure this is not a hardware problem.. but nothing like this happened on 13.

One crash happened during live stream broadcast dump. I am considering rolling back to 13. Luckily I did not upgrade ZFS pools. This 5.15 amdgpu driver seems far from production ready :-(

Sad thing is broken GPU support due self-incompatible kernel api was the main reason I left Linux long ago. Now this mess came to BSD world :-(


=====

Thu May  9 08:50:35 CEST 2024

FreeBSD octagon 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

panic: page fault

GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 12
fault virtual address	= 0x40012
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff854341e0
stack pointer	        = 0x28:0xfffffe014f5d5900
frame pointer	        = 0x28:0xfffffe014f5d5910
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= 
interrupt enabled, 
Fatal trap 12: page fault while in kernel mode
resume, cpuid = 6; apic id = 16
fault virtual address	= 0x10
fault code		= supervisor write data, page not present
instruction pointer	= 0x20:0xffffffff8520dfb4
stack pointer	        = 0x28:0xfffffe014137ee30
frame pointer	        = 0x28:0xfffffe014137eec0
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1

processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 0 (gfx)
rdi: fffff801dea72d00 rsi: fffffe0147f732c0 rdx: fffffe0147f73298

rcx: 00000d0d474da840  r8: fffffe01428bfc60  r9: fffffe014137f000
Fatal trap 12: page fault while in kernel mode
rax: 0000000000000000 rbx: fffff807d5ee4540 rbp: fffffe014137eec0
r10: 0000000000001388 r11: 0000000080d1a3e0 r12: fffff801f80c9eb4
r13: fffff805410fb800 r14: fffff8013a9ff800 r15: fffffe0147f73178
trap number		= 12
IOPL = 0
panic: page fault
cpuid = 6
time = 1715221652
KDB: stack backtrace:
#0 0xffffffff80b9009d at kdb_backtrace+0x5d
#1 0xffffffff80b431a2 at vpanic+0x132
#2 0xffffffff80b43063 at panic+0x43
#3 0xffffffff8100c85c at trap_fatal+0x40c
#4 0xffffffff8100c8af at trap_pfault+0x4f
#5 0xffffffff80fe3ac8 at calltrap+0x8
#6 0xffffffff80daf576 at linux_kthread_fn+0x36
#7 0xffffffff80afdb7f at fork_exit+0x7f
#8 0xffffffff80fe4b2e at fork_trampoline+0xe
Uptime: 3h59m10s
Dumping 6987 out of 32616 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /boot/kernel/hgame.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hgame.ko.debug...
Reading symbols from /boot/kernel/hidmap.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidmap.ko.debug...
Reading symbols from /boot/kernel/hidbus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidbus.ko.debug...
Reading symbols from /boot/kernel/amdsmn.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsmn.ko.debug...
Reading symbols from /boot/kernel/cryptodev.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cryptodev.ko.debug...
Reading symbols from /boot/kernel/usbhid.ko...
Reading symbols from /usr/lib/debug//boot/kernel/usbhid.ko.debug...
Reading symbols from /boot/kernel/zfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/zfs.ko.debug...
Reading symbols from /boot/modules/sysctlinfo.ko...
(No debugging symbols found in /boot/modules/sysctlinfo.ko)
Reading symbols from /boot/kernel/amdtemp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdtemp.ko.debug...
Reading symbols from /boot/kernel/hidraw.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidraw.ko.debug...
Reading symbols from /boot/kernel/splash_bmp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/splash_bmp.ko.debug...
Reading symbols from /boot/kernel/fusefs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/fusefs.ko.debug...
Reading symbols from /boot/kernel/mac_priority.ko...
Reading symbols from /usr/lib/debug//boot/kernel/mac_priority.ko.debug...
Reading symbols from /boot/kernel/cuse.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cuse.ko.debug...
Reading symbols from /boot/kernel/cpuctl.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cpuctl.ko.debug...
Reading symbols from /boot/kernel/amdsmb.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsmb.ko.debug...
Reading symbols from /boot/kernel/smbus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/smbus.ko.debug...
Reading symbols from /boot/kernel/amdsbwd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsbwd.ko.debug...
Reading symbols from /boot/kernel/amdpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdpm.ko.debug...
Reading symbols from /boot/kernel/amdgpio.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdgpio.ko.debug...
Reading symbols from /boot/kernel/gpiobus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/gpiobus.ko.debug...
Reading symbols from /boot/modules/sysctlbyname_improved.ko...
(No debugging symbols found in /boot/modules/sysctlbyname_improved.ko)
Reading symbols from /boot/kernel/ntb_hw_amd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ntb_hw_amd.ko.debug...
Reading symbols from /boot/kernel/ntb.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ntb.ko.debug...
Reading symbols from /boot/kernel/linux.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux.ko.debug...
Reading symbols from /boot/kernel/linux_common.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux_common.ko.debug...
Reading symbols from /boot/kernel/linux64.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux64.ko.debug...
Reading symbols from /boot/kernel/speaker.ko...
Reading symbols from /usr/lib/debug//boot/kernel/speaker.ko.debug...
Reading symbols from /boot/modules/drm.ko...
(No debugging symbols found in /boot/modules/drm.ko)
Reading symbols from /boot/kernel/iic.ko...
Reading symbols from /usr/lib/debug//boot/kernel/iic.ko.debug...
Reading symbols from /boot/kernel/linuxkpi_hdmi.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linuxkpi_hdmi.ko.debug...
Reading symbols from /boot/modules/dmabuf.ko...
(No debugging symbols found in /boot/modules/dmabuf.ko)
Reading symbols from /boot/kernel/lindebugfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/lindebugfs.ko.debug...
Reading symbols from /boot/modules/amdgpu.ko...
(No debugging symbols found in /boot/modules/amdgpu.ko)
Reading symbols from /boot/modules/ttm.ko...
(No debugging symbols found in /boot/modules/ttm.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_pfp_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_pfp_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_me_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_me_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_ce_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_ce_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_rlc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_rlc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mec_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mec_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mec2_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mec2_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_sdma_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_sdma_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_sdma1_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_sdma1_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_uvd_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_uvd_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_vce_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_vce_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_k_smc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_k_smc_bin.ko)
Reading symbols from /boot/kernel/acpi_wmi.ko...
Reading symbols from /usr/lib/debug//boot/kernel/acpi_wmi.ko.debug...
Reading symbols from /boot/kernel/hcons.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hcons.ko.debug...
Reading symbols from /boot/kernel/hkbd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hkbd.ko.debug...
Reading symbols from /boot/kernel/hms.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hms.ko.debug...
Reading symbols from /boot/kernel/hsctrl.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hsctrl.ko.debug...
Reading symbols from /boot/kernel/intpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/intpm.ko.debug...
Reading symbols from /boot/kernel/pty.ko...
Reading symbols from /usr/lib/debug//boot/kernel/pty.ko.debug...
Reading symbols from /boot/kernel/fdescfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug...
Reading symbols from /boot/kernel/linprocfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linprocfs.ko.debug...
Reading symbols from /boot/kernel/linsysfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linsysfs.ko.debug...
Reading symbols from /boot/modules/vboxguest.ko...
(No debugging symbols found in /boot/modules/vboxguest.ko)
Reading symbols from /boot/modules/vboxdrv.ko...
(No debugging symbols found in /boot/modules/vboxdrv.ko)
Reading symbols from /boot/modules/vboxnetflt.ko...
(No debugging symbols found in /boot/modules/vboxnetflt.ko)
Reading symbols from /boot/kernel/netgraph.ko...
Reading symbols from /usr/lib/debug//boot/kernel/netgraph.ko.debug...
Reading symbols from /boot/kernel/ng_ether.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ng_ether.ko.debug...
Reading symbols from /boot/modules/vboxnetadp.ko...
(No debugging symbols found in /boot/modules/vboxnetadp.ko)
Reading symbols from /boot/kernel/snd_uaudio.ko...
Reading symbols from /usr/lib/debug//boot/kernel/snd_uaudio.ko.debug...
Reading symbols from /boot/kernel/ipfw.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ipfw.ko.debug...
Reading symbols from /boot/kernel/nullfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/nullfs.ko.debug...
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
warning: Source file is more recent than executable.
57		__asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:405
#2  0xffffffff80b42d37 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:526
#3  0xffffffff80b4320f in vpanic (fmt=0xffffffff81136b3b "%s", 
    ap=ap@entry=0xfffffe014137ec80) at /usr/src/sys/kern/kern_shutdown.c:970
#4  0xffffffff80b43063 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:894
#5  0xffffffff8100c85c in trap_fatal (frame=0xfffffe014137ed70, eva=16)
    at /usr/src/sys/amd64/amd64/trap.c:952
#6  0xffffffff8100c8af in trap_pfault (frame=0xfffffe014137ed70, 
    usermode=false, signo=<optimized out>, ucode=<optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:760
#7  <signal handler called>
#8  0xffffffff8520dfb4 in drm_sched_main () from /boot/modules/drm.ko
#9  0xffffffff80daf576 in linux_kthread_fn (arg=<optimized out>)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_kthread.c:153
#10 0xffffffff80afdb7f in fork_exit (callout=0xfffffe0147f73178, 
    arg=0xfffff801f80c9eb4, frame=0xfffffe014137ef40)
    at /usr/src/sys/kern/kern_fork.c:1160
#11 <signal handler called>
(kgdb) 


=====


Thu May  9 10:29:49 CEST 2024

FreeBSD octagon 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

panic: page fault

GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 12
fault virtual address	= 0xfffff803d54a1510
fault code		= supervisor read instruction, protection violation
instruction pointer	= 0x20:0xfffff803d54a1510
stack pointer	        = 0x28:0xfffffe00e0480e18
frame pointer	        = 0x28:0xfffffe00e0480e40
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 0 (linuxkpi_irq_wq)
rdi: fffff803d54a1510 rsi: fffff80426591a00 rdx: 000000000000002f
rcx: fffffe00b2f31cc0  r8: 000000000000003e  r9: fffffe0035e04298
rax: fffff803d54a1510 rbx: fffffe00e0480e28 rbp: fffffe00e0480e40
r10: fffff80426591a00 r11: fffff80426591c00 r12: fffff80001b37658
r13: 0000000000000000 r14: ffffffff81a10d48 r15: 0000000000000002
trap number		= 12
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 12
fault virtual address	= 0x8
fault code		= supervisor write data, page not present
instruction pointer	= 0x20:0xffffffff851b49ef
stack pointer	        = 0x28:0xfffffe00e0480900
frame pointer	        = 0x28:0xfffffe00e0480930
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= resume, IOPL = 0
current process		= 0 (linuxkpi_irq_wq)
rdi: 0000000000000000 rsi: fffff802e09e8b80 rdx: 0000000000000000
rcx: 0000000000000018  r8: fffff803dff41a40  r9: fffff803dff41a40
rax: 0000000000000000 rbx: fffff803d54a1500 rbp: fffffe00e0480930
r10: 0000000000000000 r11: fffff80001b4c000 r12: 0000000000000000
r13: fffffe01483ed3f0 r14: fffff8003f473c00 r15: fffff803d54a1500
trap number		= 12
panic: page fault
cpuid = 2
time = 1715243231
KDB: stack backtrace:
#0 0xffffffff80b9009d at kdb_backtrace+0x5d
#1 0xffffffff80b431a2 at vpanic+0x132
#2 0xffffffff80b43063 at panic+0x43
#3 0xffffffff8100c85c at trap_fatal+0x40c
#4 0xffffffff8100c8af at trap_pfault+0x4f
#5 0xffffffff80fe3ac8 at calltrap+0x8
#6 0xffffffff851c51e7 at drm_client_modeset_commit_atomic+0x77
#7 0xffffffff851c53b4 at drm_client_modeset_commit_locked+0x74
#8 0xffffffff851c5541 at drm_client_modeset_commit+0x21
#9 0xffffffff85208303 at drm_fb_helper_restore_fbdev_mode_unlocked+0x83
#10 0xffffffff851f5661 at vt_kms_postswitch+0x181
#11 0xffffffff8098a01f at vt_window_switch+0x11f
#12 0xffffffff8098b45f at vtterm_cngrab+0x4f
#13 0xffffffff80ad7556 at cngrab+0x26
#14 0xffffffff80b43141 at vpanic+0xd1
#15 0xffffffff80b43063 at panic+0x43
#16 0xffffffff8100c85c at trap_fatal+0x40c
#17 0xffffffff8100c8af at trap_pfault+0x4f
Dumping 1694 out of 32616 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /boot/kernel/linux.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux.ko.debug...
Reading symbols from /boot/kernel/linux_common.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux_common.ko.debug...
Reading symbols from /boot/kernel/amdsbwd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsbwd.ko.debug...
Reading symbols from /boot/kernel/amdtemp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdtemp.ko.debug...
Reading symbols from /boot/kernel/amdsmn.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsmn.ko.debug...
Reading symbols from /boot/modules/sysctlbyname_improved.ko...
(No debugging symbols found in /boot/modules/sysctlbyname_improved.ko)
Reading symbols from /boot/kernel/usbhid.ko...
Reading symbols from /usr/lib/debug//boot/kernel/usbhid.ko.debug...
Reading symbols from /boot/kernel/hidbus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidbus.ko.debug...
Reading symbols from /boot/kernel/linux64.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux64.ko.debug...
Reading symbols from /boot/kernel/cuse.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cuse.ko.debug...
Reading symbols from /boot/kernel/ntb_hw_amd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ntb_hw_amd.ko.debug...
Reading symbols from /boot/kernel/ntb.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ntb.ko.debug...
Reading symbols from /boot/kernel/hgame.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hgame.ko.debug...
Reading symbols from /boot/kernel/hidmap.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidmap.ko.debug...
Reading symbols from /boot/kernel/speaker.ko...
Reading symbols from /usr/lib/debug//boot/kernel/speaker.ko.debug...
Reading symbols from /boot/kernel/cpuctl.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cpuctl.ko.debug...
Reading symbols from /boot/kernel/cryptodev.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cryptodev.ko.debug...
Reading symbols from /boot/kernel/mac_priority.ko...
Reading symbols from /usr/lib/debug//boot/kernel/mac_priority.ko.debug...
Reading symbols from /boot/kernel/fusefs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/fusefs.ko.debug...
Reading symbols from /boot/kernel/hidraw.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidraw.ko.debug...
Reading symbols from /boot/modules/sysctlinfo.ko...
(No debugging symbols found in /boot/modules/sysctlinfo.ko)
Reading symbols from /boot/kernel/amdgpio.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdgpio.ko.debug...
Reading symbols from /boot/kernel/gpiobus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/gpiobus.ko.debug...
Reading symbols from /boot/kernel/zfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/zfs.ko.debug...
Reading symbols from /boot/kernel/splash_bmp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/splash_bmp.ko.debug...
Reading symbols from /boot/kernel/amdsmb.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsmb.ko.debug...
Reading symbols from /boot/kernel/smbus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/smbus.ko.debug...
Reading symbols from /boot/kernel/amdpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdpm.ko.debug...
Reading symbols from /boot/modules/drm.ko...
(No debugging symbols found in /boot/modules/drm.ko)
Reading symbols from /boot/kernel/iic.ko...
Reading symbols from /usr/lib/debug//boot/kernel/iic.ko.debug...
Reading symbols from /boot/kernel/linuxkpi_hdmi.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linuxkpi_hdmi.ko.debug...
Reading symbols from /boot/modules/dmabuf.ko...
(No debugging symbols found in /boot/modules/dmabuf.ko)
Reading symbols from /boot/kernel/lindebugfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/lindebugfs.ko.debug...
Reading symbols from /boot/modules/amdgpu.ko...
(No debugging symbols found in /boot/modules/amdgpu.ko)
Reading symbols from /boot/modules/ttm.ko...
(No debugging symbols found in /boot/modules/ttm.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_pfp_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_pfp_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_me_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_me_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_ce_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_ce_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_rlc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_rlc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mec_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mec_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mec2_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mec2_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_sdma_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_sdma_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_sdma1_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_sdma1_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_uvd_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_uvd_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_vce_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_vce_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_k_smc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_k_smc_bin.ko)
Reading symbols from /boot/kernel/acpi_wmi.ko...
Reading symbols from /usr/lib/debug//boot/kernel/acpi_wmi.ko.debug...
Reading symbols from /boot/kernel/hcons.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hcons.ko.debug...
Reading symbols from /boot/kernel/hkbd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hkbd.ko.debug...
Reading symbols from /boot/kernel/hms.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hms.ko.debug...
Reading symbols from /boot/kernel/hsctrl.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hsctrl.ko.debug...
Reading symbols from /boot/kernel/intpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/intpm.ko.debug...
Reading symbols from /boot/kernel/pty.ko...
Reading symbols from /usr/lib/debug//boot/kernel/pty.ko.debug...
Reading symbols from /boot/kernel/fdescfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug...
Reading symbols from /boot/kernel/linprocfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linprocfs.ko.debug...
Reading symbols from /boot/kernel/linsysfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linsysfs.ko.debug...
Reading symbols from /boot/modules/vboxguest.ko...
(No debugging symbols found in /boot/modules/vboxguest.ko)
Reading symbols from /boot/modules/vboxdrv.ko...
(No debugging symbols found in /boot/modules/vboxdrv.ko)
Reading symbols from /boot/modules/vboxnetflt.ko...
(No debugging symbols found in /boot/modules/vboxnetflt.ko)
Reading symbols from /boot/kernel/netgraph.ko...
Reading symbols from /usr/lib/debug//boot/kernel/netgraph.ko.debug...
Reading symbols from /boot/kernel/ng_ether.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ng_ether.ko.debug...
Reading symbols from /boot/modules/vboxnetadp.ko...
(No debugging symbols found in /boot/modules/vboxnetadp.ko)
Reading symbols from /boot/kernel/snd_uaudio.ko...
Reading symbols from /usr/lib/debug//boot/kernel/snd_uaudio.ko.debug...
Reading symbols from /boot/kernel/ipfw.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ipfw.ko.debug...
Reading symbols from /boot/kernel/nullfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/nullfs.ko.debug...
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
warning: Source file is more recent than executable.
57		__asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:405
#2  0xffffffff851f5523 in vt_kms_postswitch () from /boot/modules/drm.ko
#3  0xffffffff8098a1d5 in vt_window_switch (
    vw=0xffffffff816a7cd8 <vt_conswindow>) at /usr/src/sys/dev/vt/vt_core.c:595
#4  0xffffffff80b429df in kern_reboot (howto=4)
    at /usr/src/sys/kern/kern_shutdown.c:501
#5  0xffffffff80b4320f in vpanic (fmt=0xffffffff81136b3b "%s", 
    ap=ap@entry=0xfffffe00e0480750) at /usr/src/sys/kern/kern_shutdown.c:970
#6  0xffffffff80b43063 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:894
#7  0xffffffff8100c85c in trap_fatal (frame=0xfffffe00e0480840, eva=8)
    at /usr/src/sys/amd64/amd64/trap.c:952
#8  0xffffffff8100c8af in trap_pfault (frame=0xfffffe00e0480840, 
    usermode=false, signo=<optimized out>, ucode=<optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:760
#9  <signal handler called>
#10 0xffffffff851b49ef in drm_atomic_get_plane_state ()
   from /boot/modules/drm.ko
#11 0xffffffff851c51e7 in drm_client_modeset_commit_atomic ()
   from /boot/modules/drm.ko
#12 0xffffffff851c53b4 in drm_client_modeset_commit_locked ()
   from /boot/modules/drm.ko
#13 0xffffffff851c5541 in drm_client_modeset_commit ()
   from /boot/modules/drm.ko
#14 0xffffffff85208303 in drm_fb_helper_restore_fbdev_mode_unlocked ()
   from /boot/modules/drm.ko
#15 0xffffffff851f5661 in vt_kms_postswitch () from /boot/modules/drm.ko
#16 0xffffffff8098a01f in vt_window_switch (vw=0xfffff803d54a1500, 
    vw@entry=0xffffffff816a7cd8 <vt_conswindow>)
    at /usr/src/sys/dev/vt/vt_core.c:612
#17 0xffffffff8098b45f in vtterm_cngrab (tm=<optimized out>)
    at /usr/src/sys/dev/vt/vt_core.c:1863
#18 0xffffffff80ad7556 in cngrab () at /usr/src/sys/kern/kern_cons.c:385
#19 0xffffffff80b43141 in vpanic (fmt=0xffffffff81136b3b "%s", 
    ap=ap@entry=0xfffffe00e0480c60) at /usr/src/sys/kern/kern_shutdown.c:942
#20 0xffffffff80b43063 in panic (fmt=0x0)
    at /usr/src/sys/kern/kern_shutdown.c:894
#21 0xffffffff8100c85c in trap_fatal (frame=0xfffffe00e0480d50, 
    eva=18446735294079833360) at /usr/src/sys/amd64/amd64/trap.c:952
#22 0xffffffff8100c8af in trap_pfault (frame=0xfffffe00e0480d50, 
    usermode=false, signo=<optimized out>, ucode=<optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:760
#23 <signal handler called>
#24 0xfffff803d54a1510 in ?? ()
#25 0xffffffff80db83b2 in linux_rcu_cleaner_func (context=<optimized out>, 
    pending=<optimized out>)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_rcu.c:172
#26 0xffffffff80ba5992 in taskqueue_run_locked (
    queue=queue@entry=0xfffff80001b37600)
    at /usr/src/sys/kern/subr_taskqueue.c:512
#27 0xffffffff80ba6c22 in taskqueue_thread_loop (
    arg=arg@entry=0xffffffff81a10e30 <linux_irq_work_tq>)
    at /usr/src/sys/kern/subr_taskqueue.c:824
#28 0xffffffff80afdb7f in fork_exit (
    callout=0xffffffff80ba6b60 <taskqueue_thread_loop>, 
    arg=0xffffffff81a10e30 <linux_irq_work_tq>, frame=0xfffffe00e0480f40)
    at /usr/src/sys/kern/kern_fork.c:1160
#29 <signal handler called>
(kgdb)
Comment 7 Tomasz "CeDeROM" CEDRO 2024-05-10 13:06:18 UTC
Another one right now. Default unmodified amdgpu settings. This may be caused by linux compatibility layer not necessarily amdgpu?

Fri May 10 14:52:09 CEST 2024

FreeBSD octagon 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

panic: page fault

GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 10
fault virtual address	= 0xfffff8020e207610
fault code		= supervisor read instruction, protection violation
instruction pointer	= 0x20:0xfffff8020e207610
stack pointer	        = 0x28:0xfffffe00e0480e18
frame pointer	        = 0x28:0xfffffe00e0480e40
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 0 (linuxkpi_irq_wq)
rdi: fffff8020e207610 rsi: fffff801afe84400 rdx: 0000000000000039
rcx: fffffe00b2f31cc0  r8: 000000000000003e  r9: fffffe0035e04198
rax: fffff8020e207610 rbx: fffffe00e0480e28 rbp: fffffe00e0480e40
r10: fffff801afe84400 r11: fffff801afe84600 r12: fffff80001b39658
r13: 0000000000000000 r14: ffffffff81a10d48 r15: 0000000000000002
trap number		= 12
panic: page fault
cpuid = 0
time = 1715345415
KDB: stack backtrace:
#0 0xffffffff80b9009d at kdb_backtrace+0x5d
#1 0xffffffff80b431a2 at vpanic+0x132
#2 0xffffffff80b43063 at panic+0x43
#3 0xffffffff8100c85c at trap_fatal+0x40c
#4 0xffffffff8100c8af at trap_pfault+0x4f
#5 0xffffffff80fe3ac8 at calltrap+0x8
#6 0xffffffff80ba5992 at taskqueue_run_locked+0x182
#7 0xffffffff80ba6c22 at taskqueue_thread_loop+0xc2
#8 0xffffffff80afdb7f at fork_exit+0x7f
#9 0xffffffff80fe4b2e at fork_trampoline+0xe
Uptime: 1h49m51s
Dumping 1876 out of 32616 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /boot/kernel/amdsmn.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsmn.ko.debug...
Reading symbols from /boot/modules/sysctlinfo.ko...
(No debugging symbols found in /boot/modules/sysctlinfo.ko)
Reading symbols from /boot/kernel/amdpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdpm.ko.debug...
Reading symbols from /boot/kernel/smbus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/smbus.ko.debug...
Reading symbols from /boot/kernel/speaker.ko...
Reading symbols from /usr/lib/debug//boot/kernel/speaker.ko.debug...
Reading symbols from /boot/kernel/ntb_hw_amd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ntb_hw_amd.ko.debug...
Reading symbols from /boot/kernel/ntb.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ntb.ko.debug...
Reading symbols from /boot/kernel/hgame.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hgame.ko.debug...
Reading symbols from /boot/kernel/hidmap.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidmap.ko.debug...
Reading symbols from /boot/kernel/hidbus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidbus.ko.debug...
Reading symbols from /boot/kernel/zfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/zfs.ko.debug...
Reading symbols from /boot/kernel/cryptodev.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cryptodev.ko.debug...
Reading symbols from /boot/kernel/linux.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux.ko.debug...
Reading symbols from /boot/kernel/linux_common.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux_common.ko.debug...
Reading symbols from /boot/kernel/amdsmb.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsmb.ko.debug...
Reading symbols from /boot/modules/sysctlbyname_improved.ko...
(No debugging symbols found in /boot/modules/sysctlbyname_improved.ko)
Reading symbols from /boot/kernel/amdtemp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdtemp.ko.debug...
Reading symbols from /boot/kernel/hidraw.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidraw.ko.debug...
Reading symbols from /boot/kernel/usbhid.ko...
Reading symbols from /usr/lib/debug//boot/kernel/usbhid.ko.debug...
Reading symbols from /boot/kernel/splash_bmp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/splash_bmp.ko.debug...
Reading symbols from /boot/kernel/fusefs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/fusefs.ko.debug...
Reading symbols from /boot/kernel/mac_priority.ko...
Reading symbols from /usr/lib/debug//boot/kernel/mac_priority.ko.debug...
Reading symbols from /boot/kernel/cpuctl.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cpuctl.ko.debug...
Reading symbols from /boot/kernel/linux64.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linux64.ko.debug...
Reading symbols from /boot/kernel/cuse.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cuse.ko.debug...
Reading symbols from /boot/kernel/amdsbwd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdsbwd.ko.debug...
Reading symbols from /boot/kernel/amdgpio.ko...
Reading symbols from /usr/lib/debug//boot/kernel/amdgpio.ko.debug...
Reading symbols from /boot/kernel/gpiobus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/gpiobus.ko.debug...
Reading symbols from /boot/modules/drm.ko...
(No debugging symbols found in /boot/modules/drm.ko)
Reading symbols from /boot/kernel/iic.ko...
Reading symbols from /usr/lib/debug//boot/kernel/iic.ko.debug...
Reading symbols from /boot/kernel/linuxkpi_hdmi.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linuxkpi_hdmi.ko.debug...
Reading symbols from /boot/modules/dmabuf.ko...
(No debugging symbols found in /boot/modules/dmabuf.ko)
Reading symbols from /boot/kernel/lindebugfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/lindebugfs.ko.debug...
Reading symbols from /boot/modules/amdgpu.ko...
(No debugging symbols found in /boot/modules/amdgpu.ko)
Reading symbols from /boot/modules/ttm.ko...
(No debugging symbols found in /boot/modules/ttm.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_pfp_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_pfp_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_me_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_me_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_ce_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_ce_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_rlc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_rlc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mec_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mec_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_mec2_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_mec2_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_sdma_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_sdma_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_sdma1_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_sdma1_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_uvd_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_uvd_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_vce_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_vce_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris10_k_smc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris10_k_smc_bin.ko)
Reading symbols from /boot/kernel/acpi_wmi.ko...
Reading symbols from /usr/lib/debug//boot/kernel/acpi_wmi.ko.debug...
Reading symbols from /boot/kernel/hcons.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hcons.ko.debug...
Reading symbols from /boot/kernel/hkbd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hkbd.ko.debug...
Reading symbols from /boot/kernel/hms.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hms.ko.debug...
Reading symbols from /boot/kernel/hsctrl.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hsctrl.ko.debug...
Reading symbols from /boot/kernel/intpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/intpm.ko.debug...
Reading symbols from /boot/kernel/pty.ko...
Reading symbols from /usr/lib/debug//boot/kernel/pty.ko.debug...
Reading symbols from /boot/kernel/fdescfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug...
Reading symbols from /boot/kernel/linprocfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linprocfs.ko.debug...
Reading symbols from /boot/kernel/linsysfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/linsysfs.ko.debug...
Reading symbols from /boot/modules/vboxguest.ko...
(No debugging symbols found in /boot/modules/vboxguest.ko)
Reading symbols from /boot/modules/vboxdrv.ko...
(No debugging symbols found in /boot/modules/vboxdrv.ko)
Reading symbols from /boot/modules/vboxnetflt.ko...
(No debugging symbols found in /boot/modules/vboxnetflt.ko)
Reading symbols from /boot/kernel/netgraph.ko...
Reading symbols from /usr/lib/debug//boot/kernel/netgraph.ko.debug...
Reading symbols from /boot/kernel/ng_ether.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ng_ether.ko.debug...
Reading symbols from /boot/modules/vboxnetadp.ko...
(No debugging symbols found in /boot/modules/vboxnetadp.ko)
Reading symbols from /boot/kernel/snd_uaudio.ko...
Reading symbols from /usr/lib/debug//boot/kernel/snd_uaudio.ko.debug...
Reading symbols from /boot/kernel/ipfw.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ipfw.ko.debug...
Reading symbols from /boot/kernel/nullfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/nullfs.ko.debug...
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
warning: Source file is more recent than executable.
57		__asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:405
#2  0xffffffff80b42d37 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:526
#3  0xffffffff80b4320f in vpanic (fmt=0xffffffff81136b3b "%s", 
    ap=ap@entry=0xfffffe00e0480c60) at /usr/src/sys/kern/kern_shutdown.c:970
#4  0xffffffff80b43063 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:894
#5  0xffffffff8100c85c in trap_fatal (frame=0xfffffe00e0480d50, 
    eva=18446735286443472400) at /usr/src/sys/amd64/amd64/trap.c:952
#6  0xffffffff8100c8af in trap_pfault (frame=0xfffffe00e0480d50, 
    usermode=false, signo=<optimized out>, ucode=<optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:760
#7  <signal handler called>
#8  0xfffff8020e207610 in ?? ()
#9  0xffffffff80db83b2 in linux_rcu_cleaner_func (context=<optimized out>, 
    pending=<optimized out>)
    at /usr/src/sys/compat/linuxkpi/common/src/linux_rcu.c:172
#10 0xffffffff80ba5992 in taskqueue_run_locked (
    queue=queue@entry=0xfffff80001b39600)
    at /usr/src/sys/kern/subr_taskqueue.c:512
#11 0xffffffff80ba6c22 in taskqueue_thread_loop (
    arg=arg@entry=0xffffffff81a10e30 <linux_irq_work_tq>)
    at /usr/src/sys/kern/subr_taskqueue.c:824
#12 0xffffffff80afdb7f in fork_exit (
    callout=0xffffffff80ba6b60 <taskqueue_thread_loop>, 
    arg=0xffffffff81a10e30 <linux_irq_work_tq>, frame=0xfffffe00e0480f40)
    at /usr/src/sys/kern/kern_fork.c:1160
#13 <signal handler called>
(kgdb)
Comment 8 Olivier Certner freebsd_committer freebsd_triage 2024-09-02 18:57:49 UTC
(In reply to Tomasz "CeDeROM" CEDRO from comment #3)

Please don't mix up problems that clearly look technically different, even if your concern is just getting your card working.  The core dumps you've posted and your scenario seem a priori very different than Jonathan Vasquez's.  In your dumps, the initial crash occurs from within either linux_rcu_cleaner_func(), drm_atomic_get_plane_state()/dc_plane_state_retain() or drm_sched_main().  Also, Jonathan mentions a scenario involving a KMS (although he hints at other crashes) where the output of the machine crashing is temporarily disabled, which is nowhere near your own use.  Finally, your GPUs are different.  IMHO, this confuses things more than it helps, and you should have instead opened a new bug, provided the problem still exists with recent FreeBSD and drm-kmod versions.

FWIW, I've never had kernel panics with a RX 580 with various 14-STABLE versions.  I only have the problem I reported there (https://github.com/freebsd/drm-kmod/issues/302), which had previously been reported in bug #277476 (I noticed that today only).

I'll let you read these bugs, but in a nutshell my advice for you would be first to 14.1 with drm-510-kmod and see how it goes.  Then try the other drm-kmod packages (drm-515-kmod, drm-610-kmod).  And if that still doesn't work, try -CURRENT.
Comment 9 Tomasz "CeDeROM" CEDRO 2024-09-02 19:37:39 UTC
As replied in #276985 this is my main workstation, must be rock solid, cannot experiment here, and whatever ADMGPU issue it blocks the 14 line, I have rolled back to 13.3 and stick to drm kmod 5.10. Yes these may be different issues here, I did report my problem.
Comment 10 Graham Perrin 2024-11-13 01:49:50 UTC
(In reply to Jonathan Vasquez from comment #0)

> … 14.0-RELEASE-p6 … amd64

> drm-kmod-20220907_1

From the attachment at comment #2: 

> Trying to mount root from zfs:tank/ROOT/default []...

Please try: 

- graphics/drm-61-kmod built from source
- 14.2-BETA2.

If you like (for simplicity), the part of src that will be required for the build of the port can be added: 

pkg add https://pkg.freebsd.org/FreeBSD:14:amd64/base_release_2/FreeBSD-src-sys-14.2.b2.20241111185159.pkg