Bug 89668

Summary: [BSW] HDMI screen becomes black after replug HDMI cable
Product: DRI Reporter: Jeff Zheng <jeff.zheng>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: high CC: intel-gfx-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
dmesg after testdisplay -i
none
dmesg after "testdisplay -a"
none
output of "udevadm monitor --property " during hotplug
none
output of "udevadm monitor --property " with Samsung LS24C570
none
Hotplug detection notification on i-g-t none

Description Jeff Zheng 2015-03-19 03:01:09 UTC
Created attachment 114455 [details]
dmesg

==System Environment==
--------------------------
HDMI monitor: ASUS PA238Q
BIOS: V59 
Regression: Yes. drm-intel-testing-2015-01-30 works, but drm-intel-nightly 2015_03_06 fails. Since BSW failed to boot before drm-intel-nightly 2015_03_06, we are unable to bisect.

Non-working platforms: BSW
Working platforms: 

==kernel==
--------------------------
-testing: drm-intel-testing-2015-03-13 (fails)


==Bug detailed description==
-----------------------------
Boot BSW with HDMI connected without eDP, plug out and in HDMI cable and then HDMI screen becomes black.

==Reproduce steps==
---------------------------- 
1. Connect HDMI display to BSW and boot BSW
2. Plug out HDMI and then plug in to reconnect HDMI monitor
Comment 1 Jeff Zheng 2015-03-19 03:02:47 UTC
Created attachment 114456 [details]
dmesg after testdisplay -i

After hot plug in HDMI, HDMI monitor is black. If I run "testdisplay -i", HDMI monitor lights up again.
Comment 2 Jeff Zheng 2015-03-31 06:59:00 UTC
exists on drm-intel-testing-2015-03-27
Comment 3 Jeff Zheng 2015-04-01 08:01:48 UTC
OK. Sometime I saw this issue and sometime I didn't see this issue. It's weired... WhenI saw one behavior, I tried to do following steps and saw the same behavior:
1. Press monitor power button to turn the monitor off
2. Press DUT power button to turn the DUT off
3. Turn on the monitor
4. Turn on the DUT
Comment 4 Jeff Zheng 2015-04-03 08:07:52 UTC
OK. One possible way to reproduce this issue is using ASUS VS239HR.
If hotplug works, power off ASUS VS239HR by pressing monitor power button and try hotplug again.
Comment 5 Jeff Zheng 2015-04-13 05:39:02 UTC
exists on drm-intel-testing-2015-04-10 + ASUS VS239HR
Comment 6 Jeff Zheng 2015-04-28 01:38:21 UTC
Exists on drm-intel-testing-2015-04-23
Comment 7 Mika Kahola 2015-05-04 07:31:48 UTC
Could we start by checking that the hotplug works ok. If could you run

udevadm monitor --property

and check that uevents are received correctly.
Comment 8 Mika Kahola 2015-05-06 09:54:11 UTC
(In reply to Mika Kahola from comment #7)
> Could we start by checking that the hotplug works ok. If could you run
> 
> udevadm monitor --property
> 
> and check that uevents are received correctly.

Could you also check the output of 'xrandr --verbose' before plugging out the connector as well as after plugging in again.
Comment 9 Jeff Zheng 2015-05-07 06:44:38 UTC
Created attachment 115614 [details]
dmesg after "testdisplay -a"

I'm not sure if this is issue of test machine rework. But this time my ASUS VS239HR is black screen even when I reboot test machine. "testdisplay -i" shows not HDMI connection. It's weired that if I run "testdisplay -a", HDMI monitor shows fine for each mode. After "testdisplay -a" exits, HDMI monitor returns black screen and "testdisplay -i" still shows not HDMI connection.
Comment 10 Jeff Zheng 2015-05-07 06:51:01 UTC
Created attachment 115617 [details]
output of "udevadm monitor --property " during hotplug
Comment 11 Jeff Zheng 2015-05-11 08:40:53 UTC
Exists on drm-intel-testing-2015-05-08 with Samsung LS24C570 HDMI monitor
Comment 12 Jeff Zheng 2015-05-11 08:54:28 UTC
Created attachment 115694 [details]
output of "udevadm monitor --property " with Samsung LS24C570

Again this does not always happen.
Comment 13 Mika Kahola 2015-05-13 11:52:48 UTC
Created attachment 115739 [details] [review]
Hotplug detection notification on i-g-t

From the log I can see that you receive two hotplug events in a row that might be interpreted as HPD storm and the driver switches to polling mode. That might explain why display sometimes works and sometimes doesn't.

I also added a patch to intel-gpu-tools that throws a note when hotplug event is received. If you could run the following test

1. testdisplay -m
2. Unplug HDMI connector
3. Plug back HDMI connector

You should see only two "hotplug events". One for unplugging the connector and one for plugging the connector back. Please report if this test is a success or failure.
Comment 14 Jeff Zheng 2015-05-15 03:34:21 UTC
After apply the patch, testdisplay shows:

root@x-bsw14:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./testdisplay -m 41,0
CRTC(30):[0]  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 0x5 0x48 148500
hotplug event
hotplug event
CRTC(30):[0]  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 0x5 0x48 148500



I upgraded BIOS to V69 and unable to reproduce this issue. So just close.
Comment 15 Mika Kahola 2015-05-15 07:13:05 UTC
VBIOS upgrade to V69 fixed this issue.

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.