Bug 31988 - Reverted: use VBT provided eDP params if available
Summary: Reverted: use VBT provided eDP params if available
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium blocker
Assignee: Jesse Barnes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 01:23 UTC by Chris Wilson
Modified: 2016-10-28 09:46 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
unlock panel regs unconditionally (591 bytes, patch)
2010-12-14 11:10 UTC, Jesse Barnes
no flags Details | Splinter Review
correct eDP encoder check (1.18 KB, patch)
2011-01-04 10:48 UTC, Jesse Barnes
no flags Details | Splinter Review

Description Chris Wilson 2010-11-30 01:23:43 UTC
This commit broke QA's Dell e6510 and Dave Airlie's HP 2540, but it is required for the Sony Vaio Z. ARGH.
Comment 1 Chris Wilson 2010-11-30 01:24:39 UTC
Continuation of bug 31188.
Comment 2 Jesse Barnes 2010-12-14 11:10:00 UTC
Created attachment 41120 [details] [review]
unlock panel regs unconditionally

Can those who were having trouble with the VBT data patch revert the revert and try this patch on top?
Comment 3 Jan-Hendrik Zab 2010-12-14 14:17:12 UTC
My Vaio VPCZ1 works with your patch in addition to the eDP VBT patch
(or rather the revert reverted). It does not work without the eDP VBT 
patch.

The above is true for drm-intel-next and drm-intel-fixes.

        -jhz
Comment 4 Jesse Barnes 2011-01-04 10:48:12 UTC
Created attachment 41635 [details] [review]
correct eDP encoder check

This one gets drm-intel-next working on my vaio again, can you give it a try?
Comment 5 Jan-Hendrik Zab 2011-01-04 12:25:02 UTC
(In reply to comment #4)
> Created an attachment (id=41635) [details]
> correct eDP encoder check
> 
> This one gets drm-intel-next working on my vaio again, can you give it a try?

Okay, I just tried it and it works fine on my Vaio as well.
Comment 6 Chris Wilson 2011-01-04 14:43:17 UTC
Applied the patch to -fixes:

commit 369581028e2528122cc109abacf11766ae231f01
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Tue Jan 4 10:46:49 2011 -0800

    drm/i915: check eDP encoder correctly when setting modes
    
    We were using a stale pointer in the check which caused us to use CPU
    attached DP params when we should have been using PCH attached params.
    
    Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31988
    Tested-by: Jan-Hendrik Zab <jan@jhz.name>
    Tested-by: Christoph Lukas <christoph.lukas@gmx.net>
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

However, the reverted patch was trying to avoid training by using the stored parameters in the VBT, so I'll leave it to Jesse as to whether he wants to close this bug.
Comment 7 Gordon Jin 2011-01-04 19:07:29 UTC
I confirm this patch doesn't break QA's Dell e6510.
Comment 8 Gordon Jin 2011-01-05 00:37:52 UTC
I guess this patch doesn't make into 2.6.37, right?
Comment 9 Chris Wilson 2011-01-05 02:28:35 UTC
No, too late, but it is a good candidate for .37.1.
Comment 10 Matthias Weidle 2011-01-05 07:51:00 UTC
I can confirm that this fix is working for me as well on my Sony VAIO VPC Z13M9E.

The only problem left is a blank screen after suspend/resume cycle. If I attach an external monitor via VGA after the resume then the black screen goes away and I can use the computer again.
Comment 11 Adam Williamson 2011-01-06 12:45:49 UTC
just to note this doesn't seem to have been applied to drm-next (unless I missed it or it's under a different description...)
Comment 12 Chris Wilson 2011-01-06 12:50:55 UTC
Not yet since the trees are in flux. I'm waiting to resolve some more eDP patches, and these are intended to in via drm-intel-fixes->drm-fixes->linus
Comment 13 Matthias Weidle 2011-01-08 10:04:45 UTC
(In reply to comment #10)

> The only problem left is a blank screen after suspend/resume cycle. If I attach
> an external monitor via VGA after the resume then the black screen goes away
> and I can use the computer again.

Interesting enough this procedure is only required once after each cold boot of the system - is no-one else experiencing this problem?
Comment 14 Chris Wilson 2011-01-19 05:51:09 UTC
(In reply to comment #13)
> (In reply to comment #10)
> 
> > The only problem left is a blank screen after suspend/resume cycle. If I attach
> > an external monitor via VGA after the resume then the black screen goes away
> > and I can use the computer again.
> 
> Interesting enough this procedure is only required once after each cold boot of
> the system - is no-one else experiencing this problem?

I've had a similar report over at kernel.bugzilla.org. Not up at the moment, so I can give the actual link.

However, the eDP training fixes are in drm-intel-next. (A single negative report meant that I could not apply them directly to -fixes...)
Comment 15 Matthias Weidle 2011-01-20 09:04:44 UTC
(In reply to comment #14)

> I've had a similar report over at kernel.bugzilla.org. Not up at the moment, so
> I can give the actual link.
> 
> However, the eDP training fixes are in drm-intel-next. (A single negative
> report meant that I could not apply them directly to -fixes...)

Just to let you know: the problem got worse with the current 2.6.38-rc1 - I can no longer use the workaround to turn the internal display back on after resume from suspend-to-ram, only the external display hooked up via VGA still works :-(

Can you please give me the commit ids which are supposed to fix this issue?
Comment 16 Jari Tahvanainen 2016-10-28 09:46:30 UTC
Closing really old resolved+fixed.


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.