I apologize in advance if I've categorized this incorrectly or if the reason for my issue is due to the lack of proper research, but I've tried my best but I can't figure out what's wrong. I am able to start Wayfire and Sway/SwayFX properly, but running KDE on Wayland using the tty and sddm leads to a kernel panic, and so does running niri. Running hyprland gives me a blank screen for a few seconds then my system restarts. Both niri and KDE have on one or two occasions loaded the desktop for a few seconds, but freezes immediately after that, then goes on to crash and restart my system again. Specifications: Nvidia GTX 1660 Super Driver version: 580.105.08 (graphics/nvidia-drm-kmod) FreeBSD 15.0-RC3 (I believe I got the same result on 14.3-Release when I tried it) --- Kldstat: 4 3 0xffffffff83400000 605d178 nvidia.ko 8 2 0xffffffff8945e000 1650f8 nvidia-modeset.ko 9 1 0xffffffff83357000 14a88 nvidia-drm.ko --- /etc/rc.conf: sshd_enable="YES" moused_nondefault_enable="NO" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev="AUTO" zfs_enable="YES" firewall_enable="YES" firewall_type="workstation" kld_list="nvidia nvidia-modeset nvidia-drm" dbus_enable="YES" sddm_enable="NO" seatd_enable="YES" linux_enable="YES" --- /boot/loader.conf: kern.geom.label.disk_ident.enable="0" kern.geom.label.gptid.enable="0" cryptodev_load="YES" zfs_load="YES" hw.nvidiadrm.modeset="1" hw.nvidia.registry.EnableGpuFirmware=1 --- Error and kernel panic: exec dbus-launch --exit-with-session ck-launch-session startplasma-wayland org.kde.startup: not a reply org.freedesktop.locale1 QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The name org.freedesktop.locale1 was not provided by any .service files", signature="", contents="The name org.freedesktop.locale1 was not provided by any .service files")) No backend specified, automatically choosing drm kwin_wayland_drm: drmModelistLessee: Failed: Invalid argument kwin_screencast: Failed to connect PipeWire context Fatal trap 12: page fault while in kernel mode cpuid = 3; apic id = 03 fault virtual address = 0x10 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80f1eed4 stack pointer = 0x8:0xffffffff80d51f0a30 frame pointer = 0x8:0xffffffff80d51f0a80 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 = 6502 (kwin_wayland) rdi: 0000000000000000 rsi: 0000000000000010 rdx: 0000000000000000 rcx: 0000000000000001 r8: fffffe00d51f0a78 r9: fffffe00d51f0bc0 rax: 0000000000000000 rbx: 0000000000000000 rbp: fffffe00d51f0a60 r10: 00000000f7fa0000 r11: 0000000000004111 r12: fffff8031b84fe88 r13: 0000000000000000 r14: 0000000000000010 r15: 0000004000530000 trap number = 12 panic: page fault cpuid = 3 time = 1764173413 KDB: stack backtrace: #0 0xffffffff80bbe1ad at kdb_backtrace+0x5d #1 0xffffffff80b71536 at vpanic+0x136 #2 0xffffffff80b713f3 at panic+0x43 #3 0xffffffff81079f69 at trap_pfault+0x3c9 #4 0xffffffff8104fea8 at calltrap+0x8 #5 0xffffffff80dfa97c at kpi_vm_insert_pfn_prot_locked+0xfc #6 0xffffffff83363e55 at nv_drm_gem_nvks_handle_vma_fault+0xfc #7 0xffffffff80df4682 at linux_cdev_pager_populate+0x122 #8 0xffffffff80e07e19 at vm_fault_allocate+0x3a9 #9 0xffffffff80e065c3 at vm_fault+0x363 #10 0xffffffff80b70613 at vm_fault_trap+0x4d #11 0xffffffff81079d99 at trap_pfault+0x1f9 #12 0xffffffff810796cf at trap+0x54f #13 0xffffffff8104fea8 at calltrap+0x8 Uptime: 385 Dumping 995 out of 16096 MB: ..2%..12%..21%..31%..41%..52%..62%..71%..81%..91% Dump complete Automatic reboot in 15 seconds - press a key on the console to abort --- The numbers may be a bit off since I had to extract the output from a photo of my screen as I otherwise couldn't figure out how to save it to my computer. If that is of any importance, let me know so that I can double check to make sure everything is in order. Thank you!
Just a quick and wild guess for now. Try dropping "hw.nvidia.registry.EnableGpuFirmware=1" from your /boot/loader.conf unless you already confirmed NG without it. This is known to be mandatory for RTX 5xxx (Blackwell) GPUs but (AFAIK) NOT for older architectures of GPUs.
Thank you for the suggestion, I tried dropping "hw.nvidia.registry.EnableGpuFirmware=1" and rebooting but the same issue still seems to occur unfortunately.
(In reply to solidwarea from comment #2) One important question. Does KDE work for you if you start it up with xorg? If so, the problematic compositers could be using DRM functionalities that FreeBSD does NOT yet support (i.e., SimpleDRM, which is needed to be imlemented in LinuxKPI and/or graphics/drm-*-kmod side, as it's common with Intel and AMD GPUs), or the compositor does NOT supporting nvidia proprietary driver. The latter would be seen for Linux, too, by searching Internet. So if any of the above applies, unfortunately we (nvidia driver ports team) can do nothing for now.
(In reply to Tomoaki AOKI from comment #3) KDE on xorg works as expected. I am under the impression that KDE supports Nvidia's proprietary drivers, I'm not sure about Hyprland however. Sway doesn't support it either but seems to be working quite alright, but that may just be luck. If it is to any help at all, both Hyprland and KDE under wayland work fine on Linux last time I tried it. I had also recently seen others running at least Hyprland on modern Nvidia hardware using FreeBSD before which is why I had assumed it was somewhat supported.