Bug 56568

Summary: [IVB] 3-pipe (VGA + 2 DVI) fail to work
Product: DRI Reporter: Guang Yang <guang.a.yang>
Component: DRM/IntelAssignee: Daniel Vetter <daniel>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: ben, chris, daniel, jbarnes, yangweix.shui
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg info
none
dmesg info with patch
none
dmesg info with restarting X
none
dmesg info on 12.12
none
The reg dump after boot completes with this config and things work.
none
The reg dump after trying to light up VGA, but VGA not showing anything.
none
The reg dump after restarting X, so that all 3 pipes work again. none

Description Guang Yang 2012-10-30 05:42:51 UTC
Created attachment 69282 [details]
dmesg info

System Environment:
--------------------------
Platform:   Ivybridge
Kernel: (drm-intel-testing)b9960e75b5a348759c6e8c9ffb3f45e40ad702a5

Bug detailed description:
-------------------------
   On IVB platform, firstly I boot with VGA and 2 DVI monitors(we use HDMI->DVI and DP->DVI dongle), they all can work well. But if I boot with one DVI, then I plug in another DVI, finally plug in the VGA, the VGA can't light up. This happened every time. Running testdisplay -i shows like this:

CRTCs:
id      fb      pos     size
3       28      (0,0)   (1680x1050)
  1680x1050 60 1680 1784 1960 2240 1050 1053 1059 1089 0x6 0x48 146250
5       28      (0,0)   (1920x1200)
  1920x1200 60 1920 1968 2000 2080 1200 1203 1209 1235 0x9 0x40 154000
7       28      (0,0)   (1920x1200)
  1920x1200 60 1920 1968 2000 2080 1200 1203 1209 1235 0x6 0x40 154000
Comment 1 Daniel Vetter 2012-10-30 08:01:46 UTC
Hm, this could be and fdi b/c issue. Can you please retest with latest -queued, specifically

commit f4fa49966d9db5fec7370a06812593865617335f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sat Oct 27 15:58:40 2012 +0200

    drm/i915: check fdi B/C lane sharing constraint
Comment 2 Guang Yang 2012-10-30 08:19:33 UTC
Created attachment 69289 [details]
dmesg info with patch

(In reply to comment #1)
> Hm, this could be and fdi b/c issue. Can you please retest with latest
> -queued, specifically
> 
> commit f4fa49966d9db5fec7370a06812593865617335f
> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
> Date:   Sat Oct 27 15:58:40 2012 +0200
> 
>     drm/i915: check fdi B/C lane sharing constraint
I try the newest -queued kernel including your patch, the issue still occurs.
Comment 3 Daniel Vetter 2012-11-13 12:41:22 UTC
If you have all three screens plugged in (after boot) and then restart X, does it work?
Comment 4 Guang Yang 2012-11-16 06:10:26 UTC
(In reply to comment #3)
> If you have all three screens plugged in (after boot) and then restart X,
> does it work?
Yeah, the issue described of this bug still occurs, but if I restart X, all three screens can light up.
Comment 5 Guang Yang 2012-11-16 06:49:54 UTC
Created attachment 70146 [details]
dmesg info with restarting X

(In reply to comment #4)
> (In reply to comment #3)
> > If you have all three screens plugged in (after boot) and then restart X,
> > does it work?
> Yeah, the issue described of this bug still occurs, but if I restart X, all
> three screens can light up.
Here is the dmesg.
Comment 6 Chris Wilson 2012-12-12 16:23:45 UTC
Believed (Daniel!) to be working again.
Comment 7 Guang Yang 2012-12-13 03:08:25 UTC
Created attachment 71419 [details]
dmesg info on 12.12

(In reply to comment #6)
> Believed (Daniel!) to be working again.
I try with the -nightly:
Kernel: (drm-intel-nightly)539526b4137bc0e7a8806c38c8522f226814a0e6
now the issue still occurs, it likes this: 
If I boot with VGA and 2 DVI monitors(we use HDMI->DVI and DP->DVI dongle), they all can work well. 
But if I boot with one DVI, then I plug in another DVI, finally plug in the VGA, the VGA can't light up.
Then if I start X, the VGA still can't light up. I kill X and restart X, all screen can light up correctly.
I attach the dmesg.
Comment 8 Daniel Vetter 2012-12-13 09:44:22 UTC
Can you please attach a reg dump for each of the three cases below?

(In reply to comment #7)
> If I boot with VGA and 2 DVI monitors(we use HDMI->DVI and DP->DVI dongle),
> they all can work well. 
After boot completes with this config and things work.

> But if I boot with one DVI, then I plug in another DVI, finally plug in the
> VGA, the VGA can't light up.
After trying to light up VGA, but VGA not showing anything.

> Then if I start X, the VGA still can't light up. I kill X and restart X, all
> screen can light up correctly.
After restarting X, so that all 3 pipes work again.
Comment 9 Guang Yang 2012-12-14 01:46:54 UTC
Created attachment 71479 [details]
The reg dump after boot completes with this config and things work.

The reg dump after boot completes with this config and things work.
Comment 10 Guang Yang 2012-12-14 01:48:24 UTC
Created attachment 71480 [details]
The reg dump after trying to light up VGA, but VGA not showing anything.

The reg dump after trying to light up VGA, but VGA not showing anything.
Comment 11 Guang Yang 2012-12-14 01:53:32 UTC
Created attachment 71481 [details]
The reg dump after restarting X, so that all 3 pipes work again.

The reg dump after restarting X, so that all 3 pipes work again.
The above three reg dumps get with kernel:
Kernel: (drm-intel-nightly)cdb96764a45f87e4614df1b16d68b2ccb9806f57
Comment 12 Guang Yang 2012-12-25 03:29:23 UTC
I try with the latest -testing:
Kernel: (drm-intel-testing)5c43656cdac8062485ba54625bdc2edfc34ef0cf
the issue is gone, so I think we can close this bug.
Comment 13 Daniel Vetter 2013-01-07 16:40:05 UTC
Awesome, and thanks for retesting.
Comment 14 Elizabeth 2017-10-06 14:48:00 UTC
Closing old verified.

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.