Bug 90546 - [HSW/BDW/BSW/SKL bisected]igt/pm_rpm/drm-resources-equal fails
Summary: [HSW/BDW/BSW/SKL bisected]igt/pm_rpm/drm-resources-equal fails
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high normal
Assignee: Daniel Vetter
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 05:44 UTC by lu hua
Modified: 2017-07-24 22:46 UTC (History)
4 users (show)

See Also:
i915 platform: BDW, BSW/CHT, BYT, HSW, SKL
i915 features: power/Other


Attachments
dmesg (124.78 KB, text/plain)
2015-05-21 05:44 UTC, lu hua
no flags Details

Description lu hua 2015-05-21 05:44:47 UTC
Created attachment 115937 [details]
dmesg

==System Environment==
--------------------------
Regression: yes 

good commit: dcdaab3ad1518eaf1ce31fd56d010c69a0754e06 (drm-intel-next-queued)
bad commit:  65de797816eadb227c45b0127d7ff92410fa3814 (drm-intel-next-queued)

Non-working platforms: BSW

==kernel==
--------------------------
drm-intel-nightly/056608cba30c118dcd3dff3cd0a4cacbdfd9ecdb
commit 056608cba30c118dcd3dff3cd0a4cacbdfd9ecdb
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon May 18 17:19:30 2015 +0200

    drm-intel-nightly: 2015y-05m-18d-15h-18m-36s UTC integration manifest

==Bug detailed description==
-----------------------------
It fails on BSW with drm-intel-next-queued and drm-intel-nightly kernel.

output:
time ./pm_rpm --run-subtest drm-resources-equal
IGT-Version: 1.10-g9bb2ca3 (x86_64) (Linux: 4.1.0-rc3_drm-intel-nightly_056608_20150519+ x86_64)
Runtime PM support: 1
PC8 residency support: 0
Test assertion failure function assert_drm_edids_equal, file pm_rpm.c:523:
Failed assertion: e1->id == e2->id
Last errno: 2, No such file or directory
error: 53 != 51
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [assert_drm_infos_equal+0xbd0]
  #2 [drm_resources_equal_subtest+0xa3]
  #3 [main+0x417]
  #4 [__libc_start_main+0xf5]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest drm-resources-equal failed.
**** DEBUG ****
Test requirement passed: enable_one_screen_with_type(data, SCREEN_TYPE_ANY)
Test requirement passed: enable_one_screen_with_type(data, SCREEN_TYPE_ANY)
Test assertion failure function assert_drm_edids_equal, file pm_rpm.c:523:
Failed assertion: e1->id == e2->id
Last errno: 2, No such file or directory
error: 53 != 51
****  END  ****
Subtest drm-resources-equal: FAIL (8.041s)

==Reproduce steps==
---------------------------- 
1.  ./pm_rpm --run-subtest drm-resources-equal
Comment 1 Ander Conselvan de Oliveira 2015-05-27 09:33:19 UTC
Please bisect
Comment 2 ye.tian 2015-06-03 07:57:23 UTC
By bisect, shows the first bad commit is 6b275b1.

commit 6b275b140094b701f7ad15272f0597e9d954e5e4
Author:     Takashi Iwai <tiwai@suse.de>
AuthorDate: Fri Mar 20 18:11:05 2015 +0100
Commit:     Takashi Iwai <tiwai@suse.de>
CommitDate: Fri Mar 20 18:30:48 2015 +0100

    ALSA: hda - Fix power of pins used for mute LED with vrefs

    Some pins are used for controlling the LED with the VREF value.
    This patch changes the power behavior of such pins to be constantly
    up.  A new state, pin_fixed, is introduced to nid_path to indicate
    that the path contains the fixed pin.  This improves also the
    readability a bit for other static routes, too.

    Then a helper function snd_hda_gen_fix_pin_power() is called from the
    codec driver for such fixed pins, and it will create fake paths
    containing only these pins with pin_fixed=1 flag.

    Reported-by: David Henningsson <david.henningsson@canonical.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
Comment 3 lu hua 2015-06-17 06:53:05 UTC
It also happens on BDW.
Comment 4 cprigent 2015-10-06 08:51:34 UTC
Reproduced on BSW with fresh setup:

Platform: Braswell M
CPU : Intel(R) CPU  @ 1.52 GHz (family: 6, model: 76 stepping: 3)
SoC : BSW C0
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All
Feature Reworks: F28, F32,F33 & F37
Optional reworks : O-01a
Software
BIOS : SKLSE2R1.R00.X093.B02.1507222151
ME FW : 11.0.0.1157
Ksc (EC FW): 1.15
Linux distribution: Ubuntu 14.04 LTS 64 bits
Kernel: drm-intel-nightly 78a01ed08ac09d84cb47db59dd10fe9de1ee6c4a 4.3.0-rc2 from git://anongit.freedesktop.org/drm-intel
cairo: (HEAD, origin/master, origin/HEAD, master) f6c46d9473e40d4a3363c96e1fc7fffc81ed12e7 from git://git.freedesktop.org/git/cairo
drm: (HEAD, origin/master, origin/HEAD, master) c3301d013444b7b5d02c58307e188e292d8cf18a from git://git.freedesktop.org/git/mesa/drm
intel-driver: (HEAD, origin/master, origin/HEAD, master) 29f4234504fd99299997a3fc2f01393fb77030b7 from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, origin/master, origin/HEAD, master) fdd6ee00c916f530e4d0aa1b250633643999dcf1 from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, origin/master, origin/HEAD) 30e84530a097278c7cf01c0491dba5866510c4c5 from git://git.freedesktop.org/git/mesa/mesa
xf86-video-intel: (HEAD, origin/master, origin/HEAD, master) 300319e2044cb1050e9cbc49c9985b995eaca5fe from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
xserver: (HEAD, origin/master, origin/HEAD, master) bcb60a49c5e74aa11d0256874659afddea91e53d from git://git.freedesktop.org/git/xorg/xserver
intel-gpu-tools: (HEAD, origin/master, origin/HEAD, master) 88cbb41ade5a66f96b7cd3844ce86f43d192afa0 from git://git.freedesktop.org/git/xorg/app/intel-gpu-tools 

Kernel:
commit 78a01ed08ac09d84cb47db59dd10fe9de1ee6c4a
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Aug 31 18:43:56 2015 +0300
drm-intel-nightly: 2015y-08m-31d-15h-42m-59s UTC integration manifest
Comment 5 cprigent 2015-10-08 16:54:54 UTC
Bug scrub:
Olivier,
Please provide new git bisect and then assign to development team
Comment 6 cprigent 2015-10-13 15:25:10 UTC
I can confirm it is still reproduced on SKL-Y with last 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  D1 2+2 (ou ULX-D1)
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02,FBS03, F23, O-02 & O-06
Software
Linux : Ubuntu 14.04 LTS 64 bits
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19

kernel 4.3.0-rc3-drm-intel-nightly+ (eb69e51) from git://anongit.freedesktop.org/drm-intel
Mesa - 11.0.2 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.64 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
Comment 7 cprigent 2015-10-14 11:06:04 UTC
Also reproduced on BSW:
Hardware:
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 :
Linux distribution: Ubuntu 14.04 LTS 64 bits 
BIOS : BRAS.X64.B084.R00.1508310642
TXE FW : 2.0.0.2073
Ksc : 1.08
kernel 4.3.0-rc3-drm-intel-nightly+ (eb69e51) from git://anongit.freedesktop.org/drm-intel
Mesa - 11.0.2 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.64 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
Comment 8 cprigent 2015-10-20 09:22:09 UTC
Reproduced on BSW:
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

BIOS : BRAS.X64.B084.R00.1508310642
TXE FW : 2.0.0.2073
Ksc : 1.08
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc5-drm-intel-nightly+ 819f710081d7ea116b9b44a9264061d2c030f009 from git://anongit.freedesktop.org/drm-intel
Mesa - 11.0.3 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

Kernel commit 819f710081d7ea116b9b44a9264061d2c030f009
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Oct 14 19:05:17 2015 +0200
drm-intel-nightly: 2015y-10m-14d-17h-04m-36s UTC integration manifest
Comment 9 Humberto Israel Perez Rodriguez 2015-10-28 18:36:59 UTC
The following tests cases also fail on BYT-M with the next configuration :

Test : <%pm_rpm@drm-resources-equal%>


Ubuntu 14.04.03 x86_x64 LTS
xorg-server : 1.17.2
libdrm : 2.4.65
xf86-video-intel : 2.99.917
mesa : 11.0.4
libva : 1.6.1
intel: driver 1.6.1
cairo : 1.14.2
intel-gpu-tools : 1.12 (commit a2c6786)

Kernel: drm-intel-nightly: 2015y-10m-23d-09h-56m-09s
commit 87074657f22e38163e712ca417e1a398d00096b6
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Oct 23 11:56:52 2015 +0200
Comment 10 cprigent 2015-11-08 13:53:04 UTC
Reproduced on BSW-M with last setup:

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 : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc7-drm-intel-nightly (86ba603) from git://anongit.freedesktop.org/drm-intel
  commit 86ba603f327626055fe1436112b3786eaaaf7fb1
  Author: Daniel Vetter <daniel.vetter@ffwll.ch>
  Date:   Sat Oct 31 09:27:21 2015 +0100
  drm-intel-nightly: 2015y-10m-31d-08h-26m-39s UTC integration manifest
Mesa 11.0.4 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
Comment 11 Humberto Israel Perez Rodriguez 2015-11-09 22:22:41 UTC
This test keeps fail on BYT-M / HSW-U / BDW-U with the following configuration :

Software Configuration :
---------------------------------
Ubuntu 14.04.03 x86_64
Xserver : 1.17.4  (commit : 2c7fa2a)
libdrm : 2.4.65 (commit :c349616)
Xf86-video-intel : 2.99.917 (commit : baec802)
Mesa : 11.0.4 (commit : 31bf247)
Libva : 1.6.1 (commit : 613eb96)
Intel-driver : 1.6.1 (commit : 35858c6)
Cairo : 1.14.4 (commit : 0317ee7)
Intel-GPU-Tools : 1.12 (commit : 1f9e055)
BIOS : 1.30
KSC : 1.10

Kernel : 4.3.0-rc6-testing
commit 87074657f22e38163e712ca417e1a398d00096b6
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Oct 23 11:56:52 2015 +0200
Comment 12 Rami 2015-11-20 14:08:54 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: 2015y-11m-12d-15h-35m-53s UTC integration manifest
commit 4c2531304c0a2f36f6b2cce2add5b5b2bd3fd893
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Nov 12 17:36:12 2015 +0200
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.5) ee57c22141c42d9b511a7dfa5971c4428cd1c6e7 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) b718f50f92cf7ed825c90ff54940cb155d110a2c from git://git.freedesktop.org/git/xorg/app/intel-gpu-tools
Comment 13 Elio 2015-11-25 20:07:13 UTC
The following test case is failing in BYT-M 
pm_rpm/drm-resources-equal fails
Kernel : 4.4.0-rc1-nightly+
Ubuntu 15.04

Test assertion failure function assert_drm_edids_equal, file pm_rpm.c:513:
Failed assertion: e1->id == e2->id
Last errno: 2, No such file or directory
error: 49 != 47
Subtest drm-resources-equal failed.
**** DEBUG ****
Test requirement passed: enable_one_screen_with_type(data, SCREEN_TYPE_ANY)
Test requirement passed: enable_one_screen_with_type(data, SCREEN_TYPE_ANY)
Test assertion failure function assert_drm_edids_equal, file pm_rpm.c:513:
Failed assertion: e1->id == e2->id
Last errno: 2, No such file or directory
error: 49 != 47
****  END  ****
Comment 14 Daniel Vetter 2015-12-01 16:41:51 UTC
It's a bug in the testcase:

(now if patchwork/mailman just wouldn't be so damn slow - I can't post the link here. Patch subject is "[PATCH i-g-t] tests/pm_rpm: Don't compare edid blob IDs")

I'll take over this bug.
Comment 15 Daniel Vetter 2015-12-01 16:57:24 UTC
commit 80546d45762a7b1e20885c557a08a41ef6d7fc10
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Dec 1 17:37:40 2015 +0100

    tests/pm_rpm: Don't compare edid blob IDs


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.