Bug 71871 - Dell Latitude E7440 docking station merges DVI and DP dual display into DP2
Summary: Dell Latitude E7440 docking station merges DVI and DP dual display into DP2
Status: RESOLVED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - Intel) (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: Mika Kuoppala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 08:39 UTC by Mike
Modified: 2014-09-12 10:04 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.12.9
Subsystem:
Regression: No
Bisected commit-id:


Attachments
GPU crash dump (415.09 KB, image/png)
2014-03-17 06:48 UTC, Mike
Details

Description Mike 2014-03-11 08:39:27 UTC
Older intel hardware would show the DVI and DP port on the dockingstation as HDMI1 and DP1 whereas the internal display is eDP1. The Haswell in my E7440 merges the two pysical displays on 2 pysical ports into a single large display on DP2, breaking dual screen support (X and xrandr is not aware of screen edges...)

Also see http://forums.linuxmint.com/viewtopic.php?f=59&t=160637


xrandr:

Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 32767 x 32767
eDP1 connected 1920x1080+1920+120 (normal left inverted right x axis y axis) 309mm x 174mm
   1920x1080      60.0*+
   1400x1050      60.0  
   1280x1024      60.0  
   1280x960       60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP2 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 519mm x 320mm
   1920x1200      60.0*+
   1600x1200      60.0  
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
HDMI2 disconnected (normal left inverted right x axis y axis)

lspci:
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
        Subsystem: Dell Device 05cb
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 05cb
        Flags: bus master, fast devsel, latency 0, IRQ 57
        Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915
Comment 1 Mike 2014-03-11 08:51:41 UTC
xf86-video-intel: 2.21.15 (dri sna udev xvmc)
Comment 2 Mike 2014-03-11 10:08:35 UTC
I also tried to external (dock) VGA port, which is not even there in the xrandr list anymore, it gets also merged.
Comment 3 Mike 2014-03-11 16:32:51 UTC
I just updated to 3.13.5, this still happens but now everything gets emrged into DP1 which is a clone of HDMI2, there is no DP2

Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 32767 x 32767
eDP1 connected 1920x1080+1920+0 (0x47) normal (normal left inverted right x axis y axis) 309mm x 174mm
        Identifier: 0x42
        Timestamp:  211936
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:    
        CRTC:       1
        CRTCs:      1 0 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        EDID: 
                00ffffffffffff0030e4ea0300000000
                00170104951f1178028545a45a54a127
                0c505400000001010101010101010101
                0101010101012e3680a070381f403024
                350035ae1000001a2e3680a070381f40
                3024350035ae1000001a000000fe0038
                39343646803134305746310a00000000
                000041219e010000000a010a20200062
        BACKLIGHT: 53 
                range: (0, 100)
        Backlight: 53 
                range: (0, 100)
        scaling mode: Full aspect 
                supported: None, Full, Center, Full aspect
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on
  1920x1080 (0x47)  138.7MHz +HSync -VSync *current +preferred
        h: width  1920 start 1968 end 2004 total 2080 skew    0 clock   66.7KHz
        v: height 1080 start 1083 end 1088 total 1111           clock   60.0Hz
  1400x1050 (0xb2)  122.0MHz +HSync +VSync
        h: width  1400 start 1488 end 1640 total 1880 skew    0 clock   64.9KHz
        v: height 1050 start 1052 end 1064 total 1082           clock   60.0Hz
  1280x1024 (0xb3)  108.0MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1280x960 (0xb4)  108.0MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock   60.0KHz
        v: height  960 start  961 end  964 total 1000           clock   60.0Hz
  1024x768 (0xb5)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0xb6)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  800x600 (0xb7)   36.0MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
        v: height  600 start  601 end  603 total  625           clock   56.2Hz
  640x480 (0xb8)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   59.9Hz
HDMI1 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x43
        Timestamp:  211936
        Subpixel:   unknown
        Clones:    
        CRTCs:      1 0 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on
DP1 connected primary 1920x1200+0+0 (0x48) normal (normal left inverted right x axis y axis) 519mm x 320mm
        Identifier: 0x44
        Timestamp:  211936
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:     HDMI2
        CRTC:       0
        CRTCs:      1 0 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        EDID: 
                00ffffffffffff0010ac2ba053333532
                2b130104a534207822b325ac5130b426
                105054a54b008180a940714f01010101
                010101010101283c80a070b023403020
                360007402100001a000000ff00473238
                364839414a323533530a000000fc0044
                454c4c20323430385746500a000000fd
                00384c1e5311010a20202020202000bd
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on
  1920x1200 (0x48)  154.0MHz +HSync -VSync *current +preferred
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock   74.0KHz
        v: height 1200 start 1203 end 1209 total 1235           clock   60.0Hz
  1600x1200 (0xb9)  162.0MHz +HSync +VSync
        h: width  1600 start 1664 end 1856 total 2160 skew    0 clock   75.0KHz
        v: height 1200 start 1201 end 1204 total 1250           clock   60.0Hz
  1280x1024 (0xba)  135.0MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
  1280x1024 (0xb3)  108.0MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1152x864 (0xbb)  108.0MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock   67.5KHz
        v: height  864 start  865 end  868 total  900           clock   75.0Hz
  1024x768 (0xbc)   78.8MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.1KHz
        v: height  768 start  769 end  772 total  800           clock   75.1Hz
  1024x768 (0xb5)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0xbd)   49.5MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
        v: height  600 start  601 end  604 total  625           clock   75.0Hz
  800x600 (0xb6)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  640x480 (0xbe)   31.5MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
        v: height  480 start  481 end  484 total  500           clock   75.0Hz
  640x480 (0xbf)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   60.0Hz
  720x400 (0xc0)   28.3MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock   31.5KHz
        v: height  400 start  412 end  414 total  449           clock   70.1Hz
HDMI2 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x45
        Timestamp:  211936
        Subpixel:   unknown
        Clones:     DP1
        CRTCs:      1 0 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on

this is in dmesg:

[    1.802111] [drm] Initialized drm 1.1.0 20060810
[    2.010200] [drm] Memory usable by graphics device = 2048M
[    2.046585] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.046586] [drm] Driver supports precise vblank timestamp query.
[    2.132968] fbcon: inteldrmfb (fb0) is primary device
[    3.713031] [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
[    4.603655] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
[    4.683128] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[    4.896584] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[    5.611472] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
[  216.632091] [drm:ring_stuck] *ERROR* Kicking stuck wait on blitter ring
[  216.632098] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[  216.632100] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[  216.632101] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[  216.632103] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[  216.632104] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
Comment 4 Jani Nikula 2014-03-14 13:31:34 UTC
(In reply to Mike from comment #3)
> minor 0
> [    5.611472] [drm:intel_dp_complete_link_train] *ERROR* failed to train
> DP, aborting
> [  216.632091] [drm:ring_stuck] *ERROR* Kicking stuck wait on blitter ring
> [  216.632098] [drm] GPU crash dump saved to /sys/class/drm/card0/error
> [  216.632100] [drm] GPU hangs can indicate a bug anywhere in the entire gfx
> stack, including userspace.
> [  216.632101] [drm] Please file a _new_ bug report on bugs.freedesktop.org
> against DRI -> DRM/Intel
> [  216.632103] [drm] drm/i915 developers can then reassign to the right
> component if it's not a kernel issue.
> [  216.632104] [drm] The gpu crash dump is required to analyze gpu hangs, so
> please always attach it.

Is this reproducible? Please do file a new bug about it with the error state attached as instructed.
Comment 5 Mike 2014-03-17 06:48:02 UTC
Created attachment 129681 [details]
GPU crash dump

This is always reproducible, the symptoms are as described, Do you mean I should file a new bug because it doesn't have to do anything with the output merging issue?
Comment 6 Jani Nikula 2014-03-17 08:09:13 UTC
(In reply to Mike from comment #5)
> Created attachment 129681 [details]
> GPU crash dump
> 
> This is always reproducible, the symptoms are as described, Do you mean I
> should file a new bug because it doesn't have to do anything with the output
> merging issue?

Chris, please check if this crash dump is a dupe of something we already have, so we know if a new bug report is necessary. Thanks.
Comment 7 Chris Wilson 2014-03-17 08:52:03 UTC
I haven't seen that WAIT_FOR_EVENT hang on ivb bcs before. For whatever reason, the GPU is extremely confused upon encountering it. Perhaps significantly, the ring is asleep.
Comment 8 Jani Nikula 2014-03-17 09:16:30 UTC
Ok, Mike, please file a new bug about the GPU crash, we'll track it separately. Thanks.
Comment 9 Mike 2014-03-17 09:20:45 UTC
new bug 72251
Comment 10 Mike 2014-04-29 07:52:22 UTC
Some more info, I found out that I can connect two displays properly by attaching one at the DP port on the doc and another at the HDMI at the notebook itself. This correctly resolves to DP1 and HDMI1, so it seems that this is a problem with the multiplier for the doc.
Comment 11 Jani Nikula 2014-09-12 10:04:11 UTC
Seems like a "feature" in the docking station.

Note You need to log in before you can comment on or make changes to this bug.