freebsd / drm-kmod

drm driver for FreeBSD
157 stars 68 forks source link

drm-515-kmod: Loss of display signal with RX 6800 XT #244

Open old-unix-geek opened 1 year ago

old-unix-geek commented 1 year ago

Describe the bug Display loses signal after loading amdgpu via kldload under FreeBSD-CURRENT with RX 6800 XT with sienna_cichlid firmware installed. The screen goes completely black and the on-screen dialog shows that it's lost signal from the PC.

FreeBSD version

FreeBSD zen.unixgeek.dev 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n261711-b5d43972e394: Thu Mar 23 08:12:31 UTC 2023     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

PCI Info

hostb0@pci0:0:0:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1450 subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Root Complex'
    class      = bridge
    subclass   = HOST-PCI
none0@pci0:0:0:2:       class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1451 subvendor=0x1022 subdevice=0x1451
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) I/O Memory Management Unit'
    class      = base peripheral
    subclass   = IOMMU
hostb1@pci0:0:1:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:1:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1453 subvendor=0x1022 subdevice=0x1453
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:1:3:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1453 subvendor=0x1022 subdevice=0x1453
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
hostb2@pci0:0:2:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:3:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib9@pci0:0:3:1:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1453 subvendor=0x1022 subdevice=0x1453
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
hostb4@pci0:0:4:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:7:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib12@pci0:0:7:1:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1454 subvendor=0x1022 subdevice=0x1454
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B'
    class      = bridge
    subclass   = PCI-PCI
hostb6@pci0:0:8:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1452 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib13@pci0:0:8:1:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1454 subvendor=0x1022 subdevice=0x1454
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B'
    class      = bridge
    subclass   = PCI-PCI
intsmb0@pci0:0:20:0:    class=0x0c0500 rev=0x59 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
hostb7@pci0:0:24:0:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1460 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0'
    class      = bridge
    subclass   = HOST-PCI
hostb8@pci0:0:24:1:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1461 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1'
    class      = bridge
    subclass   = HOST-PCI
hostb9@pci0:0:24:2:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1462 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2'
    class      = bridge
    subclass   = HOST-PCI
hostb10@pci0:0:24:3:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1463 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3'
    class      = bridge
    subclass   = HOST-PCI
hostb11@pci0:0:24:4:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1464 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4'
    class      = bridge
    subclass   = HOST-PCI
hostb12@pci0:0:24:5:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1465 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5'
    class      = bridge
    subclass   = HOST-PCI
hostb13@pci0:0:24:6:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1466 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6'
    class      = bridge
    subclass   = HOST-PCI
hostb14@pci0:0:24:7:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1467 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7'
    class      = bridge
    subclass   = HOST-PCI
nvme0@pci0:1:0:0:       class=0x010802 rev=0x00 hdr=0x00 vendor=0x144d device=0xa808 subvendor=0x144d subdevice=0xa801
    vendor     = 'Samsung Electronics Co Ltd'
    device     = 'NVMe SSD Controller SM981/PM981/PM983'
    class      = mass storage
    subclass   = NVM
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
pcib3@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
pcib4@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
pcib5@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
pcib6@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
pcib7@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
pcib8@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
iwlwifi0@pci0:36:0:0:   class=0x028000 rev=0x1a hdr=0x00 vendor=0x8086 device=0x2723 subvendor=0x8086 subdevice=0x0084
    vendor     = 'Intel Corporation'
    device     = 'Wi-Fi 6 AX200'
    class      = network
none1@pci0:37:0:0:      class=0x020000 rev=0x00 hdr=0x00 vendor=0x10ec device=0x8125 subvendor=0x10ec subdevice=0x0123
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8125 2.5GbE Controller'
    class      = network
    subclass   = ethernet
pcib10@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
pcib11@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=0x73bf subvendor=0x1eae subdevice=0x6701
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]'
    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
none2@pci0:41:0:0:      class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x145a subvendor=0x1022 subdevice=0x145a
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Zeppelin/Raven/Raven2 PCIe Dummy Function'
    class      = non-essential instrumentation
none3@pci0:41:0:2:      class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1456 subvendor=0x1022 subdevice=0x1456
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) Platform Security Processor (PSP) 3.0 Device'
    class      = encrypt/decrypt
xhci1@pci0:41:0:3:      class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x145f subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Zeppelin USB 3.0 xHCI Compliant Host Controller'
    class      = serial bus
    subclass   = USB
none4@pci0:42:0:0:      class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1455 subvendor=0x1022 subdevice=0x1455
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Zeppelin/Renoir PCIe Dummy Function'
    class      = non-essential instrumentation
ahci1@pci0:42:0:2:      class=0x010601 rev=0x51 hdr=0x00 vendor=0x1022 device=0x7901 subvendor=0x1462 subdevice=0x7b78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH SATA Controller [AHCI mode]'
    class      = mass storage
    subclass   = SATA
hdac1@pci0:42:0:3:      class=0x040300 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1457 subvendor=0x1462 subdevice=0xcb78
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 00h-0fh) HD Audio Controller'
    class      = multimedia
    subclass   = HDA

DRM KMOD version drm-515-kmod 0 (Installed drm-515-kmod-5.15.25)

To Reproduce Steps to reproduce the behavior:

  1. Install FreeBSD 14.0
  2. Login as root
  3. Install drm-515-kmod-5.15.25 and firmware for sienna_cichlid (RX 6800 XT)
  4. kldload -v amdgpu (have tried with and without the -v)

Screenshots Not applicable. Screen goes black and never returns.

Additional context /var/log/messages output:

Mar 25 00:07:47 zen kernel: [drm] amdgpu kernel modesetting enabled.
Mar 25 00:07:47 zen kernel: drmn0: <drmn> on vgapci0
Mar 25 00:07:47 zen kernel: vgapci0: child drmn0 requested pci_enable_io
Mar 25 00:07:47 zen syslogd: last message repeated 1 times
Mar 25 00:07:47 zen kernel: [drm] initializing kernel modesetting (SIENNA_CICHLID 0x1002:0x73BF 0x1EAE:0x6701 0xC1).
Mar 25 00:07:47 zen kernel: drmn0: Trusted Memory Zone (TMZ) feature not supported
Mar 25 00:07:47 zen kernel: [drm] register mmio base: 0xFCB00000
Mar 25 00:07:47 zen kernel: [drm] register mmio size: 1048576
Mar 25 00:07:47 zen kernel: [drm] add ip block number 0 <nv_common>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 1 <gmc_v10_0>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 2 <navi10_ih>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 3 <psp>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 4 <smu>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 5 <dm>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 6 <gfx_v10_0>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 7 <sdma_v5_2>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 8 <vcn_v3_0>
Mar 25 00:07:47 zen kernel: [drm] add ip block number 9 <jpeg_v3_0>
Mar 25 00:07:47 zen kernel: drmn0: Fetched VBIOS from ROM BAR
Mar 25 00:07:47 zen kernel: amdgpu: ATOM BIOS: 113-5N21XT_200801
Mar 25 00:07:47 zen kernel: [drm] VCN(0) decode is enabled in VM mode
Mar 25 00:07:47 zen kernel: [drm] VCN(1) decode is enabled in VM mode
Mar 25 00:07:47 zen kernel: [drm] VCN(0) encode is enabled in VM mode
Mar 25 00:07:47 zen kernel: [drm] VCN(1) encode is enabled in VM mode
Mar 25 00:07:47 zen kernel: [drm] JPEG decode is enabled in VM mode
Mar 25 00:07:47 zen kernel: drmn0: MEM ECC is not presented.
Mar 25 00:07:47 zen kernel: drmn0: SRAM ECC is not presented.
Mar 25 00:07:47 zen kernel: [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
Mar 25 00:07:47 zen kernel: drmn0: VRAM: 16368M 0x0000008000000000 - 0x00000083FEFFFFFF (16368M used)
Mar 25 00:07:47 zen kernel: drmn0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
Mar 25 00:07:47 zen kernel: drmn0: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
Mar 25 00:07:47 zen kernel: [drm] Detected VRAM RAM=16368M, BAR=256M
Mar 25 00:07:47 zen kernel: [drm] RAM width 256bits GDDR6
Mar 25 00:07:47 zen kernel: [drm] amdgpu: 16368M of VRAM memory ready
Mar 25 00:07:47 zen kernel: [drm] amdgpu: 16368M of GTT memory ready.
Mar 25 00:07:47 zen kernel: [drm] GART: num cpu pages 131072, num gpu pages 131072
Mar 25 00:07:47 zen kernel: [drm] PCIE GART of 512M enabled (table at 0x0000008000300000).
Mar 25 00:07:47 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_sos.bin'
Mar 25 00:07:47 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_ta.bin'
Mar 25 00:07:47 zen kernel: drmn0: PSP runtime database doesn't exist
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_smc.bin'
Mar 25 00:07:51 zen kernel: lkpi_iic0: <LinuxKPI I2C> on drmn0
Mar 25 00:07:51 zen kernel: iicbus0: <Philips I2C bus> on lkpi_iic0
Mar 25 00:07:51 zen kernel: iic0: <I2C generic I/O> on iicbus0
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_dmcub.bin'
Mar 25 00:07:51 zen kernel: [drm] Loading DMUB firmware via PSP: version=0x02020017
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_pfp.bin'
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_me.bin'
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_ce.bin'
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_rlc.bin'
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_mec.bin'
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_mec2.bin'
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_sdma.bin'
Mar 25 00:07:51 zen kernel: [drm] use_doorbell being set to: [true]
Mar 25 00:07:51 zen syslogd: last message repeated 3 times
Mar 25 00:07:51 zen kernel: drmn0: successfully loaded firmware image 'amdgpu/sienna_cichlid_vcn.bin'
Mar 25 00:07:51 zen kernel: [drm] Found VCN firmware Version ENC: 1.26 DEC: 2 VEP: 0 Revision: 0
Mar 25 00:07:51 zen kernel: drmn0: Will use PSP to load VCN firmware
Mar 25 00:07:51 zen kernel: [drm ERROR :psp_hw_start] PSP load sos failed!
Mar 25 00:07:51 zen kernel: [drm ERROR :psp_hw_init] PSP firmware loading failed
Mar 25 00:07:51 zen kernel: [drm ERROR :amdgpu_device_fw_loading] hw_init of IP block <psp> failed -22
Mar 25 00:07:51 zen kernel: drmn0: amdgpu_device_ip_init failed
Mar 25 00:07:51 zen kernel: drmn0: Fatal error during GPU init
Mar 25 00:07:51 zen kernel: drmn0: amdgpu: finishing device.
Mar 25 00:07:51 zen kernel: device_attach: drmn0 attach returned 22

Additional Comments/Questions

I've tried with single and multiple displays attached via HDMI and Display Port, Display Port only, and HDMI only. No changes. What other information can help narrow the issue futher?

evadot commented 1 year ago

Looks like you might need more firmwares. Some AMD GPU needs firmware from other generation (usually for video decoding etc ...), can you test installing the meta package gpu-firmware-kmod (which will install all the firmwares) and try again ? If that works please paste again dmesg as it will contain the name of the firmware loaded, I'm working on a script that will automatically install firmware packages based on the PCI id of the video card so I will need to patch it.

old-unix-geek commented 1 year ago

I have installed the meta-package (gpu-firmware-kmod) which did install all firmware files in /boot/modules, but it did not change the behavior.

old-unix-geek commented 1 year ago

Is there something else I can try?

phryk commented 1 year ago

Thanks @evadot – I had a similar-ish problem where disconnecting a display would result in an empty TTY being displayed on the remaining displays.

After reading your comment I realized I only specifically installed the firmware for my RX 6600XT and installing the firmware metapackage fixed my particular issue. :)

old-unix-geek commented 1 year ago

The same behavior occurs with FreeBSD 14.0-RC2 with drm-515-mod-5.15.118 and only drm-mod metapackage installed with my RX 6800 XT.

thedaemon commented 1 year ago

I am getting loss of display and hard lock ups with drm-515-kmod-5.15.118 on my 6750XT, I even had a hard reset happen.

bonspry commented 4 months ago

same issue on freebsd 14.1 on rx 6800