https://bugzilla.kernel.org/show_bug.cgi?id=215511
Bug ID: 215511 Summary: Dual monitor with amd 5700 causes system to hang at startup. Product: Drivers Version: 2.5 Kernel Version: 5.16.1 Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Video(DRI - non Intel) Assignee: drivers_video-dri@kernel-bugs.osdl.org Reporter: pmestre@gmail.com Regression: No
Created attachment 300294 --> https://bugzilla.kernel.org/attachment.cgi?id=300294&action=edit dual monitor boot crash with amdgpu card.
Hello, system mostly crashes (sometimes in different ways) when i start with more than one monitor attached.
If i switch off one monitor then system boots correctly (i don't need to detach the displayport cable, just to switch off the monitor).
When both monitors are connected, most of the times it just crashes as the attached log, sometimes it boots but screen is flickering and with artifacts.
This happened with kernel 5.10 and 5.11, it was fixed i don't remember exactly when, and is happening again. For me it worked with kernel 5.15.8 and failed with 5.15.13. It is still failing with 5.16.1.
Kind regards and many thanks for your work in the most crucial open-source project.
https://bugzilla.kernel.org/show_bug.cgi?id=215511
Alex Deucher (alexdeucher@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexdeucher@gmail.com
--- Comment #1 from Alex Deucher (alexdeucher@gmail.com) --- Can you bisect to see what broke it and/or what fixed it originally?
https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #2 from Jose Mestre (pmestre@gmail.com) --- Hello. I've been unable to compile a specific kernel commit (i did not have too much time to find the docs about how to do it) and i don't know C.
I've tried releases for archlinux and i can confirm that linux 5.15.12 worked ok, and 5.15.13 was the first release that make kernel crash with the two monitors switched on.
If you can point me how to do it i can bisect, compile and try the kernels.
Kind regards.
https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #3 from Alex Deucher (alexdeucher@gmail.com) --- Here's a howto for doing a bisect: https://www.kernel.org/doc/html/latest/admin-guide/bug-bisect.html Here's a howto for building a kernel: https://kernelnewbies.org/KernelBuild
Basic process: # create a directly to store your git source mkdir kernel # change to that directory cd kernel # clone the stable git tree git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git # copy your distros config to use for your build, replace #whatever with # whatever config your distro is using cp /boot/config-#whatever .config # start bisecting git bisect start # tag 5.15.13 as bad git bisect bad v5.15.13 # tag 5.15.2 as good git bisect good v5.15.12 # build the first kernel to test make clean make make modules_install make install # test the new kernel # if it's good, mark it as good git bisect good # if it's bad, mark it as bad git bisect bad # build the next kernel to test make make modules_install make install # test the new kernel # repeat until the bisect is complete
https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #4 from Jose Mestre (pmestre@gmail.com) --- 0f591d17e36e08313b0c440b99b0e57b47e01a9a is the first bad commit commit 0f591d17e36e08313b0c440b99b0e57b47e01a9a Author: Angus Wang angus.wang@amd.com Date: Thu Dec 9 17:27:01 2021 -0500
drm/amd/display: Changed pipe split policy to allow for multi-display pipe split
commit ee2698cf79cc759a397c61086c758d4cc85938bf upstream.
[WHY] Current implementation of pipe split policy prevents pipe split with multiple displays connected, which caused the MCLK speed to be stuck at max
[HOW] Changed the pipe split policies so that pipe split is allowed for multi-display configurations
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1522 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1709 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1655 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1403
Note this is a backport of this commit from amdgpu drm-next for 5.16.
Tested-by: Daniel Wheeler daniel.wheeler@amd.com Reviewed-by: Aric Cyr Aric.Cyr@amd.com Acked-by: Rodrigo Siqueira Rodrigo.Siqueira@amd.com Signed-off-by: Angus Wang angus.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
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #5 from Alex Deucher (alexdeucher@gmail.com) --- Created attachment 300385 --> https://bugzilla.kernel.org/attachment.cgi?id=300385&action=edit possible fix
This patch should fix it.
https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #6 from Jose Mestre (pmestre@gmail.com) --- Hello, i've tried this patch and it works with 5.15.12#0f591d17e36e08313b0c440b99b0e57b47e01a9a and with 5.17.0-rc2. Kind regards.
https://bugzilla.kernel.org/show_bug.cgi?id=215511
Philipp Riederer (pr_kernel@tum.fail) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pr_kernel@tum.fail
--- Comment #7 from Philipp Riederer (pr_kernel@tum.fail) --- Hi!
My Lenovo T14s (AMD) crashes with a panic (https://imgur.com/a/P6Twvov) when I unplug/replug any monitor. This also happens when waking from DPMS.
I have bisected the issue to the same 0f591d17e36e08313b0c440b99b0e57b47e01a9a as Jose. The patch (that is already mainlined, if I see that correctly) does not help.
I have tried all kernel up to 5.15.24 -- I cannot try 5.16 as I use zfs as root device the and zfs module is not (yet) compatible with 5.16.
Is there anything you would like me to try or should my issue be fixed in 5.16+?
Cheers, Philipp
https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #8 from Alex Deucher (alexdeucher@gmail.com) --- (In reply to Philipp Riederer from comment #7)
Hi!
My Lenovo T14s (AMD) crashes with a panic (https://imgur.com/a/P6Twvov) when I unplug/replug any monitor. This also happens when waking from DPMS.
I have bisected the issue to the same 0f591d17e36e08313b0c440b99b0e57b47e01a9a as Jose. The patch (that is already mainlined, if I see that correctly) does not help.
I have tried all kernel up to 5.15.24 -- I cannot try 5.16 as I use zfs as root device the and zfs module is not (yet) compatible with 5.16.
Is there anything you would like me to try or should my issue be fixed in 5.16+?
Please open a new ticket as this is a different issue.
https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #9 from Philipp Riederer (pr_kernel@tum.fail) --- Certainly. Thank you!
dri-devel@lists.freedesktop.org