Bug 98547

Summary: [BDW SKL KBL HSW] config failure when running kms_setmode basic
Product: DRI Reporter: cprigent <christophe.prigent>
Component: DRM/IntelAssignee: Jari Tahvanainen <jari.tahvanainen>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: freedesktop, intel-gfx-bugs, peacetommy25
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: BDW, HSW, KBL, SKL i915 features: display/backlight, display/eDP, display/HDMI
Attachments:
Description Flags
BDW__kms_setmode__basic__output
none
BDW__kms_setmode__basic__kern.log
none
SKL__kms_setmode__basic__kern.log
none
SKL__kms_setmode__basic__output
none
KBL__kms_setmode__basic__kern.log
none
KBL__kms_setmode__basic__output none

Description cprigent 2016-11-02 12:56:59 UTC
Created attachment 127686 [details]
BDW__kms_setmode__basic__output

Platform BDW: NUC5i3RYB
CPU: Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz (family 6, model 61, stepping 4)
Motherboard version: H41000-503
GPU: Intel® HD Graphics 5500 - Intel Corporation Broadwell-U Integrated Graphics (rev 09)
Memory: two 4GB card Crucial CT51264BF160B.C16F
SSD: INTEL SSDSC2BW48 480 Go

Software
Bios: RYBDWi35.86A.0358.2016.0606.1423 from https://downloadcenter.intel.com/downloads/eula/26081/BIOS-Update-RYBDWi35-86A-?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F26081%2Feng%2FRY0358.bio
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.9.0-rc2 6a1197b from http://cgit.freedesktop.org/drm-intel/
  commit 6a1197bcb5cc18a56ad4ae8e6d706a212bc3db7d
  Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
  Date:   Mon Oct 31 16:58:45 2016 +0200
  drm-intel-nightly: 2016y-10m-31d-14h-58m-16s UTC integration manifest
libdrm-2.4.71-8 fe4579e from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-12.0.0 8b06176 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.902 512e75a from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-722 714052f from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-39 5c47c33 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-153 77ff763 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-105 5bfbbea from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

External screen: DELL U2311Hb

Steps:
------
1. Execute IGT test: 
# ./kms_setmode --r basic

Actual result:
---------------
1. Test is fail

Expected result:
----------------
1. Test is Pass
Comment 1 cprigent 2016-11-02 12:57:19 UTC
Created attachment 127687 [details]
BDW__kms_setmode__basic__kern.log
Comment 2 cprigent 2016-11-02 13:05:56 UTC
This is a regression, test was pass with:
Kernel: 4.9.0-rc1 17dc529 from http://cgit.freedesktop.org/drm-intel/
  commit 17dc529acb9a6a4328b419048e32df586b90646b
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date: Mon Oct 24 14:24:26 2016 +0100
  drm-intel-nightly: 2016y-10m-24d-13h-22m-52s UTC integration manifest
libdrm-2.4.71 9e24d0c from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-12.0.0 8b06176 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.901-80 5dcb066 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-720 388fd4a from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-38 3b7e499 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.2-140 852cea1 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-96 93437cb from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 3 cprigent 2016-11-02 14:27:55 UTC
The merge base 9558e74c26d2d63b9395f4d4153faa05f9de84f8 is bad.
This means the bug has been fixed between 9558e74c26d2d63b9395f4d4153faa05f9de84f8 and [ff00b0c2ba15d802a669c6ee3d1bd3817bc91056].

$ git bisect log
git bisect start
# good: [ff00b0c2ba15d802a669c6ee3d1bd3817bc91056] drm-tip: 2016y-10m-24d-06h-25m-47s UTC integration manifest
git bisect good ff00b0c2ba15d802a669c6ee3d1bd3817bc91056
# bad: [6a1197bcb5cc18a56ad4ae8e6d706a212bc3db7d] drm-intel-nightly: 2016y-10m-31d-14h-58m-16s UTC integration manifest
git bisect bad 6a1197bcb5cc18a56ad4ae8e6d706a212bc3db7d
# bad: [9558e74c26d2d63b9395f4d4153faa05f9de84f8] drm/i915: Update DRIVER_DATE to 20161024
git bisect bad 9558e74c26d2d63b9395f4d4153faa05f9de84f8

$ git show ff00b0c2ba15d802a669c6ee3d1bd3817bc91056
commit ff00b0c2ba15d802a669c6ee3d1bd3817bc91056
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Oct 24 08:26:27 2016 +0200

    drm-tip: 2016y-10m-24d-06h-25m-47s UTC integration manifest

diff --git a/integration-manifest b/integration-manifest
new file mode 100644
index 0000000..7768181
--- /dev/null
+++ b/integration-manifest
@@ -0,0 +1,26 @@
+drm-intel/drm-intel-fixes 1001354ca34179f3db924eb66672442a173147dc
+       Linux 4.9-rc1
+drm-upstream/drm-fixes 26beaee9bb07be20cc641c1251152e280e80f54e
+       Merge branch 'drm-etnaviv-fixes' of git://git.pengutronix.de/lst/linux into drm-fixes
+drm-intel/drm-intel-next-fixes 105f1a65b04a8f4f7abec11b200b1fb54f3d4b46
+       drm/i915: Fix conflict resolution from backmerge of v4.8-rc8 to drm-next
+drm-intel/drm-intel-next-queued 9558e74c26d2d63b9395f4d4153faa05f9de84f8
+       drm/i915: Update DRIVER_DATE to 20161024
+drm-upstream/drm-next fa860a1751e388385a7f249dd3f24a6c76db0ba9
+       drm: Print device information again in debugfs
+sound-upstream/for-next 6aecd8715802d23dc6a0859b50c62d2b0a99de3a
+       ALSA: hda - Fix headset mic detection problem for two Dell laptops
+sound-upstream/for-linus 6aecd8715802d23dc6a0859b50c62d2b0a99de3a
+       ALSA: hda - Fix headset mic detection problem for two Dell laptops
+drm-intel/topic/drm-fixes c6935931c1894ff857616ff8549b61236a19148f
+       Linux 4.8-rc5
+drm-intel/topic/drm-misc 8a5bbf327aa16025c78491266a6425807c7fbee0
+       drm: Use u64 for intermediate dotclock calculations
+drm-misc/drm-misc-next 7fb71c8f4f45afe73d307181be87c877447d0e47
+       drm/i915: Handle early failure during intel_get_load_detect_pipe
+drm-intel/topic/core-for-CI 3eaef151efa39196d5559162ab09c518fec17528
+       kbuild: Disable PIE by default
+drm-misc/drm-misc-next-fixes 1001354ca34179f3db924eb66672442a173147dc
+       Linux 4.9-rc1
+drm-misc/drm-misc-fixes 1001354ca34179f3db924eb66672442a173147dc
+       Linux 4.9-rc1


$ git show 9558e74c26d2d63b9395f4d4153faa05f9de84f8
commit 9558e74c26d2d63b9395f4d4153faa05f9de84f8
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Oct 24 08:25:36 2016 +0200

    drm/i915: Update DRIVER_DATE to 20161024
    
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 5b2b7f3..f022f43 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -70,8 +70,8 @@
 
 #define DRIVER_NAME            "i915"
 #define DRIVER_DESC            "Intel Graphics"
-#define DRIVER_DATE            "20161010"
-#define DRIVER_TIMESTAMP       1476452087
+#define DRIVER_DATE            "20161024"
+#define DRIVER_TIMESTAMP       1477290335
 
 #undef WARN_ON
 /* Many gcc seem to no see through this and fall over :( */
Comment 4 cprigent 2016-11-02 15:39:49 UTC
Also fail on IVB: bug 98553
Comment 5 cprigent 2016-11-02 16:42:12 UTC
Created attachment 127697 [details]
SKL__kms_setmode__basic__kern.log

Same on SKL:

Platform SKL Skull Canyon: NUC6i7KYK
CPU: Intel® Core(TM) i7-6770HQ CPU @ 2.6GHz (family 6, model 94, stepping 3)
GPU: Intel® IrisTM Pro Graphics 580 - Intel Corporation Sky Lake Integrated Graphics (rev 09)
Motherboard version: H90766-405
Memory: 2 x 4GB card Kingston KVR21S15S8/4

Software
Bios: KYSKLi70.86A.0041.2016.0817.1130 from https://downloadcenter.intel.com/downloads/eula/26210/BIOS-Update-KYSKLi70-86A-?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F26210%2Feng%2FKY0041.bio
Linux distribution: Ubuntu 16.04 64 bits
DMC 1.26 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/skldmcver126.tar_1.bz2
GUC 6.1 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2

External screens: ASUS PB287Q (DP), DELL P2715Qt (HDMI)
Comment 6 cprigent 2016-11-02 16:42:29 UTC
Created attachment 127698 [details]
SKL__kms_setmode__basic__output
Comment 7 cprigent 2016-11-08 12:38:34 UTC
Created attachment 127840 [details]
KBL__kms_setmode__basic__kern.log

Reproduced on KBL

Platform: KABY LAKE-U
Processor : Genuine Intel(R) CPU 0000 @ 1.80GHz (cpu family: 6, model: 142, stepping: 9)
MCP : KBL-U J0 2+3e
QDF : QL9J
PCH: PCH-LP C1
CRB : KABY LAKE U DDR3L RVP7
Rework: O-16

Software
BIOS: 45.1 3KBLSE2R1.R00.X045.P01.1606291634 from https://ubit-artifactory-ba.intel.com/artifactory/owr-repos/Submissions/ifwi/KBL_ORANGE_IFWI_2016_WW27_3_03_SR'17/
ME FW: 11.6.0.1065
EC FW: 1.24
KSC: 1.24
Linux distribution: Ubuntu 16.04 64 bits

DMC 1.01 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2
GuC 9.14 from http://rdvivi-hillsboro.jf.intel.com/firmware/kbl_guc_ver9_14.tar.bz2 

Kernel: 4.9.0-rc4 44f8030 from http://cgit.freedesktop.org/drm-intel/
  commit 44f80301cde325b9a33e594f8bec88f84e02fffa
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Mon Nov 7 14:49:12 2016 +0200
  drm-intel-nightly: 2016y-11m-07d-12h-48m-36s UTC integration manifest

libdrm-2.4.71-12 e9eb44b from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-13.0.0 df1b0a5 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.902-2 7513da4 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-726 6c8fc44 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-39 5c47c33 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-153 77ff763 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-112 0db7649 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

External screen: Dell U2311hb (DP)
Comment 8 cprigent 2016-11-08 12:39:23 UTC
Created attachment 127841 [details]
KBL__kms_setmode__basic__output
Comment 9 cprigent 2016-11-17 15:21:46 UTC
This was a new test, not a regression.
Comment 10 Chris Wilson 2016-11-27 11:59:51 UTC
commit 7797517f91f4d08b11fe3763a2bcd0e088e373c9
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Nov 27 11:56:10 2016 +0000

    igt/kms_setmode: Skip unconnected connectors
    
    Assuming that we can program any random unconnected output to a mode is
    nowadays false.
Comment 11 Ville Syrjala 2016-11-28 14:35:57 UTC
(In reply to Chris Wilson from comment #10)
> commit 7797517f91f4d08b11fe3763a2bcd0e088e373c9
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Sun Nov 27 11:56:10 2016 +0000
> 
>     igt/kms_setmode: Skip unconnected connectors
>     
>     Assuming that we can program any random unconnected output to a mode is
>     nowadays false.

Not really. HDMI/VGA should work everywhere. Except the kernel is broken on DDI platforms. I should rebase and repost my DDI encoder->type fixes I suppose...
Comment 12 cprigent 2017-01-17 10:11:19 UTC
Hi Jari,
I see it failing on BDW NUC5i7RYB. It must be executed again and also on the other platforms. If failure is confirmed the bug must be re-opened and fresh logs attached (or a new bug must be reported if failure is different).
Thanks.

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.