Displayport on thunderbolt dock is down although X thinks it is up
Hello,
the thunderbolt maintainers told me that the following question should be directed to the gfx people:
I use a dell precision 7740 notebook with amd polaris 12 graphics. The notebook is connected or hotplugged to a noname thunderbolt dock with displayport or hdmi monitors connected to the dock.
With gentoo, amdgpu kernel driver and modesetting X driver, I've the following problem:
In almost all cases when warm booting (without powerdown), and in at least half of the attempts when hotplugging the tb dock, and whenever changing resolution or monitor configuration
or switching from text mode to Xwindows or back, displayport fails in X:
Xwindows thinks that a monitor is connected and dp is active and working, but in most cases no signal at all arrives at the monitor (the monitor remains in sleep state because of no active input), or in rare cases, the monitor wakes up, but shows a black screen.
Hotplugging the dock is recognized (I configured my system to turn off the laptop display when an external monitor is present): When I unplug and replug the dock, the internal display goes on and off, reliably. But the external display does not display anything...
In the kernel log I get
Oct 17 08:51:31 lap kernel: [drm:amdgpu_atombios_dp_link_train] *ERROR* clock recovery tried 5 times Oct 17 08:51:31 lap kernel: [drm:amdgpu_atombios_dp_link_train] *ERROR* clock recovery failed
but as far as I can tell nothing else.
In many cases, "xset dpms force off ; sleep 2 ; xset dpms force on" brings the display back to live. If not, powercycling the display or unplugging and replugging its displayport cable sometimes helps. After cold booting (after powering notebook, dock and display off & on), the situation is worse:
"xset dpms force off ; sleep 2 ; xset dpms force on" almost never helps.
With amdgpu kernel driver and amdgpu Xwindow driver instead of modesetting, the situation is much worse: I never managed to get anything displayed on the external monitor, no matter what tricks I apply, although the monitor works in text mode before starting X.
My wild guess, without knowing anything about the internals:
X does not realize that the tunnelled displyport link is actually completely down after mode switches etc.. It just tries to resync instead of shutting the link down and completely re-initializing it. Only a dpms off/on or a monitor off/on forces a complete link reinit.
With ubuntu (dell preinstalled, amdgpu+amdgpu), hotplugging the dock or warm booting (without powerdown) with the dock connected usually works fine.
Cold booting (after powerdown) also fails as above.
I was unable to locate any significant difference in the kernel config between my gentoo and ubuntu. However, ubuntu installs tons of udev rules, also for drm and the graphic card (I don't have any such rules in gentoo). Hence, I suspect that their kernel has the same problem,
but the problem is worked around by udev actions.
Questions:
* Best place to ask for this problem?
* Any hints about that problem?
* Why does amdgpu+modesetting behave much better than amdgpu+amdgpu?
* Any udev rules known or needed for displayport over hotplug thunderbolt, or to fix the problem?
Many thanks!
Signature · 9 lines
Prof. Dr. Klaus Kusche Private address: Rosenberg 41, 07546 Gera, Germany +49 365 20413058 [email protected] https://www.computerix.info Office address: DHGE Gera, Weg der Freundschaft 4, 07546 Gera, Germany +49 365 4341 306 [email protected] https://www.dhge.de _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[bug report]: Black screen in 5.10
In reply to a message not in the archiveHello,
I don't know where and how to report amdgpu bugs
as the freedesktop.org bugzilla is closed...
My problem:
With kernel 5.10.x, both the internal notebook display and any external screen become black (or go to the "off" state?) when the kernel boots (one or two seconds after the VGA text console is shown),
and the system no longer reacts.
5.9.x is fine.
This seems to happen as soon as the amdgpu kernel driver loads/initializes, even in pure text mode (VGA console or framebuffer), without starting X.
Dell Precision notebook with
AMD Radeon (TM) Pro WX 3200 Series (POLARIS12, DRM 3.39.0, 5.9.15-gentoo, LLVM 11.0.0) (0x6981)
Tried all combinations of DC/non-DC, FB/non-FB kernel configurations (even happens when configuring Amdgpu without framebuffer!).
Many thanks for any help!
Signature · 9 lines
Prof. Dr. Klaus Kusche Private address: Rosenberg 41, 07546 Gera, Germany +49 365 20413058 [email protected] https://www.computerix.info Office address: DHGE Gera, Weg der Freundschaft 4, 07546 Gera, Germany +49 365 4341 306 [email protected] https://www.dhge.de _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [bug report]: Black screen in 5.10
Quoted 6 lines · Klaus Kusche
Hello,
I don't know where and how to report amdgpu bugs
as the freedesktop.org bugzilla is closed...
https://gitlab.freedesktop.org/drm/amd/-/issues
Quoted 10 lines
My problem:
With kernel 5.10.x, both the internal notebook display and any external screen become black (or go to the "off" state?) when the kernel boots (one or two seconds after the VGA text console is shown),
and the system no longer reacts.5.9.x is fine.
Quoted 8 lines
This seems to happen as soon as the amdgpu kernel driver loads/initializes, even in pure text mode (VGA console or framebuffer), without starting X.
Dell Precision notebook with
AMD Radeon (TM) Pro WX 3200 Series (POLARIS12, DRM 3.39.0, 5.9.15-gentoo, LLVM 11.0.0) (0x6981)Tried all combinations of DC/non-DC, FB/non-FB kernel configurations (even happens when configuring Amdgpu without framebuffer!).
I think this may be the same issue as:
https://patchwork.freedesktop.org/patch/408230/
Does the patch there help? It's already on it's way upstream.
Alex
Quoted 13 lines
Many thanks for any help!
--
Prof. Dr. Klaus Kusche
Private address: Rosenberg 41, 07546 Gera, Germany
+49 365 20413058 [email protected] https://www.computerix.info
Office address: DHGE Gera, Weg der Freundschaft 4, 07546 Gera, Germany +49 365 4341 306 [email protected] https://www.dhge.de
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [bug report]: Black screen in 5.10
Hello,
Quoted 15 lines · Alex Deucher
Quoted 13 lines · Klaus Kusche
With kernel 5.10.x, both the internal notebook display and any external screen become black (or go to the "off" state?) when the kernel boots (one or two seconds after the VGA text console is shown),
and the system no longer reacts.5.9.x is fine.
This seems to happen as soon as the amdgpu kernel driver loads/initializes, even in pure text mode (VGA console or framebuffer), without starting X.
Dell Precision notebook with
AMD Radeon (TM) Pro WX 3200 Series (POLARIS12, DRM 3.39.0, 5.9.15-gentoo, LLVM 11.0.0) (0x6981)
Quoted 6 lines
Quoted 2 lines
Tried all combinations of DC/non-DC, FB/non-FB kernel configurations (even happens when configuring Amdgpu without framebuffer!).
I think this may be the same issue as:
https://patchwork.freedesktop.org/patch/408230/
Does the patch there help? It's already on it's way upstream.
The patch fixes it. 5.10.1 works fine for me now.
Will 5.10.2 contain the patch or shall I skip 5.10.2 ?
Signature · 9 lines
Prof. Dr. Klaus Kusche Private address: Rosenberg 41, 07546 Gera, Germany +49 365 20413058 [email protected] https://www.computerix.info Office address: DHGE Gera, Weg der Freundschaft 4, 07546 Gera, Germany +49 365 4341 306 [email protected] https://www.dhge.de _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [bug report]: Black screen in 5.10
Quoted 23 lines · Klaus Kusche
Hello,
Quoted 18 lines · Alex Deucher
Quoted 15 lines · Klaus Kusche
With kernel 5.10.x, both the internal notebook display and any external screen become black (or go to the "off" state?) when the kernel boots (one or two seconds after the VGA text console is shown),
and the system no longer reacts.5.9.x is fine.
This seems to happen as soon as the amdgpu kernel driver loads/initializes, even in pure text mode (VGA console or framebuffer), without starting X.
Dell Precision notebook with
AMD Radeon (TM) Pro WX 3200 Series (POLARIS12, DRM 3.39.0, 5.9.15-gentoo, LLVM 11.0.0) (0x6981)Tried all combinations of DC/non-DC, FB/non-FB kernel configurations (even happens when configuring Amdgpu without framebuffer!).
Quoted 6 lines
Quoted 3 lines
I think this may be the same issue as:
https://patchwork.freedesktop.org/patch/408230/
Does the patch there help? It's already on it's way upstream.The patch fixes it. 5.10.1 works fine for me now.
Will 5.10.2 contain the patch or shall I skip 5.10.2 ?
Not sure. Depends how soon the patch makes it into stable. If not .2, then hopefully .3.
Alex
Quoted 7 lines
--
Prof. Dr. Klaus Kusche
Private address: Rosenberg 41, 07546 Gera, Germany
+49 365 20413058 [email protected] https://www.computerix.info
Office address: DHGE Gera, Weg der Freundschaft 4, 07546 Gera, Germany +49 365 4341 306 [email protected] https://www.dhge.de
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx