Bug 109341

Summary: Plasma Wayland locks up immediately on sign in
Product: Mesa Reporter: etna
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED MOVED QA Contact: Nouveau Project <nouveau>
Severity: major    
Priority: medium CC: etna
Version: 18.0   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: dmesg immediately after lockup
wayland-session.log immediately after the lockup
Attempted a backtrace. Not sure of its usefullness.

Description etna 2019-01-14 03:00:55 UTC
Created attachment 143094 [details]
dmesg immediately after lockup

Hello Nouveau devs:

I'm facing an issue where attempting to sign into a Wayland Plasma session causes the entire GUI to lock up immediately. Under some circumstances, I can still SSH into the unit, but i usually can't do much before even the SSH session locks up as well.

STEPS TO REPRODUCE
1. Boot computer
2. Sign in to Plasma (Wayland) at SDDM

OBSERVED RESULT
Machine instantly locks up. Sometimes, I might be able to SSH in, but dmesg only prints a bunch of Nouveau FIFO engine fault errors 

EXPECTED RESULT
PLasma Wayland session starts normally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Leap 15.0
(available in About System)
KDE Plasma Version: 5.12

ADDITIONAL INFORMATION
I have done the following as well:

- Upgrade the default OpenSUSE kernel to a vanilla 4.18 kernel from kernel.org. Lockup still occurs upon sign in
- Upgrade the default 
- Tested a Wayland session with Gnome successfully
- Upgraded Plasma to 5.14 with the repo recommended by OpenSUSE here and lockup still occurs
- Booted with nouveau.noaccel=1 and Plasma Wayland successfully loads but with terrible performance

This issue was reported to the Plasma bug tracker and they closed it on the grounds that anything which causes a system lockup is operates much lower than the DE and should thus be filed with Nouveau.

Attached dmesg and session logs.
Comment 1 etna 2019-01-14 03:02:04 UTC
Created attachment 143095 [details]
wayland-session.log immediately after the lockup

wayland-session.log immediately after the lockup
Comment 2 etna 2019-01-14 03:02:42 UTC
Created attachment 143096 [details]
Attempted a backtrace. Not sure of its usefullness.

Attempted a backtrace. Not sure of its usefullness.
Comment 3 etna 2019-01-14 03:05:39 UTC
By the way, this happens with the bundled Mesa 18.0.2 and my self-built Mesa 18.0.5.

I cannot use any version of Mesa above 18.0.x due to OpenSUSE's Wayland being too old.
Comment 4 Ilia Mirkin 2019-01-14 03:10:29 UTC
Unfortunately nouveau doesn't do well with concurrent multi-threaded GL usage. The PBDMA errors, I believe, may be indicators of something like that.

I believe plasma added some logic to avoid doing that, at least on top of nouveau (or perhaps that was Qt).

There's also some pending work to improve the multi-threaded situation for nouveau, but that won't do you much good on a year-old version of mesa.
Comment 5 etna 2019-01-15 01:02:39 UTC
Do you mean to say that this issue 'should' not appear on newer releases of Mesa?

Reason being on my current setup Gnome Wayland and Weston are working fine under Mesa 18.0.5. It's just Plasma Wayland causing the lockups.

I also tested running a nested Wayland session in Weston and then starting a Plasma Wayland session in that nested session. No dice; locks up the system as well. :(
Comment 6 Ilia Mirkin 2019-01-15 01:30:32 UTC
(In reply to etna from comment #5)
> Do you mean to say that this issue 'should' not appear on newer releases of
> Mesa?
> 
> Reason being on my current setup Gnome Wayland and Weston are working fine
> under Mesa 18.0.5. It's just Plasma Wayland causing the lockups.
> 
> I also tested running a nested Wayland session in Weston and then starting a
> Plasma Wayland session in that nested session. No dice; locks up the system
> as well. :(

No. I'm saying that there are patches that improve nouveau's handling of multi-threaded GL usage, but they're against latest mesa version, not something older.

Plasma + nouveau have, generally, not played very well together.
Comment 7 etna 2019-01-15 07:32:05 UTC
That's unfortunate. 

As I cannot just up and change my installation, do you have any information on what combination of Mesa + Plasma Wayland is known to successfully work?
Comment 8 GitLab Migration User 2019-09-18 20:47:16 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1166.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.