Bug 109340 - HDMI output (DisplayPort-0) stops listing modes after using docking station DP output
Summary: HDMI output (DisplayPort-0) stops listing modes after using docking station D...
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-13 22:47 UTC by Rafał Miłecki
Modified: 2019-11-19 09:10 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (75.30 KB, text/plain)
2019-01-13 22:47 UTC, Rafał Miłecki
no flags Details
Detailed logs of all connecting/disconnecting operations (87.16 KB, text/plain)
2019-01-13 22:52 UTC, Rafał Miłecki
no flags Details
Xorg.0.log (38.31 KB, text/plain)
2019-01-14 11:15 UTC, Rafał Miłecki
no flags Details
Xorg.0.log using xf86-video-modesetting (49.24 KB, text/plain)
2019-01-14 12:04 UTC, Rafał Miłecki
no flags Details

Description Rafał Miłecki 2019-01-13 22:47:58 UTC
Created attachment 143092 [details]
dmesg

I use following setup:
1) HP EliteBook 745 G5 with Ryzen 5 PRO 2500U
2) Docking station HP HSTNN-I11X
3) Monitor BenQ GW2260 (HDMI and no DisplayPort)
4) openSUSE Tumbleweed 
5) Self compiled kernel 4.20-rc3 from amd-staging-drm-next with patches:
drm/amd/display: Include names of all PP clock types
x86/MCE/AMD: Fix the thresholding machinery initialization order

My problem is that I can't use notebook's HDMI port (visible as DisplayPort-0) after using DisplayPort output of docking station. HDMI detects monitor & gets EDID but xrandr doesn't list any modes.


After booting without docking station & connecting monitor using HDMI port:
DisplayPort-0 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      60.00  
   1280x800      59.91  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94

After connecting docking station & monitor using DP port + HDMI adapter:
[drm] DM_MST: starting TM on aconnector: 00000000651bd996 [id: 57]
[drm] DM_MST: added connector: 00000000e1b7686d [id: 90] [master: 00000000651bd996]
[drm] DM_MST: added connector: 0000000078869ed2 [id: 94] [master: 00000000651bd996]
[drm] DM_MST: added connector: 00000000af4e5879 [id: 98] [master: 00000000651bd996]
[drm] amdgpu_dm_irq_schedule_work FAILED src 8
[drm] amdgpu_dm_irq_schedule_work FAILED src 8
[drm] amdgpu_dm_irq_schedule_work FAILED src 8

After disconnecting monitor & docking station:
[drm] DM_MST: stopping TM on aconnector: 00000000651bd996 [id: 57]
[drm] DM_MST: Disabling connector: 00000000e1b7686d [id: 90] [master: 00000000651bd996]
[drm] DM_MST: Disabling connector: 0000000078869ed2 [id: 94] [master: 00000000651bd996]
[drm] DM_MST: Disabling connector: 00000000af4e5879 [id: 98] [master: 00000000651bd996]

After connecting monitor using HDMI port:
xrandr: Output DisplayPort-0 is not disconnected but has no modes
(...)
DisplayPort-0 connected (normal left inverted right x axis y axis)


It's a bit weird since HDMI port (DisplayPort-0) seems to detect monitor being connected & can get EDID. Is there some bug with enumerating available models caused by DM_MST / TM?
Comment 1 Rafał Miłecki 2019-01-13 22:52:27 UTC
Created attachment 143093 [details]
Detailed logs of all connecting/disconnecting operations
Comment 2 Rafał Miłecki 2019-01-13 22:53:21 UTC
I've noticed that:

1) After connecting monitor to the docking station's DP output following outputs appear: DisplayPort-3, DisplayPort-4 and DisplayPort-5.
2) After disconnecting monitor from docking stating I can see:
[drm] DM_MST: stopping TM on aconnector: 00000000651bd996 [id: 57]
[drm] DM_MST: Disabling connector: 00000000e1b7686d [id: 90] [master: 00000000651bd996]
[drm] DM_MST: Disabling connector: 0000000078869ed2 [id: 94] [master: 00000000651bd996]
[drm] DM_MST: Disabling connector: 00000000af4e5879 [id: 98] [master: 00000000651bd996]
3) After disconnecting whole docking station I can still see DisplayPort-3, DisplayPort-4 and DisplayPort-5 in the "xrandr" output.

Is that expected? Is that a possible hint for some problem with output management that also causes the original problem?
Comment 3 Rafał Miłecki 2019-01-14 08:42:09 UTC
This problem also occurs when using drm/drm branch drm-next (5.0.0-rc1) with:
[PATCH v7 00/20] MST refcounting/atomic helpers cleanup
on top of it.

The only difference I've noticed is xrandr complaining about MIT-MAGIC-COOKIE-1:
> xrandr 
Invalid MIT-MAGIC-COOKIE-1 keyxrandr: Output DisplayPort-0 is not disconnected but has no modes
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1920x1080     60.02*+  40.00  
   1680x1050     60.02  
   1280x1024     60.02  
   1440x900      60.02  
   1280x800      60.02  
   1280x720      60.02  
   1024x768      60.02  
   800x600       60.02  
   640x480       60.02  
DisplayPort-0 connected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-3 disconnected (normal left inverted right x axis y axis)
DisplayPort-4 disconnected (normal left inverted right x axis y axis)
DisplayPort-5 disconnected (normal left inverted right x axis y axis)
Comment 4 Michel Dänzer 2019-01-14 10:46:58 UTC
Please attach the corresponding Xorg log file, preferably captured after reproducing the problem.
Comment 5 Rafał Miłecki 2019-01-14 11:15:07 UTC
Created attachment 143103 [details]
Xorg.0.log

I'm attaching Xorg.0.log at requested with my actions commented properly
Comment 6 Rafał Miłecki 2019-01-14 12:04:45 UTC
Created attachment 143104 [details]
Xorg.0.log using xf86-video-modesetting

Michel has suggested trying xf86-video-modesetting. A difference from user perspective is minimal.

1) With both drivers I can use HDMI output port just fine after booting (without a docking station)

2) After that I connect docking station, connect DP, disconnect DP, disconnect docking station

3) Finally I try connecting monitor to the HDMI output again:
a) With xorg-xf86-video-amdgpu I get "Output DisplayPort-0 is not disconnected but has no modes"
b) With xf86-video-modesetting I get "xrandr: Configure crtc 1 failed"
Comment 7 Martin Peres 2019-11-19 09:10:34 UTC
-- 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/669.


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.