freebsd / drm-kmod

drm driver for FreeBSD
154 stars 70 forks source link

Since FreeBSD 14.1 upgrade, getting amdgpu issues with RX 550 #317

Open knaggsy2000 opened 2 days ago

knaggsy2000 commented 2 days ago

Describe the bug Ever since I've upgraded from v14.0 to v14.1 been getting kernel panics when the X environment gets loaded - BUT, not every time - it seems to when something needs to access DRM, like in my case when VLC loads a DVD.

I don't use a graphical login manager, I login via console and then issue "startx" - always done this and that's never going to change.

With my mentioned card (in the title - RX 550) it's 100% fails now. So I swapped it out for my backup gfx card - which is a RX 6500XT, everything works perfectly! So I ordered another RX550 thinking my gfx card failed in some way (as from personal experiences, kernel panics have always been hardware issues) - well, it turns out that it wasn't. Fault still happens with NEW hardware - so the issue is clearly with the drivers/firmware.

Upon some research found this. It states that the solution is to install drm-61 instead - great! But there's multiple problems with that. First: No pkg currently available to install. Second: Building from ports/source fails (for me at least): -

--- dma-resv.o ---
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/dma-resv.c:36:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/bsd/include/linux/dma-resv.h:42:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/ww_mutex.h:34:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/mutex.h:37:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:50:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:40:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/bitmap.h:31:
/usr/src/sys/compat/linuxkpi/common/include/linux/slab.h:39:10: fatal error: 'linux/llist.h' file not found
   39 | #include <linux/llist.h>
      |          ^~~~~~~~~~~~~~~
--- dma-fence.o ---
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/dma-fence.c:27:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/bsd/include/linux/dma-fence.h:31:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/wait.h:37:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:40:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/bitmap.h:31:
/usr/src/sys/compat/linuxkpi/common/include/linux/slab.h:39:10: fatal error: 'linux/llist.h' file not found
   39 | #include <linux/llist.h>
      |          ^~~~~~~~~~~~~~~
--- dma-fence-unwrap.o ---
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/dma-fence-unwrap.c:10:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/bsd/include/linux/dma-fence.h:31:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/wait.h:37:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:40:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/bitmap.h:31:
/usr/src/sys/compat/linuxkpi/common/include/linux/slab.h:39:10: fatal error: 'linux/llist.h' file not found
   39 | #include <linux/llist.h>
      |          ^~~~~~~~~~~~~~~
--- dma-fence-chain.o ---
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/dma-fence-chain.c:29:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/bsd/include/linux/dma-fence-chain.h:30:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/bsd/include/linux/dma-fence.h:31:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/wait.h:37:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:40:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/bitmap.h:31:
/usr/src/sys/compat/linuxkpi/common/include/linux/slab.h:39:10: fatal error: 'linux/llist.h' file not found
   39 | #include <linux/llist.h>
      |          ^~~~~~~~~~~~~~~
--- sync_file.o ---
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/sync_file.c:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/file.h:39:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/fs.h:40:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/wait.h:37:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:40:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/bitmap.h:31:
/usr/src/sys/compat/linuxkpi/common/include/linux/slab.h:39:10: fatal error: 'linux/llist.h' file not found
   39 | #include <linux/llist.h>
      |          ^~~~~~~~~~~~~~~
--- dma-fence-array.o ---
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/dma-fence-array.c:29:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/bsd/include/linux/dma-fence-array.h:30:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/bsd/include/linux/dma-fence.h:31:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/wait.h:37:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:40:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/bitmap.h:31:
/usr/src/sys/compat/linuxkpi/common/include/linux/slab.h:39:10: fatal error: 'linux/llist.h' file not found
   39 | #include <linux/llist.h>
      |          ^~~~~~~~~~~~~~~
--- dma-buf.o ---
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/dma-buf.c:53:
In file included from /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/gplv2/include/linux/dma-buf.h:28:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/iosys-map.h:7:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/string.h:36:
/usr/src/sys/compat/linuxkpi/common/include/linux/slab.h:39:10: fatal error: 'linux/llist.h' file not found
   39 | #include <linux/llist.h>
      |          ^~~~~~~~~~~~~~~
--- dma-resv.o ---
1 error generated.
--- dma-fence-unwrap.o ---
1 error generated.
--- dma-fence-chain.o ---
1 error generated.
--- dma-fence-unwrap.o ---
*** [dma-fence-unwrap.o] Error code 1

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
--- dma-resv.o ---
*** [dma-resv.o] Error code 1

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
--- dma-fence-chain.o ---
*** [dma-fence-chain.o] Error code 1

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
--- dma-fence.o ---
1 error generated.
--- dma-fence-array.o ---
1 error generated.
--- dma-fence.o ---
*** [dma-fence.o] Error code 1

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
--- dma-fence-array.o ---
*** [dma-fence-array.o] Error code 1

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
--- sync_file.o ---
1 error generated.
*** [sync_file.o] Error code 1

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
--- dma-buf.o ---
1 error generated.
*** [dma-buf.o] Error code 1

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
7 errors

make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf

make: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/drm-61-kmod

I would prefer to put my cheaper gfx card back into my main PC, but can't at the moment.

Also seen other issues raised on here that sound slightly similar too.

Please can someone help?

Thanks.

FreeBSD version FreeBSD mainpc.local 14.1-RELEASE-p4 FreeBSD 14.1-RELEASE-p4 GENERIC amd64 1401000 1401000

PCI Info

hostb0@pci0:0:0:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1480 subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse Root Complex'
    class      = bridge
    subclass   = HOST-PCI
amdiommu0@pci0:0:0:2:   class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1481 subvendor=0x1022 subdevice=0x1481
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse IOMMU'
    class      = base peripheral
    subclass   = IOMMU
hostb1@pci0:0:1:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:3:   class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1483 subvendor=0x1022 subdevice=0x1234
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
hostb2@pci0:0:2:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:3:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib8@pci0:0:3:1:   class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1483 subvendor=0x1022 subdevice=0x1234
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib11@pci0:0:3:2:  class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1483 subvendor=0x1022 subdevice=0x1234
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
hostb4@pci0:0:4:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:5:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:7:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib12@pci0:0:7:1:  class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1484 subvendor=0x1022 subdevice=0x1484
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]'
    class      = bridge
    subclass   = PCI-PCI
hostb7@pci0:0:8:0:  class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1482 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib13@pci0:0:8:1:  class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1484 subvendor=0x1022 subdevice=0x1484
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]'
    class      = bridge
    subclass   = PCI-PCI
intsmb0@pci0:0:20:0:    class=0x0c0500 rev=0x61 hdr=0x00 vendor=0x1022 device=0x790b subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH SMBus Controller'
    class      = serial bus
    subclass   = SMBus
isab0@pci0:0:20:3:  class=0x060100 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790e subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH LPC Bridge'
    class      = bridge
    subclass   = PCI-ISA
hostb8@pci0:0:24:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1440 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 0'
    class      = bridge
    subclass   = HOST-PCI
hostb9@pci0:0:24:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1441 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 1'
    class      = bridge
    subclass   = HOST-PCI
hostb10@pci0:0:24:2:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1442 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 2'
    class      = bridge
    subclass   = HOST-PCI
hostb11@pci0:0:24:3:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1443 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 3'
    class      = bridge
    subclass   = HOST-PCI
hostb12@pci0:0:24:4:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1444 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 4'
    class      = bridge
    subclass   = HOST-PCI
hostb13@pci0:0:24:5:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1445 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 5'
    class      = bridge
    subclass   = HOST-PCI
hostb14@pci0:0:24:6:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1446 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 6'
    class      = bridge
    subclass   = HOST-PCI
hostb15@pci0:0:24:7:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1447 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse/Vermeer Data Fabric: Device 18h; Function 7'
    class      = bridge
    subclass   = HOST-PCI
xhci0@pci0:3:0:0:   class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x1022 device=0x43d0 subvendor=0x1b21 subdevice=0x1142
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = serial bus
    subclass   = USB
ahci0@pci0:3:0:1:   class=0x010601 rev=0x01 hdr=0x00 vendor=0x1022 device=0x43c8 subvendor=0x1b21 subdevice=0x1062
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = '400 Series Chipset SATA Controller'
    class      = mass storage
    subclass   = SATA
pcib2@pci0:3:0:2:   class=0x060400 rev=0x01 hdr=0x01 vendor=0x1022 device=0x43c6 subvendor=0x1b21 subdevice=0x0201
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = '400 Series Chipset PCIe Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:32:0:0:  class=0x060400 rev=0x01 hdr=0x01 vendor=0x1022 device=0x43c7 subvendor=0x1b21 subdevice=0x3306
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = '400 Series Chipset PCIe Port'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:32:1:0:  class=0x060400 rev=0x01 hdr=0x01 vendor=0x1022 device=0x43c7 subvendor=0x1b21 subdevice=0x3306
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = '400 Series Chipset PCIe Port'
    class      = bridge
    subclass   = PCI-PCI
pcib5@pci0:32:2:0:  class=0x060400 rev=0x01 hdr=0x01 vendor=0x1022 device=0x43c7 subvendor=0x1b21 subdevice=0x3306
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = '400 Series Chipset PCIe Port'
    class      = bridge
    subclass   = PCI-PCI
pcib6@pci0:32:3:0:  class=0x060400 rev=0x01 hdr=0x01 vendor=0x1022 device=0x43c7 subvendor=0x1b21 subdevice=0x3306
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = '400 Series Chipset PCIe Port'
    class      = bridge
    subclass   = PCI-PCI
pcib7@pci0:32:4:0:  class=0x060400 rev=0x01 hdr=0x01 vendor=0x1022 device=0x43c7 subvendor=0x1b21 subdevice=0x3306
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = '400 Series Chipset PCIe Port'
    class      = bridge
    subclass   = PCI-PCI
igb0@pci0:34:0:0:   class=0x020000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x1539 subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Intel Corporation'
    device     = 'I211 Gigabit Network Connection'
    class      = network
    subclass   = ethernet
ix0@pci0:37:0:0:    class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x10fb subvendor=0x8086 subdevice=0x0006
    vendor     = 'Intel Corporation'
    device     = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
    class      = network
    subclass   = ethernet
pcib9@pci0:38:0:0:  class=0x060400 rev=0xc1 hdr=0x01 vendor=0x1002 device=0x1478 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 10 XL Upstream Port of PCI Express Switch'
    class      = bridge
    subclass   = PCI-PCI
pcib10@pci0:39:0:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x1479 subvendor=0x1002 subdevice=0x1479
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 10 XL Downstream Port of PCI Express Switch'
    class      = bridge
    subclass   = PCI-PCI
vgapci0@pci0:40:0:0:    class=0x030000 rev=0xc1 hdr=0x00 vendor=0x1002 device=0x743f subvendor=0x1462 subdevice=0x5080
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 24 [Radeon RX 6400/6500 XT/6500M]'
    class      = display
    subclass   = VGA
hdac0@pci0:40:0:1:  class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab28 subvendor=0x1002 subdevice=0xab28
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 21/23 HDMI/DP Audio Controller'
    class      = multimedia
    subclass   = HDA
mps0@pci0:41:0:0:   class=0x010700 rev=0x05 hdr=0x00 vendor=0x1000 device=0x0087 subvendor=0x1000 subdevice=0x3020
    vendor     = 'Broadcom / LSI'
    device     = 'SAS2308 PCI-Express Fusion-MPT SAS-2'
    class      = mass storage
    subclass   = SAS
none0@pci0:42:0:0:  class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x148a subvendor=0x1022 subdevice=0x148a
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PCIe Dummy Function'
    class      = non-essential instrumentation
none1@pci0:43:0:0:  class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1485 subvendor=0x1022 subdevice=0x1485
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse Reserved SPP'
    class      = non-essential instrumentation
none2@pci0:43:0:1:  class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1486 subvendor=0x1022 subdevice=0x1486
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse Cryptographic Coprocessor PSPCPP'
    class      = encrypt/decrypt
xhci1@pci0:43:0:3:  class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x149c subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Matisse USB 3.0 Host Controller'
    class      = serial bus
    subclass   = USB

DRM KMOD version

drm-515-kmod 5.15.160
drm-kmod 20220907_3

To Reproduce Already mentioned earlier.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Additional info available upon request.

knaggsy2000 commented 1 day ago

Forgot to include the output of kgdb /boot/kernel/kernel vmcore.last: -

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:
panic: vm_fault_lookup: fault on nofault entry, addr: 0xfffffe01ce36e000
cpuid = 0
time = 1726594283
KDB: stack backtrace:
#0 0xffffffff80b7fefd at kdb_backtrace+0x5d
#1 0xffffffff80b32bd1 at vpanic+0x131
#2 0xffffffff80b32a93 at panic+0x43
#3 0xffffffff80ea6a0f at vm_fault+0x15af
#4 0xffffffff80ea5381 at vm_fault_trap+0x81
#5 0xffffffff81000ade at trap_pfault+0x1be
#6 0xffffffff80fd6d48 at calltrap+0x8
#7 0xffffffff8425c200 at amdgpu_vm_pt_create+0x3b0
#8 0xffffffff84259148 at amdgpu_vm_bo_update_mapping+0x568
#9 0xffffffff84259da2 at amdgpu_vm_bo_update+0x2c2
#10 0xffffffff84225dcf at amdgpu_gem_va_update_vm+0x4f
#11 0xffffffff84225d33 at amdgpu_gem_va_ioctl+0x253
#12 0xffffffff84059cc6 at drm_ioctl_kernel+0xc6
#13 0xffffffff8405a075 at drm_ioctl+0x2b5
#14 0xffffffff80d9a44d at linux_file_ioctl+0x2fd
#15 0xffffffff80ba0f95 at kern_ioctl+0x255
#16 0xffffffff80ba0cdf at sys_ioctl+0xff
#17 0xffffffff810011c0 at amd64_syscall+0x100
Uptime: 1m15s
Dumping 1431 out of 32635 MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /boot/kernel/cryptodev.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cryptodev.ko.debug...
Reading symbols from /boot/kernel/nmdm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/nmdm.ko.debug...
Reading symbols from /boot/kernel/if_bridge.ko...
Reading symbols from /usr/lib/debug//boot/kernel/if_bridge.ko.debug...
Reading symbols from /boot/kernel/bridgestp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/bridgestp.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/kernel/zfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/zfs.ko.debug...
Reading symbols from /boot/kernel/vmm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/vmm.ko.debug...
Reading symbols from /boot/modules/amdgpu.ko...
(No debugging symbols found in /boot/modules/amdgpu.ko)
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/ttm.ko...
(No debugging symbols found in /boot/modules/ttm.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_mc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_mc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_pfp_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_pfp_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_me_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_me_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_ce_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_ce_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_rlc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_rlc_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_mec_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_mec_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_mec2_2_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_mec2_2_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_sdma_bin.ko...
--Type <RET> for more, q to quit, c to continue without paging--c
(No debugging symbols found in /boot/modules/amdgpu_polaris12_sdma_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_sdma1_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_sdma1_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_uvd_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_uvd_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_vce_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_vce_bin.ko)
Reading symbols from /boot/modules/amdgpu_polaris12_smc_bin.ko...
(No debugging symbols found in /boot/modules/amdgpu_polaris12_smc_bin.ko)
Reading symbols from /boot/kernel/hidraw.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hidraw.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/hkbd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hkbd.ko.debug...
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/intpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/intpm.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/snd_uaudio.ko...
Reading symbols from /usr/lib/debug//boot/kernel/snd_uaudio.ko.debug...
Reading symbols from /boot/kernel/uhid.ko...
Reading symbols from /usr/lib/debug//boot/kernel/uhid.ko.debug...
Reading symbols from /boot/kernel/ums.ko...
Reading symbols from /usr/lib/debug//boot/kernel/ums.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/hms.ko...
Reading symbols from /usr/lib/debug//boot/kernel/hms.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/pflog.ko...
Reading symbols from /usr/lib/debug//boot/kernel/pflog.ko.debug...
Reading symbols from /boot/kernel/pf.ko...
Reading symbols from /usr/lib/debug//boot/kernel/pf.ko.debug...
Reading symbols from /boot/kernel/fdescfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug...
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
57      __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,

Some additional info: -

  1. Disabled linux emulation
  2. Removed the proc entry in /etc/fstab

As I saw Linux in the trace, but it didn't any difference.

What has changed in FreeBSD 14.1 which is causing this?

knaggsy2000 commented 1 day ago

Have been a longtime FreeBSD user (since v5), not had to deal with crash dumps so much before. So throw me bone if needed.

ClausAndersen commented 8 hours ago

I am not sure this is a "bone" but.... To me it looks like your might not have /usr/src populated correctly (The FreeBSD kernel source). This is what FloppyKing hinted at in the thread you referenced. Credit to T-Daemon as I got it from here.

The following worked for me:

cd /usr
git clone
git clone https://git.freebsd.org/src.git
git checkout releng/14.1
cd /usr/ports/graphics/drm-61-kmod
make
make install