Bug 74266 - [HD 4400] DisplayPort resolution on OneLink Pro dock limited to 1920x1200
Summary: [HD 4400] DisplayPort resolution on OneLink Pro dock limited to 1920x1200
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Jani Nikula
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-31 09:15 UTC by steven
Modified: 2017-07-24 22:56 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Kernel Log (267.92 KB, text/plain)
2014-01-31 09:15 UTC, steven
no flags Details
intel_reg_dumper output (16.00 KB, text/plain)
2014-01-31 09:16 UTC, steven
no flags Details
Xrandr --verbose output (12.31 KB, text/plain)
2014-01-31 09:17 UTC, steven
no flags Details
Print link capabilities first (973 bytes, patch)
2014-01-31 09:32 UTC, Chris Wilson
no flags Details | Splinter Review
Print link capabilities first (973 bytes, patch)
2014-01-31 09:33 UTC, Chris Wilson
no flags Details | Splinter Review
Print link capabilities first (973 bytes, patch)
2014-01-31 09:34 UTC, Chris Wilson
no flags Details | Splinter Review
Print link capabilities first (985 bytes, patch)
2014-01-31 09:35 UTC, Chris Wilson
no flags Details | Splinter Review

Description steven 2014-01-31 09:15:43 UTC
Created attachment 93108 [details]
Kernel Log

System environment:
-- chipset: i7-4500U / HD 4400
-- system architecture: 64-bit
-- xf86-video-intel: 2:2.99.904-0ubuntu2.1
-- xserver: 7.7+1ubuntu6
-- mesa: n/a
-- libdrm: 2.4.46-1ubuntu1
-- kernel: 3.13 (native 3.11 Distrokernel of Xubuntu 13.10 showed same behaviour)
-- Linux distribution: Xubuntu 13.10
-- Machine or mobo model: Lenovo ThinkPad Yoga S1
-- Display connector: DisplayPort


This laptop only has a Mini-HDMI port builtin, however using a Docking Station (OneLink Pro Dock) one gets a native DisplayPort (no USB graphics).

Attaching a monitor to the DP-Port of the Dock (Dell U2713HM, with 2560x1440 native resolution), running xrandr it will only show resolutions up to 1920x1200 and these modes seem to be usable.

Trying to override the mode (using newmode, addmode and --output DP1 --mode ...) results in "Configure crtc 1 failed" with both the EDID-provided values and manually cvt-generated values.

Judging by the Kernel log (attached), the DRM parses the EDID correctly but discards the 2560x1440 mode it provides.

As the monitor only supports its native Resolution over DP and I don't have any other Monitors with such a resolution I couldn't test if using the Mini-HDMI Port on the Laptop would allow for more than 1920x1200.

The monitor connected to the same machine and dock runs fine under Windows with its native resolution 2560x1440. It also works perfectly fine on Linux on my ThinkPad T420s (i5-2520M).
Comment 1 steven 2014-01-31 09:16:29 UTC
Created attachment 93109 [details]
intel_reg_dumper output
Comment 2 steven 2014-01-31 09:17:29 UTC
Created attachment 93110 [details]
Xrandr --verbose output
Comment 3 Chris Wilson 2014-01-31 09:29:20 UTC
Annoyingly we don't print out the debug information about the link prior to discarding the mode, but the issue here is that the bandwidth required to send the full 2560x1440 is greater than the number of DP lanes connecting to the dock (which one presumes was penny pinched to only support 1080p).
Comment 4 steven 2014-01-31 09:31:57 UTC
Well Lenovo claims to support up to 2560x1600 on the DisplayPort of that Dock.

And I can confirm it works with the same setup if I just boot to Windows. I then get 2560x1440@60Hz using that same dock. I can try to get you any debug information on Windows when the display is running in that resolution if you tell me what I need to do.
Comment 5 Chris Wilson 2014-01-31 09:32:41 UTC
Created attachment 93112 [details] [review]
Print link capabilities first

This will be a bit verbose since we print it when validating each mode, but it should help you work out why it fails here...
Comment 6 Chris Wilson 2014-01-31 09:33:25 UTC
Created attachment 93113 [details] [review]
Print link capabilities first

Ff uploaded the wrong patch
Comment 7 Chris Wilson 2014-01-31 09:34:06 UTC
Created attachment 93114 [details] [review]
Print link capabilities first

...because I did not hit git add.
Comment 8 Chris Wilson 2014-01-31 09:35:11 UTC
Created attachment 93116 [details] [review]
Print link capabilities first

This is getting ridiculous!
Comment 9 steven 2014-01-31 09:47:14 UTC
Thanks. I will try to get back to you with the logs hopefully later today.
Here is another clue I got from the dock manufacturer page:


DisplayPort with maximum resolution 2560x1600*
DVI-I with maximum 1920x1200 resolution and DVI to VGA adapter included in the box
* Maximum resolution of 1920 x 1200 supported if second monitor is attached to DVI output.


Please excuse my wild guessing as I don't really have expertise in this area: Maybe the driver/DRM doesn't really make that distinction and just always assumes the maximum resolution is 1920x1200 on the DP as opposed to Windows which seems to behave differently then.


Also obviously I don't have anything attached to that DVI-port.
Comment 10 Chris Wilson 2014-01-31 09:51:03 UTC
The values we are using are determined by talking with the DP device - they are drawn directly from the DPCD (DisplayPort configuration data) which is negotiated between the two hardware endpoints.

There might be something else we have to program to disable something in the dock and renegotiate for more bandwidth - that I do not know.
Comment 11 Jani Nikula 2014-01-31 10:51:53 UTC
(In reply to comment #3)
> Annoyingly we don't print out the debug information about the link prior to
> discarding the mode, but the issue here is that the bandwidth required to
> send the full 2560x1440 is greater than the number of DP lanes connecting to
> the dock (which one presumes was penny pinched to only support 1080p).

Only two lanes but both the sink and source (Haswell) support 5.4 GHz bandwidth. It should be enough. Driver support was only just merged in

commit 06ea66b6bb445043dc25a9626254d5c130093199
Author: Todd Previte <tprevite@gmail.com>
Date:   Mon Jan 20 10:19:39 2014 -0700

    drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

which isn't upstream yet. Did you try drm-intel-nightly?
Comment 12 steven 2014-01-31 10:59:58 UTC
Wow, thank you so much. With the drm-intel-nightly kernel, it works like a charm.
Comment 13 Jani Nikula 2014-01-31 11:29:07 UTC
(In reply to comment #12)
> Wow, thank you so much. With the drm-intel-nightly kernel, it works like a
> charm.

\o/

Unfortunately, I don't think this made it in the 3.14 kernel, so it will be in 3.15. In the mean time, I urge you to keep running our nightly kernel, and report any issues you might find! ;)
Comment 14 steven 2014-01-31 11:37:23 UTC
Yeah I will let you know if I can find anything out of the ordinary. I added the hint to the OneLink Pro dock to the title so it might be easier to find for other users running into the same issue.


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.