Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773385 - sys-kernel/gentoo-sources-5.11.2 crash upon disconnect HDMI monitor AMDGPU
Summary: sys-kernel/gentoo-sources-5.11.2 crash upon disconnect HDMI monitor AMDGPU
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-28 10:33 UTC by Stefan de Konink
Modified: 2021-03-05 08:38 UTC (History)
5 users (show)

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


Attachments
dmesg (amdgpu-flip_done.txt,65.29 KB, text/plain)
2021-02-28 11:40 UTC, Stefan de Konink
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan de Konink 2021-02-28 10:33:41 UTC
When recently upgrading to sys-kernel/gentoo-sources-5.11.2 disconnecting the HDMI cable within Xorg crashes the entire system. Alt-SysRq-c does result into a console anymore. Interestingly the mouse keeps on moving, but networking does not work this makes debugging problematic. Any suggestion to provide a kernel trace?
Comment 1 Stefan de Konink 2021-02-28 11:40:18 UTC
Created attachment 688719 [details]
dmesg

While WiFi does not work anymore, the wired connection did. What happens in dmesg after disconnect.

drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:70:crtc-1] flip_done timed out
[drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:70:crtc-1] flip_done timed out
[drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:50:plane-2] flip_done timed out
Comment 2 simon 2021-03-03 14:28:43 UTC
Maybe related observation on my side. I use a simple kvm-switch (ATEN Technology CS782DP) which basically disconnects & reconnects (usb+dp)
When system is idle it screen goes to sleep (powersave) and does not wake up on switching back and moving the mouse.

I try to reproduce and login from remote to provide dmesg as well.
Comment 3 Cănărău Constantin 2021-03-03 21:15:02 UTC
This patch revert solved the issue for me. I am also using an Aten HDMI switch.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=efc8278eecfd5e6fa36c5d41e71d038f534fe107
Comment 4 Stefan de Konink 2021-03-04 12:48:51 UTC
(In reply to Cănărău Constantin from comment #3)
> This patch revert solved the issue for me. I am also using an Aten HDMI
> switch.
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/
> ?id=efc8278eecfd5e6fa36c5d41e71d038f534fe107

Fixed it for me too.
Comment 5 Arisu Tachibana Gentoo Infrastructure gentoo-dev 2021-03-04 13:29:52 UTC
This is fixed in 5.11.3

commit 1bac3a746956773a94cfdfb6e15d9e064ad97b39
Author: Anson Jacob <Anson.Jacob@amd.com>
Date:   Thu Feb 18 19:42:57 2021 -0500

    Revert "drm/amd/display: reuse current context instead of recreating one"
    
    commit efc8278eecfd5e6fa36c5d41e71d038f534fe107 upstream.
    
    This reverts commit 8866a67ab86cc0812e65c04f1ef02bcc41e24d68.
    
    Reason for revert: This breaks hotplug of HDMI on some systems,
    resulting in a blank screen. Caused general hangs on boot/hotplugs.
    
    Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1487
    Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1492
    Bug: https://bugzilla.kernel.org/show_bug.cgi?id=211649
    Signed-off-by: Anson Jacob <Anson.Jacob@amd.com>
    Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@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>
Comment 6 Kamen Dokov 2021-03-05 07:19:53 UTC
(In reply to Alice Ferrazzi from comment #5)
> This is fixed in 5.11.3
> 

5.11.3 or 12.0.0
Comment 7 Arisu Tachibana Gentoo Infrastructure gentoo-dev 2021-03-05 08:38:01 UTC
(In reply to Kamen Dokov from comment #6)
> (In reply to Alice Ferrazzi from comment #5)
> > This is fixed in 5.11.3
> > 
> 
> 5.11.3 or 12.0.0

thanks