Bug 89461 - [BSW] replug HDMI/DP cable does not light up screen sometimes
Summary: [BSW] replug HDMI/DP cable does not light up screen sometimes
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: high major
Assignee: Ville Syrjala
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-06 09:35 UTC by Jeff Zheng
Modified: 2017-07-24 22:48 UTC (History)
4 users (show)

See Also:
i915 platform: BSW/CHT
i915 features: display/DP, display/HDMI, display/Other


Attachments
dmesg log (268.34 KB, text/plain)
2015-03-06 09:35 UTC, Jeff Zheng
no flags Details
HPD storm detection and limitation (1.68 KB, patch)
2015-05-19 09:33 UTC, Mika Kahola
no flags Details | Splinter Review
dmesg log with Mika's patch (175.44 KB, text/plain)
2015-05-26 06:22 UTC, Jeff Zheng
no flags Details
dmesg with i915.disable_power_well=0 (205.82 KB, text/plain)
2015-06-08 01:13 UTC, Jeff Zheng
no flags Details
[PATCH] debug sink state on long hpd (1.35 KB, patch)
2015-08-18 14:21 UTC, Ville Syrjala
no flags Details | Splinter Review

Description Jeff Zheng 2015-03-06 09:35:45 UTC
Created attachment 114074 [details]
dmesg log

==System Environment==
--------------------------
BIOS: V55 with 'dynamic memory self refresh' disabled

Regression: No. Also saw this issue on drm-intel-testing-2015-01-30.

Non-working platforms: BSW

==kernel==
--------------------------
-testing: drm-intel-testing-2015-02-27 + attachment 113995 [details] [review] (fails)

==Bug detailed description==
-----------------------------
Replug HDMI/DP cable does not light up screen sometimes, which is quite easy to reproduce when boots without eDP.

==Reproduce steps==
---------------------------- 
1. Boot without eDP
2. Plug in DP or HDMI cable
3. Check the monitor
4. Unplug the cable
5. Repeast step 2-4, sometime the monitor is black.
Comment 1 Jeff Zheng 2015-03-31 07:53:56 UTC
exists on drm-intel-testing-2015-03-27 with DP monitor ASUS PA238Q
Comment 2 Jeff Zheng 2015-04-13 06:06:14 UTC
exists on drm-intel-testing-2015-04-10 with DP monitor ASUS PA238Q
Comment 3 Jeff Zheng 2015-04-29 06:44:32 UTC
I can very easily reproduce this issue with Dell U2311Hb DP monitor on drm-intel-testing-2015-04-23:

1. Boot with DP connected
2. xinit
3. plug out and then plugin DP cable.
Comment 4 Jeff Zheng 2015-05-11 07:16:11 UTC
Exists on drm-intel-testing-2015-05-08
Comment 5 Mika Kahola 2015-05-15 07:18:52 UTC
This seems to be a duplicate to #89668.

Are you able to replicate this problem if you upgrade VBIOS to V69 as in bug #89668?
Comment 6 Jeff Zheng 2015-05-15 07:49:44 UTC
This issue still exists with V69 BIOS
Comment 7 vivekanandhan J 2015-05-15 08:04:38 UTC
This issue is reproducing with below stack
kernel-Eywa-4.1.0-rc3
Bios ver: 68.1
Ksc: 1.08

Dp monitor: Dell U2410
HDMI monitor: Acer S220HQL
Comment 8 Mika Kahola 2015-05-19 09:33:02 UTC
Created attachment 115898 [details] [review]
HPD storm detection and limitation

Please try out this HPD detection and storm prevention patch. I don't have any means to replicate this issue and test if this patch would work or not so please give it a go and report back with dmesg log.
Comment 9 Jeff Zheng 2015-05-26 06:22:18 UTC
Created attachment 116038 [details]
dmesg log with Mika's patch

Exists on drm-intel-testing-2015-05-22.

After apply MiKa's patch to f0b5e3c6b1ecc9b297c3b2ee5da9ae4fe8d5c795, this issue still exists.
Comment 10 Ville Syrjala 2015-05-26 13:32:50 UTC
I think this is just another case of hotplug not working while the pipe-a power well is down (which happens when all displays get turned off).

See bug 89008 for some extra details.
Comment 11 Mika Kahola 2015-05-29 06:15:50 UTC
We could try to keep the power wells on by using the module option 'i915.disable_power_well=0' and check the outcome.
Comment 12 Jeff Zheng 2015-06-04 03:10:02 UTC
Check status from NEEDINFO to New.

conselvan2, what information did you want when you changed status to NEEDINFO, or just a typo?
Comment 13 Ander Conselvan de Oliveira 2015-06-04 06:32:20 UTC
(In reply to Jeff Zheng from comment #12)
> Check status from NEEDINFO to New.
> 
> conselvan2, what information did you want when you changed status to
> NEEDINFO, or just a typo?

See comment 11. Please test with i915.disable_power_well=0 in the kernel command line.
Comment 14 Jeff Zheng 2015-06-08 01:13:50 UTC
Created attachment 116342 [details]
dmesg with i915.disable_power_well=0

This dmesg is generated with:
1. Boot with both eDP and DP connected
2. xinit &
3. unplug DP
4. Plug in DP cable, DP monitor is black screen.
Comment 15 Ville Syrjala 2015-08-18 14:17:53 UTC
(In reply to Jeff Zheng from comment #14)
> Created attachment 116342 [details]
> dmesg with i915.disable_power_well=0
> 
> This dmesg is generated with:
> 1. Boot with both eDP and DP connected
> 2. xinit &
> 3. unplug DP
> 4. Plug in DP cable, DP monitor is black screen.

You have no userspace to react to the HPDs so the link remains up even if the cable gets disconnected. I suppose there are two options
a) the sink went into D3, although IIRC this would be against the spec (sink is required to enter D0 on full HPD).
b) the sink just doesn't feel that the link is up and running. Can't recall if there's anything in the spec about what should happen on the sink end when the cable is disconnected.

So while the test scenario is a bit bogus it would be interesting to see what the sink is thinking in this case. I'll attach a debug patch for that...
Comment 16 Ville Syrjala 2015-08-18 14:21:32 UTC
Created attachment 117765 [details] [review]
[PATCH] debug sink state on long hpd

Would be interesting to see what this patch says when the cable is reconnected.
Comment 18 cprigent 2015-11-17 17:39:20 UTC
Bug scrub
Rami,
Could you check with last setup?
Thanks
Comment 19 Rami 2015-11-20 11:07:56 UTC
For this scenario:
1. Boot with both eDP and DP connected
2. startx
3. unplug DP and then plugin DP
Result: it work 

For this scenario:
1. Boot with only eDP
2. startx
3. plugin DP 
Result: DP monitor is black screen
Comment 20 cprigent 2015-11-26 14:44:21 UTC
Hi Ville,
The patch is already applied. It is still reproduced see Rami's steps.
Comment 21 Ville Syrjala 2015-11-26 14:55:38 UTC
(In reply to Rami from comment #19)
> For this scenario:
> 1. Boot with both eDP and DP connected
> 2. startx
> 3. unplug DP and then plugin DP
> Result: it work 
> 
> For this scenario:
> 1. Boot with only eDP
> 2. startx
> 3. plugin DP 
> Result: DP monitor is black screen

Do you have an xrandr client running (eg. some desktop environment) that would enable the new monitor (and potentially resize the screen)? If not, then it's not a bug, just the way things are designed to work.
Comment 22 cprigent 2015-11-26 15:30:15 UTC
In fact it is not reproduced with kernel 4.4-rc2 and Ubuntu 15.


Platform: Braswell M
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping:
4)
SoC : BSW D0
QDF : K6XC
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All 
Feature Reworks: F28, F32, F33, F35, F37
Optional reworks : O-01a; O-02, O-03
Software 
BIOS : BRAS.X64.B088.R00.1510270350
TXE FW : 2.0.0.2093
Ksc : 1.08
Linux : Ubuntu 15.04 64 bits
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1191
Ksc (EC FW): 1.20
Kernel 4.4.0-rc2 nighlty 9e096bc from git://anongit.freedesktop.org/drm-intel
  commit 9e096bc5a20d1d8122740136ab6c584afd4cb913
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Mon Nov 23 17:11:06 2015 +0200
  drm-intel-nightly: 2015y-11m-23d-15h-10m-47s UTC integration manifest
Mesa 11.0.5 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Monitors: Asus PB238Q (DP) and LG 25UM55 (HDMI)
Comment 23 cprigent 2015-11-26 15:30:25 UTC
Closed


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.