Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801970 - sys-kernel/gentoo-sources-5.13.* with AMDGPU graphics. Display not waking from idle
Summary: sys-kernel/gentoo-sources-5.13.* with AMDGPU graphics. Display not waking fro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-13 04:56 UTC by darkaudit
Modified: 2021-08-09 12:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description darkaudit 2021-07-13 04:56:16 UTC
On laptop running AMD R6 graphics, the display is not properly waking up from blanking. Backlight lights, and the system still runs, just with no display.

Upgraded from the 5.12.* series per Gentoo Wiki procedures. Copied the previous .config and ran make olddefconfig prior to compiling.

Reverting to the latest 5.12.* kernel has no display issue.

Another system in the household with Intel graphics is running the 5.13.* kernel with no such display issues.
Comment 1 Nils Freydank 2021-07-26 12:03:40 UTC
Hi,

your bug might be related to mine: https://bugzilla.kernel.org/show_bug.cgi?id=213859

In my case I see 'graphical noise' and rainbows directly after the LUKS drive is unlocked and 5.12 runs fine.
Comment 2 Nils Freydank 2021-07-26 18:30:06 UTC
My bug is fixed in 5.14.0-rc3 (maybe even in rc1). If you'd like you can try that one as a vanilla kernel or with the patches from genpatches/gentoo-sources manually applied by you — or simply wait a few weeks until 5.14 is released hoping that EOL-5.12 has no open security bugs in the mean time :-]
Comment 3 darkaudit 2021-08-04 12:33:11 UTC
Confirmed running a 5.14 kernel fixes this. 

Emerged git-sources-5.14.rc4. Eselected the new kernel.

Copied over .config from 5.12.19 kernel.

Ran make olddefconfig.

Ran make && make modules install.

Installed new kernel. Told grub where to find it.

Rebooted to new kernel and logged into XFCE session. Now we wait.

Screen blanks. Backlight shuts off. I move mouse, and screen reappears as intended.
Comment 4 dinoallo 2021-08-05 18:45:19 UTC
This issue was confirmed on my laptop, which is Lenovo Thinkpad T14 AMD running 5.13-* kernel from sys-kernel/gentoo-sources. 

This machine hadn't had any problem running previous kernels until I upgraded the kernel to 5.13-*.

After switching to 5.14-rc4, my desktop session could finally be restored(suspend functions also worked).
Comment 5 Nils Freydank 2021-08-08 10:53:31 UTC
Hi,
please test with gentoo-sources 5.13.9 when it is bumped in the tree. According to the upstream changelog[1] there is a patch which should fix the graphical noise (or "garbage storm"[2]) as well as displays staying blank:

> commit fad0494f626f1a6b2ea76cd7c6d137d1b4961636
> Author: Stylon Wang <stylon.wang@amd.com>
> Date:   Wed Jul 21 12:25:24 2021 +0800
>   
>    drm/amd/display: Fix ASSR regression on embedded panels
>    
>    commit 6be50f5d83adc9541de3d5be26e968182b5ac150 upstream.
>    
>    [Why]
>    Regression found in some embedded panels traces back to the earliest
>    upstreamed ASSR patch. The changed code flow are causing problems
>    with some panels.
>    
>    [How]
>    - Change ASSR enabling code while preserving original code flow
>      as much as possible
>    - Simplify the code on guarding with internal display flag
>    
>    Bug: https://bugzilla.kernel.org/show_bug.cgi?id=213779
>    Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1620
>    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
>    Signed-off-by: Stylon Wang <stylon.wang@amd.com>
>    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
>    Cc: stable@vger.kernel.org
>   Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


[1] https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.13.9
[2] https://gitlab.freedesktop.org/drm/amd/-/issues/1625 via https://gitlab.freedesktop.org/drm/amd/-/issues/1620
Comment 6 Nils Freydank 2021-08-08 14:44:23 UTC
It works now with 5.13.9 sources from kernel.org plus manually applied genpatches on my machine.
Comment 7 darkaudit 2021-08-09 00:37:35 UTC
(In reply to Nils Freydank from comment #5)
> Hi,
> please test with gentoo-sources 5.13.9 when it is bumped in the tree.
> According to the upstream changelog[1] there is a patch which should fix the
> graphical noise (or "garbage storm"[2]) as well as displays staying blank:
> 
> > commit fad0494f626f1a6b2ea76cd7c6d137d1b4961636
> > Author: Stylon Wang <stylon.wang@amd.com>
> > Date:   Wed Jul 21 12:25:24 2021 +0800
> >   
> >    drm/amd/display: Fix ASSR regression on embedded panels
> >    
> >    commit 6be50f5d83adc9541de3d5be26e968182b5ac150 upstream.
> >    
> >    [Why]
> >    Regression found in some embedded panels traces back to the earliest
> >    upstreamed ASSR patch. The changed code flow are causing problems
> >    with some panels.
> >    
> >    [How]
> >    - Change ASSR enabling code while preserving original code flow
> >      as much as possible
> >    - Simplify the code on guarding with internal display flag
> >    
> >    Bug: https://bugzilla.kernel.org/show_bug.cgi?id=213779
> >    Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1620
> >    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> >    Signed-off-by: Stylon Wang <stylon.wang@amd.com>
> >    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> >    Cc: stable@vger.kernel.org
> >   Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> 
> 
> [1] https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.13.9
> [2] https://gitlab.freedesktop.org/drm/amd/-/issues/1625 via
> https://gitlab.freedesktop.org/drm/amd/-/issues/1620

Emerged. Compiled. Tested. Issue now resolved.
Comment 8 Mike Pagano gentoo-dev 2021-08-09 12:43:58 UTC
(In reply to darkaudit from comment #7)
> (In reply to Nils Freydank from comment #5)
> > Hi,
> > please test with gentoo-sources 5.13.9 when it is bumped in the tree.
> > According to the upstream changelog[1] there is a patch which should fix the
> > graphical noise (or "garbage storm"[2]) as well as displays staying blank:
> > 
> > > commit fad0494f626f1a6b2ea76cd7c6d137d1b4961636
> > > Author: Stylon Wang <stylon.wang@amd.com>
> > > Date:   Wed Jul 21 12:25:24 2021 +0800
> > >   
> > >    drm/amd/display: Fix ASSR regression on embedded panels
> > >    
> > >    commit 6be50f5d83adc9541de3d5be26e968182b5ac150 upstream.
> > >    
> > >    [Why]
> > >    Regression found in some embedded panels traces back to the earliest
> > >    upstreamed ASSR patch. The changed code flow are causing problems
> > >    with some panels.
> > >    
> > >    [How]
> > >    - Change ASSR enabling code while preserving original code flow
> > >      as much as possible
> > >    - Simplify the code on guarding with internal display flag
> > >    
> > >    Bug: https://bugzilla.kernel.org/show_bug.cgi?id=213779
> > >    Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1620
> > >    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> > >    Signed-off-by: Stylon Wang <stylon.wang@amd.com>
> > >    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> > >    Cc: stable@vger.kernel.org
> > >   Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > 
> > 
> > [1] https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.13.9
> > [2] https://gitlab.freedesktop.org/drm/amd/-/issues/1625 via
> > https://gitlab.freedesktop.org/drm/amd/-/issues/1620
> 
> Emerged. Compiled. Tested. Issue now resolved.

Thanks for testing and reporting.  Closing this one as resolved.