Skip to contentSkip to conversation

Tonga can't bring up > 1 display since DC enablement

Bug 107066 [email protected] 1 participant 19 messages Jun 28, 2018 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=107066

Bug ID: 107066
Summary: [Regression] Tonga can't bring up > 1 display since DC
enablement
Product: DRI
Version: DRI git
Hardware: Other
OS: All
Status: NEW
Severity: major
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Created attachment 140384
--> https://bugs.freedesktop.org/attachment.cgi?id=140384&action=edit
Aforementioned dmesg

Since DC got enabled for my GPU (R9 380 Tonga from Gigabyte, 22:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] [1002:6939] (rev f1)) I haven't been able to bring up more then a single display at a time. More then one display usually results in at least one display turning on, one other display possibly turning on but only showing purple and another not turning on, or one display works and the other two just don't come up at all. Additionally, my dmesg is filled with spam from amdgpu (see attachment).

I've confirmed this still seems to be present in amdgpu's drm-next-4.19, and it seems to be caused by the fact that none of the dc_states in the function mentioned in the WARN_ON() actually have a stream assigned to them. I'm currently swimming in a sea of bugs though, so any help would be appreciated :).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #140384|text/x-log                  |text/plain
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #3 from Lyude Paul <[email protected]> --- (In reply to Alex Deucher from comment #2)

Quoted 1 line

What display types are you trying to use? Using dongles?

On my home setup (which this was also seen with), nothing special. Just two 1080p DVI displays and one 1080p HDMI display. I've managed to reproduce it at work with a similar setup as well (although there's one passive HDMI-DVI adaptor in the mix, but I'd be surprised if that made a difference). It only ever seems to happen with >1 display though

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #4 from Lyude Paul <[email protected]> ---
Still looking into this and have made a tiny bit of progress. A couple of things to note:

- I've reproduced this with two monitors, but it's far more likely to occur with three. So, just use three
- Whenever the problem happens, it seems that the atomic commit actually fails (specifically, at drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:4651 . I thought this might be another userspace issue like one I fixed with X recently, but I wouldn't expect that to be triggerable through legacy modesetting...) which causes the DC streams to not be created which causes the warning message you saw in the earlier log

don't know much more then that yet, but I'll keep you updated

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #5 from Michel Dänzer <[email protected]> ---
I'm also seeing the splats from drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.c:154 in dce100_set_bandwidth. For me, they happen when the single display connected via DVI is turned off. (I haven't noticed any issues other than the dmesg splats)

These were introduced by commit 308425ff39dc "drm/amd/display: redesign dce/dcn clock voltage update request".

(In reply to Lyude Paul from comment #3)

Quoted 1 line

Just two 1080p DVI displays and one 1080p HDMI display.

The hardware only supports two non-DP displays, so unless one of those involves an active adapter from DP, not sure how that could work.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

[email protected] <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from [email protected] <[email protected]> --- I have just

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #7 from Lyude Paul <[email protected]> --- (In reply to [email protected] from comment #6)

Quoted 1 line

I have just

???

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #8 from Mikita Lipski <[email protected]> --- Created attachment 140625
--> https://bugs.freedesktop.org/attachment.cgi?id=140625&action=edit
Don't share clk source between DP and other connectors

Hi Paul,
sorry for the previous comment that was a part of the message for another bug. Anyways, I was able to reproduce a similar issue as yours with 4 connectors plugged and only 2 would light up.
But in my case it was caused by DP and HDMI sharing the same clock source, but since you're not using DP I wonder, what could have caused an issue for you. I'm attaching 3 experimental patches:
1. 0001-drm-amdgpu-display-Don-t-share-clk-source-between-DP-an.patch This patch should fix the issue for DP connection with Tonga
2.0001-drm-amdgpu-display-update-clk-for-various-HDMI-color.patch
Allows programming of HDMI2.0 and later on Tonga
3. 0001-Disable-source-clock-sharing-between-multiple-connec.patch Disable clock sharing by an early return

Can you try if any of them work for you?
Thanks

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #9 from Mikita Lipski <[email protected]> --- Created attachment 140626
--> https://bugs.freedesktop.org/attachment.cgi?id=140626&action=edit
Update pix clk for HDMI connector with deep color

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #10 from Mikita Lipski <[email protected]> --- Created attachment 140627
--> https://bugs.freedesktop.org/attachment.cgi?id=140627&action=edit
Disable clock source sharing

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #11 from Lyude Paul <[email protected]> --- (In reply to Mikita Lipski from comment #10)

Quoted 2 lines

Created attachment 140627 [details] [review]
Disable clock source sharing

Firing up an RPM build now, will have the results in a little bit

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author Tested-by Lyude Paul
#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #12 from Lyude Paul <[email protected]> --- Created attachment 140629
--> https://bugs.freedesktop.org/attachment.cgi?id=140629&action=edit
dmesg after fix

So the patch actually works, hooray! There are some pretty annoying dmesg warnings leftover though, I've linked to them in my dmesg

For the other patches:

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #13 from Mikita Lipski <[email protected]> --- Which patch did you try? Or did you apply all of them?

Warnings: hmm, haven't seen those before, seems like something new got exposed. Will look into them more in depth.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #14 from Lyude Paul <[email protected]> --- (In reply to Mikita Lipski from comment #13)

Quoted 4 lines

Which patch did you try? Or did you apply all of them?

Warnings: hmm, haven't seen those before, seems like something new got exposed. Will look into them more in depth.

I applied all of them, yeah

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #15 from Mikita Lipski <[email protected]> --- Could you try building without the last patch if possible:
0001-Disable-source-clock-sharing-between-multiple-connec.patch .

Thanks

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

--- Comment #16 from Lyude Paul <[email protected]> --- (In reply to Mikita Lipski from comment #15)

Quoted 4 lines

Could you try building without the last patch if possible:
0001-Disable-source-clock-sharing-between-multiple-connec.patch .

Thanks

Nope, doesn't get rid of the warning :(, just makes the screens stop coming back up

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107066

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #17 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/432.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel