Bug 37742 - [SNB] LVDS not correctly initialised when booting with closed lid
Summary: [SNB] LVDS not correctly initialised when booting with closed lid
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Daniel Vetter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 03:50 UTC by Jochen Radmacher
Modified: 2017-07-24 23:04 UTC (History)
7 users (show)

See Also:
i915 platform:
i915 features:


Attachments
lspci -v (7.60 KB, text/plain)
2011-05-30 03:51 UTC, Jochen Radmacher
no flags Details
dmesg after booting with *open* lid (59.38 KB, text/plain)
2011-05-30 03:52 UTC, Jochen Radmacher
no flags Details
reg dump after booting with *open* lid (11.16 KB, text/plain)
2011-05-30 03:53 UTC, Jochen Radmacher
no flags Details
dmesg after booting with *closed* lid,now opened (58.16 KB, text/plain)
2011-05-30 03:58 UTC, Jochen Radmacher
no flags Details
regdump after booting with *closed* lid,now opened (11.16 KB, text/plain)
2011-05-30 03:59 UTC, Jochen Radmacher
no flags Details
regdump after booting with *closed* lid,still closed (external monitor) (11.16 KB, text/plain)
2011-05-30 04:04 UTC, Jochen Radmacher
no flags Details
regdump after booting with *closed* lid, no video attached to the docking station (11.07 KB, text/plain)
2011-05-30 08:15 UTC, Jochen Radmacher
no flags Details

Description Jochen Radmacher 2011-05-30 03:50:41 UTC
When booting with the lid closed and in the docking station, the external Monitor works fine. (two monitors also work) But when opening the lid then laptop screen shows "noise" and a partialy visible and streched picture.
The "noise" does not look like wrong data in the video memory but more like the wrong refresh rate got selected.

System ubuntu natty, with xorg-edgers (error is present in plain install)
- xserver-xorg-video-intel 2:2.15.0+git20110513.9d6e02a1-0ubuntu0sarvatt
- Linux version 2.6.39-2-generic (buildd@king) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #7-Ubuntu SMP Mon May 16 12:45:34 UTC 2011
Comment 1 Jochen Radmacher 2011-05-30 03:51:50 UTC
Created attachment 47302 [details]
lspci -v
Comment 2 Jochen Radmacher 2011-05-30 03:52:33 UTC
Created attachment 47303 [details]
dmesg after booting with *open* lid
Comment 3 Jochen Radmacher 2011-05-30 03:53:32 UTC
Created attachment 47304 [details]
reg dump after booting with *open* lid
Comment 4 Jochen Radmacher 2011-05-30 03:58:53 UTC
Created attachment 47305 [details]
dmesg after booting with *closed* lid,now opened
Comment 5 Jochen Radmacher 2011-05-30 03:59:35 UTC
Created attachment 47306 [details]
regdump after booting with *closed* lid,now opened
Comment 6 Jochen Radmacher 2011-05-30 04:04:03 UTC
Created attachment 47308 [details]
regdump after booting with *closed* lid,still closed (external monitor)
Comment 7 Chris Wilson 2011-05-30 04:48:27 UTC
Lid open:
PCH_DREF_CONTROL: 0x00001402 (cpu source disable, ssc_source enable, nonspread_source enable, superspread_source disable, ssc4_mode downspread, ssc1 enable, ssc4 disable)
PCH_DPLL_A: 0x89086008 (enable, sdvo high speed no, mode LVDS, p2 Div 7, FPA0 P1 4, FPA1 P1 4, refclk SSC, sdvo/hdmi mul 1)

Lid closed:
PCH_DREF_CONTROL: 0x00001400 (cpu source disable, ssc_source enable, nonspread_source enable, superspread_source disable, ssc4_mode downspread, ssc1 disable, ssc4 disable)
PCH_DPLL_A: 0x88026002 (enable, sdvo high speed no, mode LVDS, p2 Div 14, FPA0 P1 2, FPA1 P1 2, refclk SSC, sdvo/hdmi mul 1)

One last test, what happens without the external DVI plugged in?
Comment 8 Jochen Radmacher 2011-05-30 08:15:38 UTC
Created attachment 47318 [details]
regdump after booting with *closed* lid, no video attached to the docking station

The regdump does _not change_ when opening the lid
Comment 9 Jochen Radmacher 2011-05-30 08:18:09 UTC
(In reply to comment #8)
> Created an attachment (id=47318) [details]
> regdump after booting with *closed* lid, no video attached to the docking
> station
> 
> The regdump does _not change_ when opening the lid

The display is ok when booting this way. No distortion.
Comment 10 Jochen Radmacher 2011-07-27 05:01:27 UTC
Checked again with kernel 3.0. Same issues.

Do you have anything new to test (git is fine too)?
Comment 11 Jochen Radmacher 2011-11-21 08:30:05 UTC
Tested this again:
kernel 3.1.1 and X.Org/intel driver as below:

[    50.386] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[    50.413] (II) Module intel: vendor="X.Org Foundation"
[    50.413]    compiled for 1.11.2, module version = 2.17.0
[    50.413]    Module class: X.Org Video Driver
[    50.413]    ABI class: X.Org Video Driver, version 11.0


Nothing changed, I still have the same issues.
Comment 12 Paulo Zanoni 2012-03-22 12:24:54 UTC
(In reply to comment #10)
> Checked again with kernel 3.0. Same issues.
> 
> Do you have anything new to test (git is fine too)?

http://lists.freedesktop.org/archives/intel-gfx/2012-March/015552.html

Does this help?
Comment 13 Daniel Vetter 2012-03-24 17:19:58 UTC
Patches which should fix this are queued to drm-intel-next at http://cgit.freedesktop.org/~danvet/drm-intel/

Specifically:

commit b03543857fd75876b96e10d4320b775e95041bb7
Author: Takashi Iwai <tiwai@suse.de>
Date:   Tue Mar 20 13:07:05 2012 +0100

    drm/i915: Check VBIOS value for determining LVDS dual channel mode, too

Please reopen this bug if this patch does not fix your issues.
Comment 14 Allison Lortie (desrt) 2012-04-16 06:49:24 UTC
Will this go in for 3.4 or wait until 3.5?
Comment 15 Daniel Vetter 2012-04-16 08:05:40 UTC
The patch is merged for 3.5 (and already in drm-next).
Comment 16 Chris Wilson 2012-04-18 12:50:11 UTC
*** Bug 43379 has been marked as a duplicate of this bug. ***
Comment 17 Jochen Radmacher 2012-04-19 07:43:24 UTC
> 
> http://lists.freedesktop.org/archives/intel-gfx/2012-March/015552.html
> 
> Does this help?
Sorry for the delay.

Today I had some time to test this patch and it did not help with the issue. 
Should this patch alone enough fix this, or is something else from the drm-next branch needed?
Comment 18 Daniel Vetter 2012-04-19 07:57:45 UTC
Hm, we do have some other patches in drm-intel-next-queued that might apply for your situation here. Please test with that. I'll reopen the bug meanwhile, problem is clearly not yet solved.
Comment 19 Chris Wilson 2012-10-17 16:49:09 UTC
Please do retest with 3.7-rc1 as that contains the modeset-rework promised by Daniel.
Comment 20 Jochen Radmacher 2012-11-20 15:34:48 UTC
I finally had the chance to retest this Bug. And it is already fixed in 3.5. (I tested 3.5.3)

This is a bit embarrassing: I think I could track the fix to drm-intel-next.

It's included in this build:
commit a85d4bcb8a0cd5b3c754f98ff91ef2b9b3a73bc5
Date:   Fri Apr 20 11:50:01 2012 -0700
Comment 21 Daniel Vetter 2012-11-20 15:43:09 UTC
Np, and thanks for the update ;-)
Comment 22 Florian Mickler 2013-03-04 22:54:14 UTC
A patch referencing a commit somehow associated to this bug report has been merged in Linux v3.9-rc1:

commit a210b028f07690c127733addbbe137e8f4cad30c
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Nov 26 17:22:08 2012 +0100

    drm/i915: replace ad-hoc dual-link lvds checks


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.