New: Dual monitor with amd 5700 causes system to hang at startup.
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: [email protected]
Reporter: [email protected]
Regression: NoCreated 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.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
https://bugzilla.kernel.org/show_bug.cgi?id=215511
Alex Deucher ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Alex Deucher ([email protected]) --- Can you bisect to see what broke it and/or what fixed it originally?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #2 from Jose Mestre ([email protected]) ---
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.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #3 from Alex Deucher ([email protected]) --- 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
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #4 from Jose Mestre ([email protected]) --- 0f591d17e36e08313b0c440b99b0e57b47e01a9a is the first bad commit commit 0f591d17e36e08313b0c440b99b0e57b47e01a9a
Author: Angus Wang <[email protected]> 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
Note this is a backport of this commit from amdgpu drm-next for 5.16.
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(-)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #5 from Alex Deucher ([email protected]) --- Created attachment 300385
--> https://bugzilla.kernel.org/attachment.cgi?id=300385&action=edit
possible fix
This patch should fix it.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #6 from Jose Mestre ([email protected]) --- Hello, i've tried this patch and it works with 5.15.12#0f591d17e36e08313b0c440b99b0e57b47e01a9a and with 5.17.0-rc2. Kind regards.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
Philipp Riederer ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #7 from Philipp Riederer ([email protected]) --- 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
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #8 from Alex Deucher ([email protected]) --- (In reply to Philipp Riederer from comment #7)
Quoted 9 lines
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
0f591d17e36e08313b0c440b99b0e57b47e01a9aas Jose. The patch (that is already mainlined, if I see that correctly) does not help.
Quoted 5 lines
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.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #9 from Philipp Riederer ([email protected]) --- Certainly. Thank you!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #10 from Alex Deucher ([email protected]) --- Created attachment 303812
--> https://bugzilla.kernel.org/attachment.cgi?id=303812&action=edit
possible fix 1/2
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215511] Dual monitor with amd 5700 causes system to hang at startup.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215511
--- Comment #11 from Alex Deucher ([email protected]) --- Created attachment 303813
--> https://bugzilla.kernel.org/attachment.cgi?id=303813&action=edit
possible fix 2/2
Do the two attached patches fix the issue?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.