https://bugs.kde.org/show_bug.cgi?id=462214
Bug ID: 462214 Summary: "kwin_wayland_drm: Failed to find a working setup for new outputs!" "Atomic modeset test failed! Invalid argument" with external display (Qualcomm GPU) Classification: Plasma Product: kwin Version: 5.26.3 Platform: Debian testing OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: platform-drm Assignee: kwin-bugs-n...@kde.org Reporter: leon...@lausen.nl Target Milestone: --- Created attachment 154000 --> https://bugs.kde.org/attachment.cgi?id=154000&action=edit startplasma-wayland debug log KWin Wayland session is currently broken on ARM devices such as Acer Spin 513 Chromebook with Qualcomm Snapdragon 7c [1] if an external display is used. There are no issues with using the KWin X11 session in this setting with external display, nor any issues with the KWin Wayland session as long as no external display is connected. STEPS TO REPRODUCE 1. Obtain a laptop with Qualcomm Snapdragon chipset 2. From a tty run `export QT_LOGGING_RULES="kwin_*.debug=true"; startplasma-wayland > ~/startplasma-wayland.log 2>&1 ` 3. Wait a minute and `killall startplasma-wayland` from the serial console (as kwin took over the tty and can't be interrupted) OBSERVED RESULT The tty continues to be displayed and kwin fails to start a graphical session and hangs indefinitely. EXPECTED RESULT kwin successfully starts a plasma session. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux 6.0.8 KDE Plasma Version: 5.26.3 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 ADDITIONAL INFORMATION Full startplasma-wayland.log attached. Also attached is startplasma-wayland-newuser.log which contains the debug log upon reproducing with a fresh user (sudo adduser test). Both logs are substantially similar, but have small differences in the debug messages regarding Drm objects. Relevant excerpt: No backend specified, automatically choosing drm kwin_wayland_drm: Skipping KMS incapable drm device node at "/dev/dri/card0" kwin_wayland_drm: drmModeAddFB2WithModifiers is supported on GPU "/dev/dri/card1" kwin_wayland_drm: Using Atomic Mode Setting on gpu "/dev/dri/card1" kwin_wayland_drm: Number of planes on GPU "/dev/dri/card1" : 4 kwin_wayland_drm: Plane 41 has properties "type"="Primary", "SRC_X"=0, "SRC_Y"=0, "SRC_W"=125829120, "SRC_H"=70778880, "CRTC_X"=0, "CRTC_Y"=0, "CRTC_W"=1920, "CRTC_H"=1080, "FB_ID"=68, "CRTC_ID"=65, "rotation"=invalid value: 1, "IN_FORMATS"=42 kwin_wayland_drm: Plane 47 has properties "type"="Primary", "SRC_X"=0, "SRC_Y"=0, "SRC_W"=125829120, "SRC_H"=70778880, "CRTC_X"=0, "CRTC_Y"=0, "CRTC_W"=1920, "CRTC_H"=1080, "FB_ID"=68, "CRTC_ID"=66, "rotation"=invalid value: 1, "IN_FORMATS"=48 kwin_wayland_drm: Plane 53 has properties "type"="Cursor", "SRC_X"=0, "SRC_Y"=0, "SRC_W"=0, "SRC_H"=0, "CRTC_X"=0, "CRTC_Y"=0, "CRTC_W"=0, "CRTC_H"=0, "FB_ID"=0, "CRTC_ID"=0, "rotation"=invalid value: 1, "IN_FORMATS"=54 kwin_wayland_drm: Plane 59 has properties "type"="Cursor", "SRC_X"=0, "SRC_Y"=0, "SRC_W"=0, "SRC_H"=0, "CRTC_X"=0, "CRTC_Y"=0, "CRTC_W"=0, "CRTC_H"=0, "FB_ID"=0, "CRTC_ID"=0, "rotation"=invalid value: 1, "IN_FORMATS"=60 kwin_wayland_drm: Crtc 65 has properties "MODE_ID"=69, "ACTIVE"=1, "VRR_ENABLED"=0, "GAMMA_LUT" not found, "GAMMA_LUT_SIZE" not found kwin_wayland_drm: Crtc 66 has properties "MODE_ID"=71, "ACTIVE"=1, "VRR_ENABLED"=0, "GAMMA_LUT" not found, "GAMMA_LUT_SIZE" not found [...] kwin_core: KGlobalAcceld inited kwin_core: Attempting to load the OpenGL scene kwin_scene_opengl: Egl Initialize succeeded kwin_scene_opengl: EGL version: 1 . 5 kwin_scene_opengl: Created EGL context with attributes: Version requested: true Version: 3.1 Robust: true Reset on video memory purge: false Forward compatible: false Core profile: false Compatibility profile: false High priority: true kwin_scene_opengl: Created EGL context with attributes: Version requested: true Version: 3.1 Robust: true Reset on video memory purge: false Forward compatible: false Core profile: false Compatibility profile: false High priority: true OpenGL vendor string: freedreno OpenGL renderer string: FD618 OpenGL version string: 3.3 (Core Profile) Mesa 22.2.4 OpenGL shading language version string: 3.30 Driver: Unknown GPU class: Unknown OpenGL version: 3.3 GLSL version: 3.30 Mesa version: 22.2.4 Linux kernel version: 6.0.8 Requires strict binding: no GLSL shaders: yes Texture NPOT support: yes Virtual Machine: no kwin_scene_opengl: Filter multi-plane format 961959257 kwin_scene_opengl: Filter multi-plane format 825316697 kwin_scene_opengl: Filter multi-plane format 842093913 kwin_scene_opengl: Filter multi-plane format 909202777 kwin_scene_opengl: Filter multi-plane format 875713881 kwin_scene_opengl: Filter multi-plane format 961893977 kwin_scene_opengl: Filter multi-plane format 825316953 kwin_scene_opengl: Filter multi-plane format 842094169 kwin_scene_opengl: Filter multi-plane format 909203033 kwin_scene_opengl: Filter multi-plane format 875714137 kwin_scene_opengl: Filter multi-plane format 842094158 kwin_scene_opengl: Filter multi-plane format 909203022 kwin_scene_opengl: EGL driver advertises 30 supported dmabuf formats with modifiers kwin_core: OpenGL compositing has been successfully initialized kwin_wayland_drm: Connector 32 has properties "CRTC_ID"=65, "non-desktop"=0, "DPMS"=0, "EDID"=67, "overscan" not found, "vrr_capable" not found, "underscan" not found, "underscan vborder" not found, "underscan hborder" not found, "Broadcast RGB" not found, "max bpc" not found, "link-status"="Good" kwin_wayland_drm: Connector 34 has properties "CRTC_ID"=66, "non-desktop"=0, "DPMS"=0, "EDID"=72, "overscan" not found, "vrr_capable" not found, "underscan" not found, "underscan vborder" not found, "underscan hborder" not found, "Broadcast RGB" not found, "max bpc" not found, "link-status"="Good" kwin_wayland_drm: New output on GPU /dev/dri/card1: eDP-1-unknown kwin_wayland_drm: New output on GPU /dev/dri/card1: DELL U2722DE/7R9MR83 kwin_wayland_drm: Atomic modeset test failed! Invalid argument kwin_wayland_drm: Drm objects: kwin_wayland_drm: "connector" 32 kwin_wayland_drm: "CRTC_ID": 65 kwin_wayland_drm: "non-desktop": 0 kwin_wayland_drm: "DPMS": 0 kwin_wayland_drm: "EDID": 67 kwin_wayland_drm: "link-status": 0 kwin_wayland_drm: "crtc" 65 kwin_wayland_drm: "MODE_ID": 69->74 kwin_wayland_drm: "ACTIVE": 1 kwin_wayland_drm: "VRR_ENABLED": 0 kwin_wayland_drm: "plane" 47 kwin_wayland_drm: "type": 1 kwin_wayland_drm: "SRC_X": 0 kwin_wayland_drm: "SRC_Y": 0 kwin_wayland_drm: "SRC_W": 1920 kwin_wayland_drm: "SRC_H": 1080 kwin_wayland_drm: "CRTC_X": 0 kwin_wayland_drm: "CRTC_Y": 0 kwin_wayland_drm: "CRTC_W": 1920 kwin_wayland_drm: "CRTC_H": 1080 kwin_wayland_drm: "FB_ID": 68->73 kwin_wayland_drm: "CRTC_ID": 66->65 kwin_wayland_drm: "rotation": 1 kwin_wayland_drm: "IN_FORMATS": 48 kwin_wayland_drm: "plane" 53 kwin_wayland_drm: "type": 2 kwin_wayland_drm: "SRC_X": 0 kwin_wayland_drm: "SRC_Y": 0 kwin_wayland_drm: "SRC_W": 0->64 kwin_wayland_drm: "SRC_H": 0->64 kwin_wayland_drm: "CRTC_X": 0 kwin_wayland_drm: "CRTC_Y": 0 kwin_wayland_drm: "CRTC_W": 0->64 kwin_wayland_drm: "CRTC_H": 0->64 kwin_wayland_drm: "FB_ID": 0 kwin_wayland_drm: "CRTC_ID": 0 kwin_wayland_drm: "rotation": 1 kwin_wayland_drm: "IN_FORMATS": 54 kwin_wayland_drm: Drm objects: [...] -- You are receiving this mail because: You are watching all bug changes.