https://bugs.kde.org/show_bug.cgi?id=511618

            Bug ID: 511618
           Summary: kwin_wayland freezes on 2nd GPU hotplug
    Classification: Plasma
           Product: kwin
      Version First 6.5.1
       Reported In:
          Platform: Debian unstable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY

My system has an IGD (i915) and a discrete GPU (nouveau).
My primary display is on the IGD. 
The display output of the second GPU is working well and can be configured via
systems settings.
Detaching the discrete GPU is working fine.
But when attaching the discrete GPU back, then kwin_wayland freezes the hole
primary display.

Those are the only two messages logged:
kwin_wayland_wrapper[18462]: kwin_core: Failed to open /dev/dri/renderD129
device (No such device)
kwin_wayland_wrapper[18462]: kwin_wayland_drm: failed to open drm device at
"/dev/dri/renderD129"

After the hotplug event, udev sets the right acl for /dev/dri/card1 and
/dev/dri/renderD129. 
Nevertheless the user is group video and render.

STEPS TO REPRODUCE

1. Send remove to discrete GPU: echo remove >
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1/uevent
kwin_wayland_wrapper[18462]: kwin_wayland_drm: Removing GPU "/dev/dri/card1"

2. Detach discrete GPU: rmmod nouveau
All is working fine so far.

3. Attach discrete GPU: modpobe nouveau

OBSERVED RESULT

Nouveau loads discrete GPU without any issue.
Primary display freezes. The session cannot be terminated via loginctl.
After killing the whole session and starting a new session, everything works
flawlessly.
The display output of the second GPU is also working well and can be configured
via systems settings.

EXPECTED RESULT

No session freeze.
Hotplug works out of the box.

SOFTWARE/OS VERSIONS

Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-amd64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

The reason why I hotplug my discrete GPU is to pass it through to a virtual
machine.
Nevertheless, I like to use discrete GPU when it's not passed through to a vm.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to