Bug 1212484

Summary: radeon/amdgpu: Brief screen corruption on resume after Leap 15.5 update
Product: [openSUSE] openSUSE Distribution Reporter: Luigi Baldoni <aloisio>
Component: KernelAssignee: openSUSE Kernel Bugs <kernel-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aloisio, patrik.jakobsson, tiwai, tzimmermann
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screen corruption wayland session on resume
lenovo ideapad inxi gpu output

Description Luigi Baldoni 2023-06-18 14:48:45 UTC
Created attachment 867660 [details]
screen corruption wayland session on resume

After updating to Leap 15.5, I see screen corruption on my laptop after resuming from disk.

Sometimes it's the desktop screen that's shown slightly before sddm kicks in, but it's quite regular. Using wayland session, see attachments for details.
Comment 1 Luigi Baldoni 2023-06-18 14:49:40 UTC
Created attachment 867661 [details]
lenovo ideapad inxi gpu output
Comment 2 Stefan Dirsch 2023-06-19 11:38:11 UTC
Hmm. Looks like a regression in radeon/amdgpu kernel driver.
Comment 3 Takashi Iwai 2023-06-19 12:39:41 UTC
Could you check the behavior with the latest kernel in OBS Kernel:stable:Backport repo?  Just to verify whether it's seen in the recent upstream, too.

Also, does it happen only at resume from hibernation (S4)?  That is, suspend-to-memory (S3 or S2idle) works as expected?
Comment 4 Luigi Baldoni 2023-06-19 17:10:13 UTC
> does it happen only at resume from hibernation (S4)?  That is, suspend-to-memory (S3 or S2idle) works as expected?

Invoking from the GUI, "suspend" doesn't appear to cause any problem, whereas "hibernate" has the problem. By the way, the corrupted screen is also shown briefly before hibernating and not just when resuming from it.

> Could you check the behavior with the latest kernel in OBS Kernel:stable:Backport repo?  Just to verify whether it's seen in the recent upstream, too.

6.3.8-lp154.5.1.ge044c8e appears to make things worse: now the screen corruption appears even with "suspend".
Comment 5 Luigi Baldoni 2023-06-21 04:59:13 UTC
Addendum: I wasn't able to reproduce the defect with X11.
Comment 6 Takashi Iwai 2023-06-26 12:24:36 UTC
(In reply to Luigi Baldoni from comment #4)
> > Could you check the behavior with the latest kernel in OBS Kernel:stable:Backport repo?  Just to verify whether it's seen in the recent upstream, too.
> 
> 6.3.8-lp154.5.1.ge044c8e appears to make things worse: now the screen
> corruption appears even with "suspend".

Then this should be reported and fixed in the upstream side at first.
Care to report it to the upstream tracker, gitlab.freedesktop.org Issues?
Comment 7 Luigi Baldoni 2023-06-26 17:01:00 UTC
> Then this should be reported and fixed in the upstream side at first.
> Care to report it to the upstream tracker, gitlab.freedesktop.org Issues?

Done. https://gitlab.freedesktop.org/drm/amd/-/issues/2656
Comment 8 Luigi Baldoni 2023-07-07 12:20:38 UTC
I haven't seen the problem in a few days, was there some recent wayland/kernel update that might have addressed it?
Comment 9 Takashi Iwai 2023-07-07 12:23:37 UTC
I don't know which component might have fixed.  Could you check with booting an older Leap 15.5 kernel?
Comment 10 Takashi Iwai 2023-07-07 12:24:39 UTC
... or it's a difference of 6.3.x vs 6.4?  It depends which kernel you used before...
Comment 11 Luigi Baldoni 2023-07-08 08:07:53 UTC
It came back after a cold boot. I'm using the only kernel released for 15.5 so far.
The problem is apparently intermittent on 5.14.21-150500.53 and consistently present on 6.3.8, 6.4.0 and 6.4.1.
Comment 12 Takashi Iwai 2023-07-10 07:44:21 UTC
Please update the info on the upstream bug tracker, too.

About the old kernels: you can find some old kernels in my OBS repos, e.g. home:tiwai:kernel:6.0, home:tiwai:kernel:6.1, etc.
There is "backport" repo in each project, and that's for Leap installation (while "standard" is for TW).
Comment 13 Luigi Baldoni 2023-07-11 06:32:05 UTC
> Please update the info on the upstream bug tracker, too.

Done