[Bug 111250] i915 external monitor not working in usb-c/thunderbolt dock on X1 gen6

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 10 07:43:45 UTC 2019


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

--- Comment #13 from Stanislav Lisovskiy <stanislav.lisovskiy at intel.com> ---
(In reply to tmai from comment #12)
> No, the monitor did not show anything. More precisely, I tried two different
> monitors and two different cables. None worked.

There might be a race condition between fbdev polling the outputs and then
executing probing and usb hub discovery, because what I see in the log is that
we get a hotplug event and start probing, before the usb hub is even completely
discovered:

  2.788336] kernel: [drm:drm_fb_helper_hotplug_event.part.0 [drm_kms_helper]] 

here goes fbdev hotplug event and we start probing:

[    2.788346] kernel: [drm:drm_client_modeset_probe [drm]] 
[    2.788353] kernel: [drm:drm_helper_probe_single_connector_modes
[drm_kms_helper]] [CONNECTOR:86:eDP-1]
[    2.788378] kernel: [drm:intel_dp_detect [i915]] [CONNECTOR:86:eDP-1]
[    2.788434] kernel: [drm:intel_dp_print_rates [i915]] source rates: 162000,
216000, 270000, 324000, 432000, 540000
[    2.788473] kernel: [drm:intel_dp_print_rates [i915]] sink rates: 162000,
270000
[    2.788497] kernel: [drm:intel_dp_print_rates [i915]] common rates: 162000,
270000
[    2.788545] kernel: [drm:intel_dp_detect [i915]] MST support? port A: no,
sink: no, modparam: yes
[    2.789155] kernel: [drm:drm_add_display_info [drm]] non_desktop set to 0
[    2.789168] kernel: [drm:drm_add_edid_modes [drm]] ELD: no CEA Extension
found
[    2.789176] kernel: [drm:drm_add_display_info [drm]] non_desktop set to 0
[    2.789195] kernel: [drm:drm_helper_probe_single_connector_modes
[drm_kms_helper]] [CONNECTOR:86:eDP-1] probed modes :
[    2.789205] kernel: [drm:drm_mode_debug_printmodeline [drm]] Modeline
"1920x1080": 60 141000 1920 1936 1952 2104 1080 1083 1097 1116 0x48 0xa

here we start detecting DP-1, despite usb device discovery hasn't completed yet

[    2.789210] kernel: [drm:drm_helper_probe_single_connector_modes
[drm_kms_helper]] [CONNECTOR:92:DP-1]
[    2.789241] kernel: [drm:intel_dp_detect [i915]] [CONNECTOR:92:DP-1]
[    2.797582] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.805917] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.814248] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.822575] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.830902] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.839228] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.847554] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.855880] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.864206] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.872531] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.880856] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.889183] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff


here USB hub is found to be connected, however we are already trying to
communicate with DP-1:

[    2.889485] kernel: usb 1-3: New USB device found, idVendor=17ef,
idProduct=3074, bcdDevice= 0.00
[    2.889486] kernel: usb 1-3: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[    2.889487] kernel: usb 1-3: Product: USB Billboard
[    2.889488] kernel: usb 1-3: Manufacturer: Cypress Semiconductor
[    2.889488] kernel: usb 1-3: SerialNumber: 11AD1D00B625480C19290B00
[    2.897508] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.905834] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.914159] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.916129] kernel: tsc: Refined TSC clocksource calibration: 1991.999 MHz
[    2.916134] kernel: clocksource: tsc: mask: 0xffffffffffffffff max_cycles:
0x396d4ffc055, max_idle_ns: 881590662783 ns
[    2.916144] kernel: clocksource: Switched to clocksource tsc
[    2.922510] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.930869] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.939228] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.947586] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.955945] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.964303] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.972661] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.981020] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.989379] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    2.997737] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.006096] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.014454] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.016119] kernel: usb 1-4: new high-speed USB device number 4 using
xhci_hcd
[    3.016287] kernel: usb 4-2.2: new SuperSpeedPlus Gen 2 USB device number 3
using xhci_hcd
[    3.022812] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.031171] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.039011] kernel: usb 4-2.2: New USB device found, idVendor=17ef,
idProduct=3070, bcdDevice= a.74
[    3.039012] kernel: usb 4-2.2: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[    3.039013] kernel: usb 4-2.2: Product: USB3.1 Hub             
[    3.039014] kernel: usb 4-2.2: Manufacturer: VIA Labs, Inc.         
[    3.039531] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.041652] kernel: hub 4-2.2:1.0: USB hub found
[    3.041953] kernel: hub 4-2.2:1.0: 4 ports detected
[    3.047897] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.056260] kernel: [drm:intel_dp_aux_xfer [i915]] dp_aux_ch timeout status
0x7d4003ff
[    3.056266] kernel: [drm:drm_dp_dpcd_access [drm_kms_helper]] Too many
retries, giving up. First error: -110
[    3.056270] kernel: [drm:drm_helper_probe_single_connector_modes
[drm_kms_helper]] [CONNECTOR:92:DP-1] disconnected

In normal situation, at least on my desktop it looks completely different -
first we get USB hub discovered, then hotplug event and then we start probing.

Have no clue currently how to fix that, however may be adding some artificial
delay, before doing actual probing might help and confirm that idea.

I will attach some patch soon, once I figure out what can be done.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190910/ed9d4b26/attachment.html>


More information about the intel-gfx-bugs mailing list