I have built and installed the nvidia-driver and companion packages with the above patches on Debian Trixie (kernel 6.12.73+deb13-amd64) and can confirm they work. Initial testing shows Wayland is (dare I say it?) usable with nvidia_drm.modeset=1.
I've tested this on two machines, both running Debian Trixie: * Core i7 14700K w/ RTX 3090 (Ampere), inxi output below * Core i7 7700 w/Quadro K620 (Maxwell) The machine with the Quadro K620 drove two monitors via MST: 4k@60 + 4k@30. * Video decoding (4K video) worked fine with mpv -vo=gpu-next The machine with the RTX 3090 drove 2x 4k@60 w/HDR and adaptive sync. This is a limitation of the monitors, not necessarily the card or drivers. * Video decoding (4K, 4K HDR, and 8K video) worked fine with mpv -vo=gpu-next * AI inference with ollama worked fine * No flickering or excessive redraws in applications that have suffered such in the past. Have not tried any Steam games with either system. $ inxi -GS System: Host: llama Kernel: 6.12.73+deb13-amd64 arch: x86_64 bits: 64 Desktop: KDE Plasma v: 6.3.6 Distro: Debian GNU/Linux 13 (trixie) Graphics: Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] driver: i915 v: kernel Device-2: NVIDIA GA102 [GeForce RTX 3090] driver: nvidia v: 580.142 Device-3: Logitech Logi Webcam C930s driver: snd-usb-audio,uvcvideo type: USB Display: wayland server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6 compositor: kwin_wayland driver: X: loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa dri: iris gpu: nvidia,nvidia-nvswitch resolution: 1: 3840x2160~60Hz 2: 3840x2160~60Hz API: EGL v: 1.5 drivers: iris,nvidia,swrast platforms: gbm,wayland,x11,surfaceless,device API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.142 renderer: NVIDIA GeForce RTX 3090/PCIe/SSE2 API: Vulkan v: 1.4.309 drivers: nvidia,intel,llvmpipe surfaces: xcb,xlib,wayland Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr

