Bug 91269 - [SKL] Bisected - Black screen when booting
Summary: [SKL] Bisected - Black screen when booting
Status: CLOSED NOTOURBUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: highest critical
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-08 15:33 UTC by cprigent
Modified: 2016-04-20 16:17 UTC (History)
3 users (show)

See Also:
i915 platform: SKL
i915 features:


Attachments
Kernel configuration (131.32 KB, text/plain)
2015-07-08 15:33 UTC, cprigent
no flags Details
nightly-ww28_screen-off-when_booting_drm.debug_kern.log (427.30 KB, text/plain)
2015-07-08 15:36 UTC, cprigent
no flags Details
nightly-ww28_screen-off-when_booting_kern.log (311.19 KB, text/plain)
2015-07-08 15:36 UTC, cprigent
no flags Details
i915_opregion (8.00 KB, text/plain)
2015-08-24 10:12 UTC, cprigent
no flags Details

Description cprigent 2015-07-08 15:33:34 UTC
Created attachment 117005 [details]
Kernel configuration

Regresion:
---------
Yes, it was not reproduced with Kernel 4.1.0 from git://anongit.freedesktop.org/drm-intel branch drm-intel-nighlty 28b121260e4becad301d454a5da68945c9c66564

Setup
------
Hardware
Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m3-6Y30 CPU @ 0.8GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1  2+2 (ou ULX-D1)
QDF : QYV3 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software 
Linux : Ubuntu 14.04 LTS 64 bits
BIOS : SKLSE2R1.R00.X085.B02.150601337
ME FW : 11.0.0.1149
Ksc (EC FW): 1.15
Kernel 4.1.0 from git://anongit.freedesktop.org/drm-intel branch drm-intel-nighlty 28217ad8476e98c106c3f78e06140b052e2b6b38
cairo 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d from http://cgit.freedesktop.org/cairo
drm b2360626c4aa1dccdf3fe258b833121748d64d35 from http://cgit.freedesktop.org/mesa/drm/
intel-driver f3f74ea23601750078215fad04dde6748364b88d from http://cgit.freedesktop.org/vaapi/intel-driver
libva 0f88a645ab3cea69d63371189e53cd465ab95a20 from http://cgit.freedesktop.org/libva/
mesa 24b043aab73ce066ded6e4bc93f589008dfc8484 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel baec802b21387d04aebb10ac29e719a1800c5aa0 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
xserver from http://cgit.freedesktop.org/xorg/xserver
xorg: 1.17.99   installed with script git_xorg.sh


Steps:
-------
1. Boot DUT
2. Wait a moment

Actual results:
----------------
2. Black screen. DUT is responding via ssh.

Expected result:
-----------------
2. DUT boots with UI

Info:
-----
UI is displayed on an external monitor connected to mini Display Port or HDMI
Reproduced on BSW

Bisect results:
----------------
~/dev/drm-intel$ git bisect bad
d26a5b6e80c87fd8fd136eb0a334fc7960ac9699 is the first bad commit
commit d26a5b6e80c87fd8fd136eb0a334fc7960ac9699
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Thu Jul 2 17:42:46 2015 +0300

    drm/i915: Disable LVDS port after the pipe on PCH

    Follow the correct pipe vs port disable sequence for the PCH LVDS
    ports, ie. disable the port after the pipe.

    Other PCH port were already converted in the following commits:
     1ea56e269e136544c0a76dc831c5edc27c47cb3c drm/i915: Disable CRT port after pipe on PCH platforms
     3c65d1d1bb92ea959e8bce3eeae90fe5c3daa58a drm/i915: Disable SDVO port after the pipe on PCH platforms
     a4790cec3adf5eec91f397b1884706a71c70730f drm/i915: Disable HDMI port after the pipe on PCH platforms
     08aff3fe26ae7a0d6f302ac2e1b7e2eb9933cd42 drm/i915: Move DP port disable to post_disable for pch platforms
    but LVDS was forgotten.

    Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

:040000 040000 e9fc0da8e66e1a85df70bc2a8ccf3233b591bae3 114f530b138d0533989953a5b6aa9e62fe136337 M      drivers
~/dev/drm-intel$
~/dev/drm-intel$


End of /var/log/kern.log:
-------------------------
Jul  8 11:56:07 SKLY6 kernel: [    9.071732] WARNING: CPU: 0 PID: 2218 at drivers/gpu/drm/i915/intel_runtime_pm.c:532 skl_set_power_well+0x1ec/0x8d0 [i915]()
Jul  8 11:56:07 SKLY6 kernel: [    9.071741] DC6 already programmed to be disabled.
Jul  8 11:56:07 SKLY6 kernel: [    9.071749] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy x86_pkg_temp_thermal joydev coretemp kvm_intel kvm snd_seq_oss microcode asix usbnet snd_seq_midi snd_rawmidi snd_seq_midi_event serio_raw snd_seq snd_seq_device snd_timer snd soundcore shpchp i915 drm_kms_helper drm wmi battery ipv6 bnep rfcomm bluetooth rfkill video parport_pc ppdev ac button acpi_cpufreq lp parport sdhci_pci sdhci led_class mmc_core
Jul  8 11:56:07 SKLY6 kernel: [    9.071959] CPU: 0 PID: 2218 Comm: gpu-manager Tainted: G        W       4.1.0-nightly-ww28+ #1
Jul  8 11:56:07 SKLY6 kernel: [    9.071964] Hardware name: Intel Corporation Skylake Client platform/Skylake Y LPDDR3 RVP3, BIOS SKLSE2R1.R00.X090.B01.1506290657 06/29/2015
Jul  8 11:56:07 SKLY6 kernel: [    9.071969]  0000000000000009 ffff88016c06ba98 ffffffff8188b66e ffffffff81092e89
Jul  8 11:56:07 SKLY6 kernel: [    9.071982]  ffff88016c06bae8 ffff88016c06bad8 ffffffff810452f1 0000000000000282
Jul  8 11:56:07 SKLY6 kernel: [    9.071993]  ffffffffa033f677 ffff88016dc10000 ffffffffa03fd370 ffff88003775b000
Jul  8 11:56:07 SKLY6 kernel: [    9.072015] Call Trace:
Jul  8 11:56:07 SKLY6 kernel: [    9.072027]  [<ffffffff8188b66e>] dump_stack+0x45/0x57
Jul  8 11:56:07 SKLY6 kernel: [    9.072036]  [<ffffffff81092e89>] ? console_unlock+0x36a/0x399
Jul  8 11:56:07 SKLY6 kernel: [    9.072043]  [<ffffffff810452f1>] warn_slowpath_common+0xa1/0xbb
Jul  8 11:56:07 SKLY6 kernel: [    9.072082]  [<ffffffffa033f677>] ? skl_set_power_well+0x1ec/0x8d0 [i915]
Jul  8 11:56:07 SKLY6 kernel: [    9.072095]  [<ffffffff81045351>] warn_slowpath_fmt+0x46/0x48
Jul  8 11:56:07 SKLY6 kernel: [    9.072140]  [<ffffffffa033f677>] skl_set_power_well+0x1ec/0x8d0 [i915]
Jul  8 11:56:07 SKLY6 kernel: [    9.072183]  [<ffffffffa033fd80>] skl_power_well_enable+0x13/0x15 [i915]
Jul  8 11:56:07 SKLY6 kernel: [    9.072223]  [<ffffffffa033ffb8>] intel_display_power_get+0xa1/0xce [i915]
Jul  8 11:56:07 SKLY6 kernel: [    9.072294]  [<ffffffffa03bab0b>] intel_hdmi_set_edid+0x39/0xc9 [i915]
Jul  8 11:56:07 SKLY6 kernel: [    9.072364]  [<ffffffffa03bac09>] intel_hdmi_detect+0x6e/0x8d [i915]
Jul  8 11:56:07 SKLY6 kernel: [    9.072382]  [<ffffffffa0310117>] drm_helper_probe_single_connector_modes_merge_bits+0xcd/0x3b8 [drm_kms_helper]
Jul  8 11:56:07 SKLY6 kernel: [    9.072399]  [<ffffffffa0310415>] drm_helper_probe_single_connector_modes+0x13/0x15 [drm_kms_helper]
Jul  8 11:56:07 SKLY6 kernel: [    9.072438]  [<ffffffffa02bb804>] drm_mode_getconnector+0xf3/0x346 [drm]
Jul  8 11:56:07 SKLY6 kernel: [    9.072447]  [<ffffffff8112b142>] ? might_fault+0x42/0x92
Jul  8 11:56:07 SKLY6 kernel: [    9.072475]  [<ffffffffa02afdce>] drm_ioctl+0x36a/0x3e9 [drm]
Jul  8 11:56:07 SKLY6 kernel: [    9.072509]  [<ffffffffa02bb711>] ? drm_mode_getcrtc+0x11f/0x11f [drm]
Jul  8 11:56:07 SKLY6 kernel: [    9.072520]  [<ffffffff81163610>] do_vfs_ioctl+0x3bb/0x47a
Jul  8 11:56:07 SKLY6 kernel: [    9.072528]  [<ffffffff8116ff6b>] ? mntput+0x2d/0x2f
Jul  8 11:56:07 SKLY6 kernel: [    9.072536]  [<ffffffff81153cac>] ? __fput+0x19f/0x1ae
Jul  8 11:56:07 SKLY6 kernel: [    9.072543]  [<ffffffff8116d0ae>] ? __fget_light+0x50/0x75
Jul  8 11:56:07 SKLY6 kernel: [    9.072551]  [<ffffffff81163722>] SyS_ioctl+0x53/0x81
Jul  8 11:56:07 SKLY6 kernel: [    9.072561]  [<ffffffff81893697>] system_call_fastpath+0x12/0x6f
Jul  8 11:56:07 SKLY6 kernel: [    9.072568] ---[ end trace 1fcf8c90483db41d ]---
Jul  8 11:56:07 SKLY6 kernel: [    9.073473] [drm:skl_set_power_well [i915]] *ERROR* CSR firmware not ready (2)
Jul  8 11:56:08 SKLY6 kernel: [   10.319166] IPv6: ADDRCONF(NETDEV_CHANGE): eth5: link becomes ready
Jul  8 11:56:08 SKLY6 kernel: [   10.321414] asix 1-2:1.0 eth5: link up, 100Mbps, full-duplex, lpa 0xC1E1
Comment 1 cprigent 2015-07-08 15:36:03 UTC
Created attachment 117006 [details]
nightly-ww28_screen-off-when_booting_drm.debug_kern.log
Comment 2 cprigent 2015-07-08 15:36:48 UTC
Created attachment 117007 [details]
nightly-ww28_screen-off-when_booting_kern.log
Comment 3 Ville Syrjala 2015-07-08 15:47:15 UTC
> Bisect results:
> ----------------
> ~/dev/drm-intel$ git bisect bad
> d26a5b6e80c87fd8fd136eb0a334fc7960ac9699 is the first bad commit
> commit d26a5b6e80c87fd8fd136eb0a334fc7960ac9699
> Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Date:   Thu Jul 2 17:42:46 2015 +0300
> 
>     drm/i915: Disable LVDS port after the pipe on PCH

That doesn't make sense since neither of the affected platforms have LVDS.
Comment 4 cprigent 2015-07-25 15:39:18 UTC
Reproduced on SKL with kernel 4.2-rc2. External screen works.
It is no more reproduced on BSW.

We found a "workaround":
1. suspend to RAM (command: echo mem > /sys/power/state)
2. Wait external screen goes to power save mode
3. Resume -> Display works on eDP screen

Hardware
Platform: SKY LAKE Y A0
CPU : Intel(R) Core(TM) m3-6Y30 CPU @ 0.8GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1  2+2 (ou ULX-D1)
QDF : QYV3 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software 
BIOS : SKLSE2R1.R00.X090.B01.1506290657
ME FW : 11.0.0.1157
Ksc (EC FW): 1.15
Linux distribution: Ubuntu 14.04 LTS 64 bits
Kernel : 4.2.0-rc2 drm-intel-nightly c71b130a3375094ab481e6707a897c969df1843c from git://anongit.freedesktop.org/drm-intel
cairo: (HEAD, tag: 1.14.2) 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d from git://git.freedesktop.org/git/cairo
drm: (HEAD, tag: libdrm-2.4.62, tag: 2.4.62) ba4b5ac010ab85406ec52e3906e13d58cd9aa782 from git://anongit.freedesktop.org/mesa/drm
intel-driver: (HEAD, tag: 1.6.0, origin/v1.6-branch) 32268c46d538667d437dc9266aa4c183e51c1286 from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, tag: libva-1.6.0, origin/v1.6-branch) a8008998bc0d4a76ae6927607c048e52ba50fd0e from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, tag: mesa-10.6.2) 9643cce94c8a1938e3342fb83d025a1e5c2aa79b from git://anongit.freedesktop.org/mesa/mesa
xf86-video-intel: (HEAD, tag: 2.99.917) baec802b21387d04aebb10ac29e719a1800c5aa0 from git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
xserver: (HEAD, tag: xorg-server-1.17.2, origin/server-1.17-branch) 2123f7682d522619f101b05fb75efa75dabbe371 from git://git.freedesktop.org/git/xorg/xserver
Comment 5 Patrik Jakobsson 2015-07-26 21:30:18 UTC
Hi Christophe

As Ville says, the bisected commit is not related to this afaict. The problem seems to appear randomly on my SKL-Y so you probably just got unlucky.

I think this is related to a bug in the hw readout code (could be same as https://bugs.freedesktop.org/show_bug.cgi?id=91428) or the DP link training issue you're seeing in the dmesg. Both issues are causing quite a lot of igt fails on SKL.

I'll look into this tomorrow since it seems quite urgent.
Comment 6 cprigent 2015-07-27 21:54:09 UTC
Not reproduced with kernel drm-intel-nightly c1380a01867fd3cc7922a5152186e1aac7118b35 (4.2.0-rc3) from git://anongit.freedesktop.org/drm-intel
I don't resolve it at the moment, in case this is randomly reproduced.
Comment 7 cprigent 2015-07-28 16:56:50 UTC
Bug scrub:
This bug is not reproduced with fresh setup. Let's close it.
We will report a new one if reproduced.
Comment 8 cprigent 2015-07-31 16:45:04 UTC
Reproduced again.
We tried on 5 platforms. It is reproduced on 3 of them

Platform: SKY LAKE Y A0
CPU : SKL D0 - Intel(R) Core(TM) m3-6Y30 CPU @ 0.8GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1  2+2 (ou ULX-D1)
QDF : QYV3
Chipset PCH: Sunrise Point LP C1
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
BIOS : 93.2
ME FW : 11.0.0.1157
Ksc (EC FW): 1.15
Linux distribution: Ubuntu 14.04 LTS 64 bits
Kernel : 4.2.0-rc3 drm-intel-nightly c1380a01867fd3cc7922a5152186e1aac7118b35 from git://anongit.freedesktop.org/drm-intel
cairo: (HEAD, tag: 1.14.2) 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d from git://git.freedesktop.org/git/cairo
drm: (HEAD, tag: libdrm-2.4.62, tag: 2.4.62) ba4b5ac010ab85406ec52e3906e13d58cd9aa782 from git://anongit.freedesktop.org/mesa/drm
intel-driver: (HEAD, tag: 1.6.0, origin/v1.6-branch) 32268c46d538667d437dc9266aa4c183e51c1286 from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, tag: libva-1.6.0, origin/v1.6-branch) a8008998bc0d4a76ae6927607c048e52ba50fd0e from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, tag: mesa-10.6.2) 9643cce94c8a1938e3342fb83d025a1e5c2aa79b from git://anongit.freedesktop.org/mesa/mesa
xf86-video-intel: (HEAD, tag: 2.99.917) baec802b21387d04aebb10ac29e719a1800c5aa0 from git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
xserver: (HEAD, tag: xorg-server-1.17.2, origin/server-1.17-branch) 2123f7682d522619f101b05fb75efa75dabbe371 from git://git.freedesktop.org/git/xorg/xserver
Comment 9 Gavin Hindman 2015-08-03 07:30:40 UTC
Have you tried to pass either i915.edp_vswing=1 or =2 as a boot option?  This is a driver workaround for incompatible panel vswing values in the default uEFI VBT.  This seems to be bouncing in and out randomly per uEFI release.
Comment 10 cprigent 2015-08-03 15:13:55 UTC
Still reproduced with last setup:
Hardware
Platform: SKY LAKE Y A0
CPU : Intel(R) Core(TM) m3-6Y30 CPU @ 0.8GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1  2+2 (ou ULX-D1)
QDF : QYV3 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software 
Kernel : drm-intel-nightly 7ac3d6977b359242ecabc0b155edf63cf5404913 4.2.0-rc4 from git://anongit.freedesktop.org/drm-intel
drm: (HEAD, origin/master, origin/HEAD, master) fc083322b0c8a58b51976adf23a582bce8bb75f1 from git://git.freedesktop.org/git/mesa/drm
intel-driver: (HEAD, origin/master, origin/HEAD, master) 611d8ea9d75dc026c203e3ebe53b434769d4587c from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, origin/master, origin/HEAD, master) 70b80c0dd2effb4956b208775641f7c68a67a9df from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, origin/master, origin/HEAD, master) 1b2b0e42ce47bfd1fcb5513ed2c23b9bb7a5a5b8 from git://git.freedesktop.org/git/mesa/mesa
xf86-video-intel: (HEAD, origin/master, origin/HEAD, master) 4246c63347290390a2104739c719f5ff6a05a0e2 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
xserver: (HEAD, origin/master, origin/HEAD, master) ea03e314f98e5d8ed7bf7a508006a3d84014bde5 from git://git.freedesktop.org/git/xorg/xserver

Tested with i915.edp_vswing=1 or =2, bug is still reproduced.
Comment 11 cprigent 2015-08-03 16:52:23 UTC
Tested on another platform with processor D0 and rework O-02 + O-06, the workaround i915.edp_vswing=2 works!
Comment 12 cprigent 2015-08-19 08:39:10 UTC
Bug scrub:
Still reproduced with last setup (update this Monday). We will add panel references for better understanding.
Should we report a bug to the Bios team?
Comment 13 Jani Nikula 2015-08-24 08:16:31 UTC
Please attach /sys/kernel/debug/dri/0/i915_opregion on a system that fails.
Comment 14 cprigent 2015-08-24 10:12:35 UTC
Created attachment 117887 [details]
i915_opregion

i915_opregion attached.
Here is the screen reference: DML133X-ZFLWe, LTN133YL01-G01

SKYLAKE Y (plexiglass DUT assembled internally)
CPU : Intel(R) Core(TM) m3-6Y30 CPU @ 0.8GHz 4MB (family: 6, model: 78 stepping: 3)
MCP : SKL-Y D1 2+2
QDF : QVY3
CPU : SKL D1
Chipset PCH: Sunrise Point LP C1
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software
BIOS : SKLSE2R1.R00.X093.B02.1507222151
ME FW : 11.0.0.1163
Ksc (EC FW): 1.15
Linux distribution: Ubuntu 14.04 LTS 64 bits
Kernel: drm-intel-nightly 30263ef782e0548c114fb6f2771b58b27c56ba0d 4.2.0-rc7 from git://anongit.freedesktop.org/drm-intel
Mesa: mesa-10.6.3 ddc976368fef367e464472ebcc2ac4fd89eb9fd8 from http://cgit.freedesktop.org/mesa/mesa/ 
Xf86_video_intel: 2.99.917 baec802b21387d04aebb10ac29e719a1800c5aa0 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/ 
Libdrm: libdrm-2.4.62 ba4b5ac010ab85406ec52e3906e13d58cd9aa782 from http://cgit.freedesktop.org/mesa/drm/ 
Cairo: 1.14.2 from 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d http://cgit.freedesktop.org/cairo 
libva: libva-1.6.0 a8008998bc0d4a76ae6927607c048e52ba50fd0e from http://cgit.freedesktop.org/libva/ 
intel-driver: 1.6.0 32268c46d538667d437dc9266aa4c183e51c1286 from http://cgit.freedesktop.org/vaapi/intel-driver 
Xserver: xorg-server-1.17.2 2123f7682d522619f101b05fb75efa75dabbe371 from http://cgit.freedesktop.org/xorg/xserver

Kernel commit log:
commit 30263ef782e0548c114fb6f2771b58b27c56ba0d
Author: Jani Nikula
Date: Mon Aug 17 10:19:43 2015 +0300
drm-intel-nightly: 2015y-08m-17d-07h-19m-25s UTC integration manifest
Comment 15 rtshiva 2015-08-24 10:39:38 UTC
Please confirm if this is retail box or assembled system built locally.


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.