Description
Nicolas Suzor
2013-02-04 05:01:57 UTC
Created attachment 74160 [details]
Xorg log
Created attachment 74991 [details]
dmesg with debug=14
Im experiencing the same issue - also reported that in #56834.
Attached is the dmesg log with debug=14
Could you please try the latest drm-intel tree drm-intel-nightly branch, if the problem is still reproducible? There are some recent DP AUX IRQ fixes merged there. Created attachment 78876 [details]
dmesg with debug=14, using drm-intel-nightly branch as of Sun 5 May 2013
I'm having this problem too, so I downloaded the drm-intel-nightly branch.
Good news: Hardly any error messages "*ERROR*" too many retries..." (etc.).
Bad News: Absolutely no connection made to my external monitor over the Apple DP connector.
Hardware: I'm using a Lenova Think Pad S430, which uses "Intel® Ivybridge Mobile" graphics. I'm trying to connect an external monitor via an Apple DP to VGA connector (so, not exactly the same hardware discussed above, but very similar symptoms - if the difference means this is the wrong ticket, sorry, please instruct as to where I should post this).
My "real" use-case is a little different - I need to connect to the projectors at work.
By the way, I have a work-around that works most of the time - downgrade to the 3.6.11 kernel - the last kernel that came with a "normal" Arch Linux upgrade which works. After that came the 3.7 and 3.8 kernels, and none of those have worked with my hardware.
Here's what I did: I connected the Apple connector.
I'll attach the Xorg.0.log next.
Created attachment 78877 [details]
Xorg.0.log with drm-intel-nightly branch (cf. dmesg, above).
See my last attachment/comment (dmesg output) - this is the Xorg log that goes with that.
By the way, I forgot to describe what/how I tested the software
0) I booted the notebook with the external monitor & Apple connector NOT connected,
1) then connected the adaptor to the VGA cable,
2) then the connector to the DisplayPort. No reaction.
3) Then I opened the "Display Setting" (Gnome-3 settings panel) and clicked on "Detect Displays". I had dmesg -w running the whole time and first saw some "*ERROR* Too many retries" messages on clicking "detect displays".
4) I then disconnected the monitor/adaptor, and repeated the whole process, only this time...
5) I first connected the adaptor to the notebook, and
6) then the cable to the adaptor, and
7) then tried "detect displays",
8) then diconnected the cable from the adaptor,
9) then disconnected the adaptor from the notebook -- and
10) then captured the dmesg output and the Xorg log.
Hope this helps.
Created attachment 78884 [details]
dmesg output after booting with the DP connector already connected (not a "hot plug")
After uploading my last two attachments (see above), another test occurred to me, so for what it's worth...
This time I tried connecting the external monitor BEFORE booting the notebook (so, no "hot plugging"). Test Result: No signal reaches the external monitor (exactly as in the other tests). The one possible difference is that the last thing in the dmesg output - before I disconnected the adapter - was a number of our good old "*ERROR* too many retries" error messages.
So, apparently I have to retract even my weak attempt at "good news" (see above).
By the way, I disconnected the adapter before capturing the dmesg output (this attachment), so you'll see that in the dmesg output after the "*ERROR*" messages.
Created attachment 78913 [details] [review] drm/i915: debug log DPCD downstream ports if available Ronald, please try the attached patch on top of drm-intel-nightly, and attach the resulting dmesg with drm.debug=0xe. This won't fix the problem, but it might shed a little more light on the issue. Thanks. Created attachment 78924 [details]
dmes output (debug=0x3) after patchiing the drm-intel-nightly branch
OK, as requested, I patched (my copy of) the drm-intel-nightly branch, rebuilt, reinstalled, and retested - here is the dmesg output (with dmesg.debug=0xe).
Tests performed:
At time 70 (roughly), having already connected the vga cable to the Apple adapter, I connected the adapter to the notebook. No response from the desktop, but a fair amount of activity from dmesg.
At time 141 I hit "detect displays" (Gnome-3 display settings panel, see above).
At time 162 I disconnected the Apple adapter (and thus the external monitor).
Hope this helps. I have another dmesg-output-file for you coming right up, by the way, with a different test scenario (see below (hopefully)).
Created attachment 78925 [details]
dmes output (debug=0x3) after patchiing the drm-intel-nightly branch, without hot-plugging
OK, one more dmesg output file, everything as before (see above), only this time I connected the external monitor (via the Adaptor, of course) /before/ booting the notebook, just to see if that makes any difference.
Still no connection to the external monitor, but it seemed worth a try.
(At time around 65, I disconnected the monitor again, before capturing the dmesg output and calling it a day).
Created attachment 82239 [details] [review] drm/i915: Don't fallback to ddc probe if downstream port is dummy Ronald, could you test with the attached patch if it makes any difference? (In reply to comment #11) > Ronald, could you test with the attached patch if it makes any difference? Yes, I could; yes, I did; and yes, it does! My Display-Port Adapter works now! That seems to be the fix we've been looking for! (That was the short version - here some details...) I tried this patch both with the DRM-Intel-Nightly-Branch (3.10.0-rc7) and with the stock arch linux kernel (3.9.9), and the results seemed the same: It works, both with external monitors and with a projector. Plug-and-play: I plug the cable into the adapter, the adapter into the notebook, and within a second or three the external display lights up. Curiosity: The log messages "*ERROR* too many tries, giving up" still appear, although everything is working. Irritation: xrandr, arandr and the Gnome-3-Displays-Settings Interface to xrandr (what is the proper name for that thing?) all consider the external displays to be "unknown" and refuse to offer a resolution larger than 1024x768. Using xrandr I managed to blank out both screens (notebook and external) until I unplugged the adapter - but this is a problem I have hardly begun to look at, and which I may just decide to live with: My main external monitor has an hdmi cable and that works (has worked the whole time) just fine (and 1024x768 is just barely enough for presentations with a projector). So, if you need any more information, log files, whatever, please let me know what you need, but I'm happy - for the time being. Mostly I'm curious now when this patch will make it's way into the stock kernels! Could be that we need to improve our DP downstream sink handling a bit to actually get at the edid, but Mika's patch should at least get things going. Note that you can try to add more modes with xrandr --addmode meanwhile. (In reply to comment #11) > Ronald, could you test with the attached patch if it makes any difference? Mika, thanks so much for this. I have just compiled with this patch and it enables me to use an external monitor at 2560x1080 over the Mini DP -> DL-DVI dongle. It looks AMAZING and fixes a major issue that has had me working on smaller monitors for a long time now. What can I do to thank you? For some reason, the display is not detected properly by xrandr if I start X with the dongle plugged in. Plugging it in after X starts works fine. Mika, I don't see this patch on the m-l. Daniel, get the extra long cattle prods! Nicolas, can you attach a drm.debug=6 dmesg for the case where it only works upon hotplugging? Created attachment 83949 [details]
xrandr output when X is started after DP>DVI-D DL dongle is plugged in
Created attachment 83950 [details]
dmesg output when X is started after DP>DVI-D DL dongle is plugged in
Created attachment 83951 [details]
xrandr output when X is started before DP>DVI-D DL dongle is plugged in
Created attachment 83952 [details]
dmesg output when X is started before DP>DVI-D DL dongle is plugged in
(In reply to comment #15) > Mika, I don't see this patch on the m-l. Daniel, get the extra long cattle > prods! > > Nicolas, can you attach a drm.debug=6 dmesg for the case where it only works > upon hotplugging? So the different behaviour occurs based on whether I start X before or after plugging in the DVI-D DL dongle. If I plug it in before starting X, it does not correctly detect the higher resolutions, and I am unable to force it to do so by adding the modeline via xrandr. If I plug it in after starting X, it works as expected. I have attached four files: xrandr and dmesg outputs from both cases. I just realised that I had drm.debug=0xe, not drm.debug=6. If this is a problem, let me know and I'll reboot to try again. Ouch, it is just a fluke that plugging it in after X starts works. We get one clean read of the EDID, and that just happens to correspond to X's query after the hotplug event. Who has the DP manual to hand and can check whether we have the retry alogrithm correct? And may suggest which parameters might be worth varying? Please try intel-dp-fixes branch of git://gitorious.org/jani/drm.git. It's intel-drm-nightly plus some DP aux fixes. > Please try intel-dp-fixes branch of git://gitorious.org/jani/drm.git. It's
> intel-drm-nightly plus some DP aux fixes.
Yes! This works - xrandr reports the correct resolutions of the external display in the case when the display is connected before X starts. Thanks!
Nicolas, the fixes have now been merged to drm-intel-nightly branch of [1], headed for 3.13. Please try that so we can close the bug. Thanks. [1] git://people.freedesktop.org/~danvet/drm (In reply to comment #24) > Nicolas, the fixes have now been merged to drm-intel-nightly branch of [1], > headed for 3.13. Please try that so we can close the bug. Thanks. > > [1] git://people.freedesktop.org/~danvet/drm Ok, I've tested this branch. It works when the adapter is plugged in after X starts, but not before - same behaviour as Comment #20. Created attachment 87903 [details]
dmesg output for drm-intel-nightly #25, X started before DP>DVI-D DL dongle is plugged in
Mika, I presume you're not working on this, resetting assignee. Created attachment 92182 [details] dmesg output for drm-intel-nightly, booting with DVI-D dongle (In reply to comment #24) > Nicolas, the fixes have now been merged to drm-intel-nightly branch of [1], > headed for 3.13. Please try that so we can close the bug. Thanks. > > [1] git://people.freedesktop.org/~danvet/drm Jani, I've just tested again against the drm-intel-nightly branch of http://cgit.freedesktop.org/~danvet/drm-intel, and it seems to work now - thanks. I don't know whether I did something wrong a few months back, or some new fixes have been added, but it now detects the monitor fine on boot. (I must have misconfigured something, because now the console does not display on the internal display - I had to plug the external display in to boot, but then both displays are detected by xrandr - but I assume this is just a mistake on my part.) Following comment #31 on Bug #56834, I recompiled with branch fdo-56834 of Jani's repo [1]. I now confirm that everything works flawlessly, and suggest that this bug be closed. Jani, thanks so much for consolidating all those fixes. [1] https://bugs.freedesktop.org/show_bug.cgi?id=56834#c31 (In reply to comment #29) > Following comment #31 on Bug #56834, I recompiled with branch fdo-56834 of > Jani's repo [1]. I now confirm that everything works flawlessly, and suggest > that this bug be closed. Jani, thanks so much for consolidating all those > fixes. > > [1] https://bugs.freedesktop.org/show_bug.cgi?id=56834#c31 Great, thanks for the report and testing. Everything in the referenced branch should be in 3.15-rc2 or 3.15-rc3. |
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.