Bug 90368 - [Regression] bisected igt/kms_3d has hardcoded expectations of internal kernel detai
Summary: [Regression] bisected igt/kms_3d has hardcoded expectations of internal kerne...
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: highest blocker
Assignee: Olivier Berthier
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-08 07:28 UTC by ye.tian
Modified: 2016-10-11 12:06 UTC (History)
2 users (show)

See Also:
i915 platform: ALL
i915 features: display/Other


Attachments
dmesg info (117.76 KB, text/plain)
2015-05-08 07:28 UTC, ye.tian
no flags Details
dmesg log on SKL with drm-intel-testing-2015-10-10 (286.14 KB, text/plain)
2015-10-16 13:01 UTC, Olivier Berthier
no flags Details
dmesg-dmesg-kms_3d (125.03 KB, text/plain)
2016-03-15 08:45 UTC, cprigent
no flags Details
bsw-dmesg-kms_3d (125.03 KB, text/plain)
2016-03-15 08:46 UTC, cprigent
no flags Details
kblu dmesg log (215.57 KB, text/x-log)
2016-06-24 11:39 UTC, Olivier Berthier
no flags Details

Description ye.tian 2015-05-08 07:28:55 UTC
Created attachment 115628 [details]
dmesg info

==System Environment==       
-----------------------------------------------------
Regression: Yes
Non-working platforms: SNB

==Kernel==
--------------------------------------------------
commit 20e7fca46c6d1598a9720f3b0b06acb982919cf8
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu May 7 18:16:42 2015 +0200

    drm-intel-nightly: 2015y-05m-07d-16h-16m-10s UTC integration manifest

==Bug detailed description==
--------------------------------------------------
Igt/kms_3d fails on SNB.
It’s kernel regression, By bisected, show the first bad commit is 8b80c00.

commit 8b80c007b40eed22b6af215eb3dfac42d8276b09
Author:     Ville Syrjälä <ville.syrjala@linux.intel.com>
AuthorDate: Thu Apr 2 17:02:11 2015 +0300
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Wed May 6 16:40:24 2015 +0200

    drm/edid: Add DMT modes with ID > 0x50
    
    DMT Version 1.0, Rev. 13 lists a bunch of new modes we don't currently
    have in our dmt mode table. So add them.
    
    The order may look a bit weird since it's not sorted based on the DMT
    ID, but this is the order they appear in the standard. I suppose they
    are ordered by the resolution, pixel clock, or some such factor. I
    decided that it's perhaps best to keep the same order as the spec.
    

==output==
-----------------------------
root@x-sgb3:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_3d
IGT-Version: 1.10-g3be5920 (x86_64) (Linux: 4.1.0-rc2_drm-intel-nightly_20e7fc_20150508+ x86_64)
Test assertion failure function __real_main31, file kms_3d.c:77:
Failed assertion: mode_count == 15
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x193]
  #2 [__libc_start_main+0xf5]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Test kms_3d failed.
**** DEBUG ****
(kms_3d:4730) drmtest-DEBUG: Test requirement passed: fd >= 0
Test requirement passed: fd >= 0
Test requirement passed: drmSetMaster(fd) == 0
Test requirement passed: connector
Connector HDMI-A-1/force is now forced on
Current forced connectors:
        HDMI-A-1/force
Test assertion failure function __real_main31, file kms_3d.c:77:
Failed assertion: mode_count == 15
****  END  ****
FAIL (0.002s)


==Reproduce steps==
----------------------------
1,./kms_3d
Comment 1 Ville Syrjala 2015-05-29 10:22:15 UTC
commit 0d16473df4ed29c9836b03090c78debfb9a7e3e6
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Fri May 8 17:46:21 2015 +0300

    tests/kms_3d: Reduce the number of expected stereo 3D modes
Comment 2 ye.tian 2015-06-12 01:34:39 UTC
Test it on the latest kernel and the latest igt (6b418f), it still fails.

output:
-----------------
root@x-sgb3:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_3d
IGT-Version: 1.10-g0d16473 (x86_64) (Linux: 4.1.0-rc7_drm-intel-nightly_a2ed0c_20150610+ x86_64)
Test assertion failure function __real_main31, file kms_3d.c:77:
Failed assertion: mode_count == 13
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x1a3]
  #2 [__libc_start_main+0xf5]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Test kms_3d failed.
**** DEBUG ****
(kms_3d:4388) drmtest-DEBUG: Test requirement passed: fd >= 0
Test requirement passed: fd >= 0
Test requirement passed: drmSetMaster(fd) == 0
Test requirement passed: connector
Connector HDMI-A-1/force is now forced on
Current forced connectors:
        HDMI-A-1/force
Test assertion failure function __real_main31, file kms_3d.c:77:
Failed assertion: mode_count == 13
****  END  ****
FAIL (0.004s)
Comment 3 Olivier Berthier 2015-10-16 13:01:05 UTC
Created attachment 118921 [details]
dmesg log on SKL with drm-intel-testing-2015-10-10

Reproduced on Sky Lake Y with the drm-intel-testing-2015-10-10 kernel.

Setup:
------
kernel: drm-intel-testing 2015-10-10 c38f2c24fb6484fc6900efa6f8d968e8ee964e9c
cairo: 1.14.2 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d 
libdrm: 2.4.65 c3496167637e35cf8a52d5e7e53a412e79d80db0
intel-driver: 1.6.1 35858c69166b845c59ca32e19a3dbb0b758df209 
libva: 1.6.1 613eb962b45fbbd1526d751e88e0d8897af6c0e0
mesa: 11.0.3 914966befcd57764941405707d8f57d3e7e7f768 
xf86-video-intel: 2.99.917 baec802b21387d04aebb10ac29e719a1800c5aa0 
xserver: 1.17.2 2123f7682d522619f101b05fb75efa75dabbe371

intel-gpu-tools: origin/master, origin/HEAD bfea74a9f64a900bcb90f946b38746781017449f
Comment 4 Rami 2015-11-13 12:51:14 UTC
reproduced on BSW with last setup:
Hardware:
Platform: Braswell M 
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping: 4)
SoC : BSW C0
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:
Linux distribution: Ubuntu 15.04 LTS 64 bits 
BIOS : BRAS.X64.B084.R00.1508310642
TXE FW : 2.0.0.2073
Ksc : 1.08
kernel  drm-intel-nightly
Commit a3b0dec82fdb59c629c4fb9847245b80b0cf69dd
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Nov 6 14:48:23 2015 +0200
drm-intel-nightly: 2015y-11m-06d-12h-48m-02s UTC integration manifest
cairo: (HEAD, tag: 1.14.2) 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d from git://git.freedesktop.org/git/cairo
drm: (HEAD, tag: libdrm-2.4.65, tag: 2.4.65) c3496167637e35cf8a52d5e7e53a412e79d80db0 from git://git.freedesktop.org/git/mesa/drm
intel-driver: (HEAD, tag: 1.6.1, origin/v1.6-branch) 35858c69166b845c59ca32e19a3dbb0b758df209 from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, tag: libva-1.6.1, origin/v1.6-branch) 613eb962b45fbbd1526d751e88e0d8897af6c0e0 from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, tag: mesa-11.0.4) 31bf24703193cc23961923e01548b1acb2760a93 from git://git.freedesktop.org/git/mesa/mesa
xf86-video-intel: (HEAD, tag: 2.99.917) baec802b21387d04aebb10ac29e719a1800c5aa0 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
xserver: (HEAD, tag: xorg-server-1.17.2) 2123f7682d522619f101b05fb75efa75dabbe371 from git://git.freedesktop.org/git/xorg/xserver
* Tools *
intel-gpu-tools: (HEAD, origin/master, origin/HEAD, master) bfea74a9f64a900bcb90f946b38746781017449f from git://git.freedesktop.org/git/xorg/app/intel-gpu-tools
Comment 5 Olivier Berthier 2015-11-19 16:29:41 UTC
Reproduced on Sky Lake Y with the kernel 4.3.0-rc5 drm-intel-next-fixes-2015-11-06, but the test pass without external DP screen.

Setup:
------

Hardware
Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D0 2+2 (ou ULX-D1)
QDF : QJA4 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories

Software
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1191
Ksc (EC FW): 1.19
Linux : Ubuntu 15.04 64 bits
Kernel : 4.3.0-rc5 drm-intel-next-fixes-2015-11-06
commit 816d2206f0f9953ca854e4ff1a2749a5cbd62715
Merge: d0baf92 1b0e3a0
Author: Dave Airlie <airlied@gmail.com>
Date:   Sat Nov 7 17:16:59 2015 +1000

    Merge tag 'drm-intel-next-fixes-2015-11-06' of git://anongit.freedesktop.org/drm-in
 

cairo: 1.14.2
drm: 2.4.65
vaapi/intel-driver: 1.6.1
vaapi/libva: 1.6.1
mesa: mesa-11.0.5
xf86-video-intel: 2.99.917
xserver:  xorg-server-1.17.2

Intel GPU Tools: master bfea74a9f64a900bcb90f946b38746781017449f
Comment 6 cprigent 2016-03-15 08:45:28 UTC
Created attachment 122307 [details]
dmesg-dmesg-kms_3d
Comment 7 cprigent 2016-03-15 08:46:01 UTC
Created attachment 122308 [details]
bsw-dmesg-kms_3d
Comment 8 cprigent 2016-03-15 08:47:09 UTC
Segmentation fault on BSW.

# ./kms_3d
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
Testing:
    1920x1080i 60 1920 2008 2052 2200 1080 1084 1094 1125 0x20015 0x40 74250 (3D:SBSH)
(kms_3d:1715) igt-core-CRITICAL: Could not open data file "1080p-left.png": No such file or directoryReceived signal SIGSEGV.
Segmentation fault (core dumped)


Hardware: 
Motherboard: Aspire XC-704 
cpu model name : Intel(R) Pentium(R) CPU N3700 @ 1.60GHz 
cpu model : 76 
cpu family : 6 
Graphic card: Device 22b1 (rev 21)

Software:
Bios: R01-A2
Kernel mainline 4.4.0 from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  commit afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
  Author: Linus Torvalds <torvalds@linux-foundation.org>
  Date:   Sun Jan 10 15:01:32 2016 -0800
  Linux 4.4
drm: libdrm-2.4.67-5 ea07de9 from git://anongit.freedesktop.org/mesa/drm
mesa: tag mesa-11.1.2 7bcd827 from git://anongit.freedesktop.org/mesa/mesa
cairo: tag 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
waffle: master bb29b2a from git://github.com/waffle-gl/waffle
xorg-server-macros: tag: util-macros-1.19.0-2 d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
xserver: tag: xorg-server-1.18.1 23e60f9 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: tag 2.99.917-560 d167280 from git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
libva: tag libva-1.7.0.pre1 35f1447 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: tag 1.7.0.pre1 ab8e4e3 from git://anongit.freedesktop.org/vaapi/intel-driver
IGT 1.14 364d378 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

One external screen connected to HDMI
Comment 9 yann 2016-03-18 16:39:48 UTC
looks like this SEGFAULT is linked to IGT build / package or path used here. This file (1080p-left.png) is present in intel-gpu-tools/tests/. Christophe et al. can you check?

This comment is not relevant for the other issue comments here.
Comment 10 cprigent 2016-03-25 15:47:03 UTC
I confirm image is here: intel-gpu-tools/tests/1080p-left.png
Comment 11 cprigent 2016-06-17 12:51:51 UTC
Assigned to Olivier to check our installation procedure/package.
Comment 12 Olivier Berthier 2016-06-24 08:12:57 UTC
Not reproduced, this bug seems to be resolved with IGT 1.15.
Comment 13 Olivier Berthier 2016-06-24 11:39:40 UTC
Created attachment 124700 [details]
kblu dmesg log

The test pass on Sky Lake Y and Kaby Lake Y, but fail on Kaby Lake U.
Comment 14 Ville Syrjala 2016-09-20 14:11:20 UTC
(In reply to Olivier Berthier from comment #13)
> Created attachment 124700 [details]
> kblu dmesg log
> 
> The test pass on Sky Lake Y and Kaby Lake Y, but fail on Kaby Lake U.

How does it fail exactly?
Comment 15 Jari Tahvanainen 2016-09-21 11:23:15 UTC
Highest+Blocker due to regression w/o workaround
Comment 16 yann 2016-09-22 09:18:47 UTC
Christophe, Olivier,

please elaborate a little bit more on the Kaby Lake U failure: for instance, providing igt test execution trace results....

Is it still failing with latest kernel & igt ?
Comment 17 Elio 2016-10-10 20:01:07 UTC
Removing IVB from header, 
Passing with following configuration:
Software Configuration:
======================================
Bios: BH7710H.86A.0096.2012.1012.1645
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0 f35ed31 from http://cgit.freedesktop.org/drm-intel/
  commit f35ed31aea66b3230c366fcba5f3456ae2cb956e
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Mon Oct 10 14:29:09 2016 +0300
  drm-intel-nightly: 2016y-10m-10d-11h-28m-51s UTC integration manifest
libdrm-2.4.71 a44c9c3 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-76 97a8353 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-712 696f58f 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-133 dd73514 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-59 48a9e1e from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 18 cprigent 2016-10-11 08:51:40 UTC
Test is Pass on SNB. I removed it from title and "i915 platform" field

Platform SNB: Desktop DH67GD
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (family 6, model 42, stepping 7)
Motherboard version: AAG10206-208
GPU: Intel® HD Graphics 3000 - Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

Software
Bios: BLH6710H.86A.0132.2011.1007.1505
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0 f35ed31 from http://cgit.freedesktop.org/drm-intel/
  commit f35ed31aea66b3230c366fcba5f3456ae2cb956e
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Mon Oct 10 14:29:09 2016 +0300
  drm-intel-nightly: 2016y-10m-10d-11h-28m-51s UTC integration manifest
libdrm-2.4.71 a44c9c3 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-76 97a8353 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-712 696f58f 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-133 dd73514 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-59 48a9e1e from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 19 cprigent 2016-10-11 08:54:28 UTC
Pass on BSW, with same SW configuration as previous comment.

Hardware BSW: Acer Desktop
Motherboard: Aspire XC-704
CPU: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz (Family 6, Model 76, Stepping 3)
GPU:  Intel® HD Graphics - Intel Corporation Device 22b1 (rev 21)
Memory card: 1 card 4GB Hynix HMT451S6BFR8APB
HDD: Western Digital WDC WD10EZEX-21M (1TB)

Software:
Bios: R01-A2
Comment 20 cprigent 2016-10-11 08:56:34 UTC
Pass on SKL, with same SW configuration as comment 18.

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 21 cprigent 2016-10-11 12:03:28 UTC
Pass on APL, with same SW configuration as comment 18.
BXT removed from title and "i915 features" field.

Platform BXT-P: APL system
CPU Name : Intel(R) Genuine Processor @ 1.1 GHz (family: 6, model: 12, stepping: 9) 4 cores
QDF : Q6HE
SoC : B1
CRB : Apollo Lake DDR3L RVP1A FAB2
Reworks: R19, R20
Software 
Bios: 144_B10 APLK_B0_IFWI_X64_R_2016_06_27_0956_SPI_RVP1.bin from \\gar\ec\proj\ba\CCG\APL BIOS\External\BIOS_Release\Daily\v144_10_2016_WW27.1\IFWI\IFWI_RVP1_Release\IFWI
KSC: 1.15
Linux distribution: Ubuntu 16.04 64 bits
DMC 1.07
GuC 8.7
External screens: ASUS PB238Q (HDMI), LG 25UM55D (DP)
Comment 22 cprigent 2016-10-11 12:06:32 UTC
Pass on KBL, with same SW configuration as comment 18.

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
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
External screen: ASUS PB238Q (DP)
Comment 23 cprigent 2016-10-11 12:06:41 UTC
So 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.