Bug 482681

Summary: Kwin wayland: System freezes when waking up from hibernation, AMD
Product: [Plasma] kwin Reporter: Ondrej Malek <o.malek.cz>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kwin_wayland_crash_on_wake_from_hibernate_journalctl_err
amd reset failed
plasma crash

Description Ondrej Malek 2024-03-07 10:07:42 UTC
Created attachment 166557 [details]
kwin_wayland_crash_on_wake_from_hibernate_journalctl_err

SUMMARY

see attached log, happens everytime

STEPS TO REPRODUCE
1. Hibernate
2. Wake from hibernation

OBSERVED RESULT
black screen with "_"

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240305
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.5.9-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600U with Radeon Graphics
Memory: 38,0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20X70042CK
System Version: ThinkPad L15 Gen 2a

ADDITIONAL INFORMATION
Comment 1 Ondrej Malek 2024-03-07 10:11:50 UTC
Created attachment 166559 [details]
amd reset failed
Comment 2 Nate Graham 2024-03-07 19:52:58 UTC
Possibly a driver bug, but can you upgrade to Plasma 6 and see if it's still happening there?
Comment 3 Ondrej Malek 2024-03-08 11:00:09 UTC
(In reply to Nate Graham from comment #2)
> Possibly a driver bug, but can you upgrade to Plasma 6 and see if it's still
> happening there?

I'll Let you know after Plasma 6 gets to Thumbleweed. Thx
Comment 4 Ondrej Malek 2024-03-21 11:59:56 UTC
Still testing but so far 1 failed and 2 successful wakeups.  

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240319
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 5 Bug Janitor Service 2024-04-05 03:47:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Ondrej Malek 2024-04-06 19:56:31 UTC
Created attachment 168230 [details]
plasma crash
Comment 7 Ondrej Malek 2024-04-06 19:57:39 UTC
Still persist. Hibernation works on X11.

SYSTEM:
Operating System: openSUSE Tumbleweed 20240403
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.6.3-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600U with Radeon Graphics
Memory: 38,0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20X70042CK
System Version: ThinkPad L15 Gen 2a
Comment 8 Zamundaaa 2024-04-06 22:52:15 UTC
When the graphics driver does a GPU reset and fails at it, that's a kernel bug. Please report it at https://gitlab.freedesktop.org/drm/amd/-/issues

plasmashell specifically not surviving the GPU reset will be fixed in a future version of Qt
Comment 9 Ondrej Malek 2024-04-08 10:01:24 UTC
Indeed it seems to be the case. It just started working with kernel 6.8.2. 
Thx for message
Comment 10 Ondrej Malek 2024-04-09 09:18:10 UTC
created issue at: https://gitlab.freedesktop.org/drm/amd/-/issues/3317