https://bugs.kde.org/show_bug.cgi?id=528598
--- Comment #2 from Emaciations <[email protected]> --- I reproduced it with timestamps, and the trigger turns out to be udev permissions rather than the driver's timing alone. Boot with KWin debug logging and boot-time stamps (QT_MESSAGE_PATTERN="[%{time boot}] ..."), plus a logger that only watches device nodes appear: 19.227 [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 2 19.37 /dev/nvidia-modeset, /dev/dri/card2 and /dev/dri/renderD130 (the RTX 4080) appear 19.533 kwin_vulkan: Device NVIDIA GeForce RTX 4080 misses required Vulkan extensions / VK_EXT_external_memory_dma_buf 19.623 kwin_vulkan: No Vulkan device found for /dev/dri/renderD130 19.623 kwin_wayland_drm: adding GPU /dev/dri/gpu-rtx4080 23.482 kwin_wayland_drm: chose cpu import ... (every output on the other GPUs) A standalone Vulkan program run as root at the same moment always saw the extension, so I checked access instead: with the 4080's render node made unreadable for the session user (chmod 600 on /dev/dri/renderD130), the NVIDIA Vulkan driver lists the 4080 with 274 instead of 275 extensions, without VK_EXT_external_memory_dma_buf and without a render node in VkPhysicalDeviceDrmPropertiesEXT. That is exactly KWin's log line. Restoring 0666 brings the extension back. So at boot KWin opens the new render node in the short window after the kernel created it (devtmpfs default root:root 0600) and before udev has applied its rules (root:render 0666). GpuManager::scanForRenderDevices() takes udev's enumeration of render nodes without checking whether udev has initialized them yet (udev_device_get_is_initialized()); a device not yet initialized will be announced again by the udev "add" event once its rules ran. Skipping uninitialized nodes in the scan (and letting the add event bring them in) would avoid this regardless of the driver. NVIDIA silently dropping the extension instead of failing is arguably also worth a report to them, but the race itself is on the KWin side, so I'd ask to reconsider the resolution. Workaround here: the session's env script waits until the user can read and write the 4080's render node before KWin starts. -- You are receiving this mail because: You are watching all bug changes.
