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?
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
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.
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
(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.
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>
(In reply to Alice Ferrazzi from comment #5) > This is fixed in 5.11.3 > 5.11.3 or 12.0.0
(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