Bug 63451 - [ivb dp] lost output after switching the terminal sometimes
Summary: [ivb dp] lost output after switching the terminal sometimes
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-12 06:18 UTC by XiongZhang
Modified: 2017-07-24 22:58 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
After the last mode setting,DP lost output (242.76 KB, text/plain)
2013-04-12 06:18 UTC, XiongZhang
no flags Details
dmesg (17.26 KB, text/plain)
2013-04-27 03:38 UTC, XiongZhang
no flags Details
Both VGA and DP work at 1024 X 768, both can display (14.83 KB, text/plain)
2013-05-07 05:30 UTC, XiongZhang
no flags Details
VGA is 1024 * 768, DP is 1920 X 1200, both can display (14.84 KB, text/plain)
2013-05-07 05:34 UTC, XiongZhang
no flags Details
VGA is 1024 * 768, DP is 1920 X 1200, VGA can display but DP is lost (14.84 KB, text/plain)
2013-05-07 05:36 UTC, XiongZhang
no flags Details

Description XiongZhang 2013-04-12 06:18:43 UTC
Created attachment 77837 [details]
After the last mode setting,DP lost output

Bios Version: ACRVMBY1.86C.0080.B00
Kernel: 3.9.rc6
Label: MBY02SDP
Platform: MahoBay
Processor/Chipset: IvyBridge/PantherPoint
OS:SUSE Linux Enterprise Desktop 11 SP3 Beta4 (x86_64)
2D driver version: 2.21.4

Details:
Connected the VGA + DP and then switched the terminal, sometimes DP output lost, VGA output normally.  This issue doesn't find when connected the HDMI and VGA.

Steps to Reproduce: 
1.Connect DP + VGA .
2.Switch the terminal.

Further info:
If connecting one DP, terminal switch has no problem. But if connecting two displays(DP + VGA), DP worked as 1920 X 1200, VGA worked as 1024 X 768, sometimes DP will lost display no matter in text mode or graphic mode, the lost rate is about 20 percent. When switch terminal to console, DP will work in 1920 X 1200 also. So maybe DP can't work perfectly in 1920 X 1200 on this platform.
Comment 1 Daniel Vetter 2013-04-12 08:34:38 UTC
Just to check: When you the DP signal is lost, is there anything in the dmesg debug output about it? I somewhat expected a link training issue, but in the attached dmesg there's nothing ...

Also, if DP signal is lost, does it restore in a few seconds? If not, does unplugging and replugging the DP cable fix things?
Comment 2 XiongZhang 2013-04-12 09:15:35 UTC
(In reply to comment #1)
> Just to check: When you the DP signal is lost, is there anything in the
> dmesg debug output about it? I somewhat expected a link training issue, but
> in the attached dmesg there's nothing ...

Yes, when dp lost display, there isn't error mesg in dmesg. Once setting dp from 1024 X 768 to 1920 X 1200 at 151.091982 in dmesg, then dp output nothing.

>Also, if DP signal is lost, does
> it restore in a few seconds? If not, does unplugging and replugging the DP
> cable fix things?
it will not restore in a few seconds. 
But unplugging and replugging the DP cable can restore it.

thanks
Comment 3 Daniel Vetter 2013-04-26 07:10:26 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Just to check: When you the DP signal is lost, is there anything in the
> > dmesg debug output about it? I somewhat expected a link training issue, but
> > in the attached dmesg there's nothing ...
> 
> Yes, when dp lost display, there isn't error mesg in dmesg. Once setting dp
> from 1024 X 768 to 1920 X 1200 at 151.091982 in dmesg, then dp output
> nothing.

Can you please attach that error?

Also, can you please retest on latest drm-intel-nightly branch from http://cgit.freedesktop.org/~danvet/drm-intel ?
Comment 4 XiongZhang 2013-04-27 03:34:36 UTC
(In reply to comment #3)

>Can you please attach that
> error?
This is no error message in dmesg when DP lost display.

>Also, can you please retest on latest drm-intel-nightly branch from
> http://cgit.freedesktop.org/~danvet/drm-intel ?
drm-intel-nightly has the same issue
Comment 5 XiongZhang 2013-04-27 03:38:53 UTC
Created attachment 78540 [details]
dmesg

After setting DP to 1920X1080, dp screen become black and lost display. But there is no error message in dmesg.
Comment 6 Jani Nikula 2013-05-06 13:41:50 UTC
I'm pretty clueless here, but it might be interesting to see intel_reg_dumper output after a successful switch and after a failed switch.
Comment 7 XiongZhang 2013-05-07 05:30:37 UTC
Created attachment 78964 [details]
Both VGA and DP  work at 1024 X 768, both can display
Comment 8 XiongZhang 2013-05-07 05:34:44 UTC
Created attachment 78965 [details]
VGA is 1024 * 768, DP is 1920 X 1200, both can display
Comment 9 XiongZhang 2013-05-07 05:36:21 UTC
Created attachment 78966 [details]
VGA is 1024 * 768, DP is 1920 X 1200, VGA can display but DP is lost

the register is almost the same between success and fail.
Comment 10 Daniel Vetter 2013-06-25 16:51:53 UTC
Probably fixed with

commit cdbd2316a03f68b25a135a34d1d24f01ddef0c53
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Jun 5 13:34:03 2013 +0200

    drm/i915: fix up pch pll handling in ->mode_set


in drm-intel-next. Please reopen if that's not the case, thanks.
Comment 11 XiongZhang 2013-06-26 08:38:03 UTC
Today, I tested drm-intel-next-queued branch, this issue exist also.

the latest commit is:
commit 4a46ddde4c0bab99d7bfa26045166d8669bd83a6
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Jun 25 17:26:45 2013 +0100

    drm/i915: Detect invalid scanout pitches
Comment 12 Todd Previte 2013-08-16 21:03:13 UTC
The register difference is just a rolling counter so I would expect that to be different. What is your target Displayport display and did you try reproducing this with a different display? With no message in the logs and no difference between pass and fail in the registers, it's possible this is a failure is on the sink side, not on the source side. 

Certainly not ruling out a potential problem on our side, I'm just curious to see if it happens with more than one Displayport monitor.
Comment 13 Todd Previte 2013-08-16 21:03:23 UTC
The register difference is just a rolling counter so I would expect that to be different. What is your target Displayport display and did you try reproducing this with a different display? With no message in the logs and no difference between pass and fail in the registers, it's possible this is a failure is on the sink side, not on the source side. 

Certainly not ruling out a potential problem on our side, I'm just curious to see if it happens with more than one Displayport monitor.
Comment 14 XiongZhang 2013-08-19 03:01:49 UTC
I tried three DP screens, one screen hasn't this issue, two screens have this problem.
DELL 2408WFPb: no such problem
DELL U2410: has such problem.
HP ZR2440w: has such problem.
Comment 15 Todd Previte 2013-08-26 21:26:47 UTC
Interesting. The DELL 2408 is the older model and doesn't exhibit the same problem. Without errors in the logs, though, we're not chasing a link or lane failure. This might be some discrepancy in how sink devices react to mode changes and how they handle changing or updated stream attributes. I'll keep looking into this and see what I can find.
Comment 16 Jani Nikula 2014-01-10 15:40:36 UTC
Ping. What's the status?
Comment 17 XiongZhang 2014-01-13 05:24:08 UTC
Today, I tested drm-intel-next-queued branch, this issue still exist and is the same as comment#14.
Comment 18 Todd Previte 2014-01-16 06:24:34 UTC
I need to try this again with the latest drm-intel-nightly. But just to clarify - when both VGA and DP are set to 1024x768, then you change DP to 1920x1200, the Displayport signal is lost. Correct?
Comment 19 XiongZhang 2014-01-16 06:31:53 UTC
yes, the dp lost rate is about 20%
Comment 20 Todd Previte 2014-05-13 19:56:48 UTC
When I tried this previously I could not get it to happen on the combination of my MahoBay system and the HP ZR2440w on my desk. I haven't tried this in quite some time though, so I'll see if I can do that by the end of the week.

Have you tried to set different modes once the signal is lost to see if it will come up with a different resolution? Or does it require retraining/hot plugging to restore the video? How about setting it back to 1024x768?
Comment 21 XiongZhang 2014-05-19 07:22:30 UTC
(In reply to comment #20)
> Have you tried to set different modes once the signal is lost to see if it
> will come up with a different resolution? Or does it require retraining/hot
> plugging to restore the video? How about setting it back to 1024x768?

I can reproduce this issue using latest drm-intel-nightly branch.When DP lost output and hot plug DP, sometimes dp can restore. sometimes it can't.
Setting it back to 1024X768, dp can restore display.
Comment 22 Jani Nikula 2014-09-05 09:01:59 UTC
Please retest with current drm-intel-nightly.
Comment 23 Jesse Barnes 2014-12-04 21:02:47 UTC
Timing out and assuming (hopefully!) that this is fixed with misc DP changes since then.


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.