Bug 110993 - GP107GLM [Quadro P1000 Mobile]: frequent failure to initialize displays on Thunderbolt dock
Summary: GP107GLM [Quadro P1000 Mobile]: frequent failure to initialize displays on Th...
Status: NEW
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-25 10:51 UTC by Markus Wanner
Modified: 2019-06-25 12:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
test run 1 - annotated kern.log (521.29 KB, application/gzip)
2019-06-25 11:45 UTC, Markus Wanner
no flags Details
test run 2 - annotated kern.log (970.20 KB, application/gzip)
2019-06-25 12:26 UTC, Markus Wanner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Wanner 2019-06-25 10:51:11 UTC
When connecting to the Thunderbolt 3 Dock, the monitors attached to it more often remain black rather than showing a proper image.  Sometimes the Laptop freezes entirely, other times just one of the two comes up, most of the time, they remain black and eventually enter standby.

I'm using a Lenovo P1 featuring a Quadro P1000 Mobile GPU.  An integrated GPU is wired to the internal display as eDP-1.  The Nvidia card exposes an HDMI port on the laptop.  Plugging a monitor there directly usually works.  Vie the docking station, I get another 3 ports controlled by the Nvidia GPU.  These are either HDMI or DisplayPort.  I have two monitors for experimentation, a Dell one and a Lenovo one.

I'm running a Linux 5.2-rc5 kernel and the nouveau driver compiled from a current checkout of the git repo of Ben Skeggs (https://github.com/skeggsb/nouveau/tree/f91e915b6a12c281aed4401a869881f293b72d4e).  Most of the time, I'm running with the runpm_fixes of Karol Herbst (that is the last five revisions from https://github.com/karolherbst/nouveau/tree/runpm_fixes).

The output of `grep . /sys/class/drm/card*-*/status` after a start w/o the dock or any display attached is:

/sys/class/drm/card0-eDP-1/status:connected
/sys/class/drm/card1-DP-1/status:disconnected
/sys/class/drm/card1-DP-2/status:disconnected
/sys/class/drm/card1-HDMI-A-1/status:connected
/sys/class/drm/card1-eDP-2/status:disconnected

I'll provide further details of what I did together with the corresponding kernel logs with tracing enabled in follow-up comments and attachments.
Comment 1 Markus Wanner 2019-06-25 11:45:51 UTC
Created attachment 144633 [details]
test run 1 - annotated kern.log

Starting condition: dock already attached, but no monitors plugged into the dock or the laptop.  Using nouveau without runpm_fixes.

The attached log is collected from /var/log/kern.log via ssh, so as to preserve most of the data even in case of a crash.  I annotated it with actions performed and observations made at the following points in time:

Jun 21 10:32:37 calaton kernel: [   71.352739]: login
Jun 21 10:33:30 calaton kernel: [  124.428250]: plug in HDMI cable into laptop directly

Observation after a couple of seconds: works, proper image shown on the Lenovo display.  The grep command yields:

/sys/class/drm/card0-eDP-1/status:connected
/sys/class/drm/card1-DP-1/status:disconnected
/sys/class/drm/card1-DP-2/status:disconnected
/sys/class/drm/card1-HDMI-A-1/status:connected
/sys/class/drm/card1-eDP-2/status:disconnected

Jun 21 10:34:59 calaton kernel: [  213.433544]: pull out HDMI cable - all fine
Jun 21 10:35:45 calaton kernel: [  259.672821]: plug HDMI cable into dock - not recognized, display lights up, but goes back into standby
Jun 21 10:36:57 calaton kernel: [  331.284818]: plug Dell (DP) into dock - not recognized, display lights up, but goes back into standby
Jun 21 10:37:22 calaton kernel: [  356.470787]: pull HDMI cable out of dock - no change, display lights up, but goes back into standby
Jun 21 10:38:42 calaton kernel: [  436.169622]: plug HDMI cable into laptop - recognized
Jun 21 10:39:00 calaton kernel: [  453.731368]: unplug the Dock - no change, Levovo on HDMI and internal display remain active.
Jun 21 10:40:10 calaton kernel: [  524.314909]: re-plug the Dock - Dell not recognized
Jun 21 10:41:10 calaton kernel: [  584.005627]: pull HDMI cable from the laptop
Jun 21 10:41:31 calaton kernel: [  604.833610]: plug HDMI cable into dock - neither Dell nor Lenovo recognized
Jun 21 10:42:32 calaton kernel: [  665.790854]: pull the Dock
Jun 21 10:42:47 calaton kernel: [  681.020228]: plug the Dock again
Jun 21 10:44:05 calaton kernel: [  759.618299]: crash, laptop fully unresponsive to keyboard, mouse or network inputs
Comment 2 Markus Wanner 2019-06-25 12:26:26 UTC
Created attachment 144634 [details]
test run 2 - annotated kern.log

For the second run, I re-enabled the runpm_fixes and tried to perform the exact same steps as during run 1 to check if that makes a difference.  Same starting conditions otherwise: dock already attached, but no monitors plugged into the dock or the laptop.

Jun 21 10:49:13 calaton kernel: [  199.796511]: login
Jun 21 10:49:47 calaton kernel: [  234.186963]: plug HDMI into laptop directly, works
Jun 21 10:50:00 calaton kernel: [  246.472930]: pull HDMI cable from laptop
Jun 21 10:51:34 calaton kernel: [  341.384332]: plug HDMI cable into dock - not recognized, display lights up, but goes back into standby
Jun 21 10:52:20 calaton kernel: [  386.757948]: plug DP into dock - not recognized, display lights up, but goes back into standby
Jun 21 10:52:57 calaton kernel: [  424.339095]: pull HDMI cable out of dock - no change, display lights up, but goes back into standby
Jun 21 10:53:36 calaton kernel: [  462.525517]: plug HDMI cable into laptop - recognized
Jun 21 10:53:51 calaton kernel: [  477.800605]: unplug the Dock - no change, Levovo on HDMI and internal display remain active.
Jun 21 10:54:51 calaton kernel: [  537.523191]: re-plug the Dock - Dell not recognized
Jun 21 10:55:16 calaton kernel: [  562.760425]: pull the HDMI cable
Jun 21 10:55:57 calaton kernel: [  604.330288]: plug HDMI cable into dock - neither Dell nor Lenovo recognized
Jun 21 10:56:40 calaton kernel: [  647.138495]: pull the dock
Jun 21 10:56:55 calaton kernel: [  662.366295]: plug the Dock again
Jun 21 10:58:26 calaton kernel: [  752.986238]: pull the dock
Jun 21 10:58:41 calaton kernel: [  768.201244]: plug the Dock again
Jun 21 10:59:53 calaton kernel: [  840.353587]: pull the dock, pull the HDMI from the dock
Jun 21 11:00:08 calaton kernel: [  855.417667]: plug the dock (with only the DP display attached)
Jun 21 11:01:48 calaton kernel: [  955.154927]: pull the dock
Jun 21 11:02:03 calaton kernel: [  970.227148]: re-plug the dock (with only the HDMI display attached)
Jun 21 11:03:14 calaton kernel: [ 1040.747229]: pull the dock, pull the HDMI from the dock, re-attach DP to the dock
Jun 21 11:03:29 calaton kernel: [ 1055.830960]: attach HDMI to laptop - recognized properly

/sys/class/drm/card0-eDP-1/status:connected
/sys/class/drm/card1-DP-1/status:disconnected
/sys/class/drm/card1-DP-2/status:disconnected
/sys/class/drm/card1-HDMI-A-1/status:connected
/sys/class/drm/card1-eDP-2/status:disconnected

Jun 21 11:05:00 calaton kernel: [ 1146.466630]: re-plug the dock (with HDMI already attached, DP on dock)
Jun 21 11:06:28 calaton kernel: [ 1234.650085]: unplug the DP from the dock
Jun 21 11:07:00 calaton kernel: [ 1266.460845]: re-plug the DP to the dock
Jun 21 11:07:30 calaton kernel: [ 1297.127079]: unplug the dock from the laptop

Again, the attached log is annotated with actions and observations.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.