Bug 86365 - [PNV] igt/kms_pipe_crc_basic some subcases fail
Summary: [PNV] igt/kms_pipe_crc_basic some subcases fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: highest normal
Assignee: Jari Tahvanainen
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 94370 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-17 03:17 UTC by lu hua
Modified: 2016-09-15 08:05 UTC (History)
4 users (show)

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


Attachments
dmesg (122.60 KB, text/plain)
2014-11-17 03:17 UTC, lu hua
no flags Details
Fix for pipe configs (5.63 KB, text/plain)
2015-11-18 12:20 UTC, Mika Kahola
no flags Details
dmesg (1.08 MB, text/plain)
2016-06-24 13:18 UTC, Rami
no flags Details
dmesg_bxt (1008.01 KB, text/plain)
2016-06-28 00:10 UTC, Humberto Israel Perez Rodriguez
no flags Details

Description lu hua 2014-11-17 03:17:56 UTC
Created attachment 109583 [details]
dmesg

==System Environment==
--------------------------
Regression: not sure, it has bug 75079

Non-working platforms: PNV/BSW

Bug detailed description:
-----------------------------
kms_pipe_crc_basic some subcases fail on PNV and BSW,  bug 75079 mentioned it randomly timeout or fail, the timeout goes away, file this bug to trace fail.


run  ./kms_pipe_crc_basic --run-subtest read-crc-pipe-A-frame-sequence 
output:                                                                                         IGT-Version: 1.8-gaa63fc7 (x86_64) (Linux: 3.18.0-rc4_drm-intel-nightly_e49ebf_20141117+ x86_64)
read-crc-pipe-A-frame-sequence: Testing connector eDP-1 using pipe A
Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1712:
Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
Last errno: 16, Device or resource busy
Subtest read-crc-pipe-A-frame-sequence: FAIL (5.223s)

Reproduce steps:
----------------------------
1. ./kms_pipe_crc_basic
Comment 1 Daniel Vetter 2014-11-18 10:07:16 UTC
Let's retrict this bug to PNV and track bug 83519 - the platforms are completely different.

Please attach the output of the test of PNV.
Comment 2 Guo Jinxian 2014-11-19 06:55:25 UTC
(In reply to Daniel Vetter from comment #1)
> Let's retrict this bug to PNV and track bug 83519 - the platforms are
> completely different.
> 
> Please attach the output of the test of PNV.

Here is output of PNV below:

[root@x-pnv1 tests]# ./kms_pipe_crc_basic --run-subtest read-crc-pipe-A-frame-sequence 
IGT-Version: 1.8-gaa63fc7 (i686) (Linux: 3.18.0-rc5_drm-intel-nightly_3cb89f_20141119+ i686)
read-crc-pipe-A-frame-sequence: Testing connector VGA-1 using pipe A
Test assertion failure function igt_display_refresh, file igt_kms.c:1104:
Failed assertion: a->pending_crtc_idx_mask != b->pending_crtc_idx_mask
LVDS-1 and VGA-1 are both trying to use pipe A
Subtest read-crc-pipe-A-frame-sequence: FAIL (0.008s)
Comment 3 Humberto Israel Perez Rodriguez 2015-09-23 16:19:06 UTC
it also happen with SKL-Y 

subtest : kms_pipe_crc_basic@read-crc-pipe-c-frame-sequence

on the latest kernel

Kernel commit log:
commit b4c4542ba1abfb0d3d6913504502573bf2c62b12
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Aug 28 15:51:30 2015 +0200
drm-intel-nightly: 2015y-08m-28d-13h-50m-34s UTC integration manifest
Comment 4 Rami 2015-11-13 13:23:12 UTC
Reproduced on BSW this subtest are fail:
igt@kms_pipe_crc_basic@read-crc-pipe-a
igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence
igt@kms_pipe_crc_basic@read-crc-pipe-b
igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b

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 Mika Kahola 2015-11-18 12:20:07 UTC
Created attachment 119905 [details]
Fix for pipe configs
Comment 6 Mika Kahola 2015-11-18 12:23:06 UTC
This is a proposed patch for testing #91578 which fails on kms_pipe_crc_basic test. If you could test this patch and report back if the test still fails or not.
Comment 7 Humberto Israel Perez Rodriguez 2016-02-26 04:33:36 UTC
The following test cases fail with latest configuration


test
=====
kms_pipe_crc_basic@read-crc-pipe-a
kms_pipe_crc_basic@suspend-read-crc-pipe-b
kms_pipe_crc_basic@suspend-read-crc-pipe-c
kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence
kms_pipe_crc_basic@suspend-read-crc-pipe-a
kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence
kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence
kms_pipe_crc_basic@read-crc-pipe-b
kms_pipe_crc_basic@nonblocking-crc-pipe-b-frame-sequence
kms_pipe_crc_basic@hang-read-crc-pipe-b
kms_pipe_crc_basic@nonblocking-crc-pipe-b


Software & Hardware configuration
===================================
Kernel version                      : 4.5.0-rc5-nightly+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Mesa version                        : 11.1.1 (git-330aa44
xf86-video-intel version            : 2.99.917
Xorg-Xserver version                : 1.18.1
DRM version                         : 2.4.66
VAAPI version                       : Intel i965 driver for Intel(R) Broxton - 1.6.3.pre1 (1.6.1-92-gf6fe842)
Cairo version                       : 1.15.2
Bios revision                       : 119.10
KSC revision                        : 1.6
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : Other
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])

 --> Component : intel-gpu-tools 
url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
tag : intel-gpu-tools-1.13 
commit : 2db78a4 
author : Thomas Wood <thomas.wood@intel.com> 
age : 3 months ago 

kernel
======
commit 1a139ead792d8e912aa13d413b9cf59811fde676
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Feb 22 10:48:46 2016 +0200

    drm-intel-nightly: 2016y-02m-22d-08h-48m-06s UTC integration manifest
Comment 8 Humberto Israel Perez Rodriguez 2016-03-17 19:47:31 UTC
The following test cases fail on BXT-P with the following configuration

case list
===========
kms_pipe_crc_basic@suspend-read-crc-pipe-b
kms_pipe_crc_basic@read-crc-pipe-a
kms_pipe_crc_basic@suspend-read-crc-pipe-c
kms_pipe_crc_basic@read-crc-pipe-b
kms_pipe_crc_basic@suspend-read-crc-pipe-a
kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence



Hardware information
=====================
Platform	BXT-P
Motherboard model	Broxton P
Motherboard type	NOTEBOOK Hand Held
Motherboard manufacturer	Intel Corp.
CPU family	Other
CPU information	06/5c
GPU Card	Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])

Software information
======================
Linux distribution : Ubuntu 15.10
Architecture       : 64-bit

 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-5-gea07de9 
	 commit : ea07de9 
	 author : Rodrigo Vivi <rodrigo.vivi@intel.com> 
	 age : 13 days ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 5 weeks ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-560-gd167280 
	 commit : d167280 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 weeks ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0.pre1 
	 commit : 35f1447 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0.pre1 
	 commit : ab8e4e3 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 3 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.1 
	 commit : 23e60f9 
	 author : Adam Jackson <ajax@redhat.com> 
	 age : 5 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-23-g364d378 
	 commit : 364d378 
	 author : Paulo Zanoni <paulo.r.zanoni@intel.com> 
	 age : 10 days ago 

kernel
=========
drm-intel-testing / commit a27657a

commit a27657a39741599ce9feef1ef39ae6654e9e6768
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Feb 29 09:42:22 2016 +0100

    drm-intel-nightly: 2016y-02m-29d-08h-41m-12s UTC integration manifest

Kernel version : 4.5.0-rc5
Architecture : source amd64 all
Comment 9 yann 2016-04-29 10:57:17 UTC
Milestone criteria blocker so increasing priority
Comment 10 Luis Botello 2016-04-29 22:53:58 UTC
The following tests fail on BXT-P with the next configuration 

test cases
================================
kms_pipe_crc_basic@nonblocking-crc-pipe-b-frame-sequence


Software information
================================
Kernel version                      : 4.6.0-rc4-drm-intel-nightly-ww17-commit-1e81bac+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 129.10
KSC revision                        : 1.6


Hardware information
================================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : Other
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])
Memory ram                          : 8 GB
Maximum memory ram allowed          : 16 GB


Graphic stack information
================================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-26-g739b888 
	 commit : 739b888 
	 author : Nicolas Dechesne <nicolas.dechesne@linaro.org> 
	 age : 2 weeks ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 3 months ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-640-gbca4e0e 
	 commit : bca4e0e 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 2 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-1-g2339d10 
	 commit : 2339d10 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 6 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-8-g2c1bec0 
	 commit : 2c1bec0 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 3 weeks ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 5 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.0-291-g16e4bce 
	 commit : 16e4bce 
	 author : Simon Thum <simon.thum@gmx.de> 
	 age : 2 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-212-g1e9a3ac 
	 commit : 1e9a3ac 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 days ago 


kernel information
================================
commit 1e81bacf1f7fdbdf83f46b55389713fa13cb1256
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Apr 24 11:36:51 2016 +0100

    drm-intel-nightly: 2016y-04m-24d-10h-36m-11s UTC integration manifest


Kernel version : 4.6.0-rc4
Architecture : source amd64 all
Homepage : http://www.kernel.org/
Comment 11 Humberto Israel Perez Rodriguez 2016-05-21 20:02:07 UTC
The following tests cases fail on BXT-P :

tests cases
===========================
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a


Software information
===========================
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 129.10
KSC revision                        : 1.12

Hardware information
=============================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : Other
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])
CPU's number                        : 4

Graphic stack
=========================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.68-4-g7aab852 
	 commit : 7aab852 
	 author : Sonny Jiang <sonny.jiang@amd.com> 
	 age : 5 days ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 3 months ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-645-g88733a7 
	 commit : 88733a7 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 10 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-10-gcfed369 
	 commit : cfed369 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 6 days ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-23-g0be0b21 
	 commit : 0be0b21 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 7 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 5 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.0-324-g984be78 
	 commit : 984be78 
	 author : Olivier Fourdan <ofourdan@redhat.com> 
	 age : 6 days ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-319-gb88bce4 
	 commit : b88bce4 
	 author : Mika Kuoppala <mika.kuoppala@intel.com> 
	 age : 4 days ago 


kernel
======================
commit 5528ede25a356196417ee02aa153b17fe90c1be5
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat May 14 09:24:52 2016 +0100

    drm-intel-nightly: 2016y-05m-14d-08h-24m-24s UTC integration manifest


Kernel version : 4.6.0-rc7
Architecture : source amd64 all
Homepage : http://www.kernel.org/
Comment 12 yann 2016-05-24 14:30:41 UTC
*** Bug 94370 has been marked as a duplicate of this bug. ***
Comment 13 Mika Kahola 2016-06-07 10:47:48 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #11)
> The following tests cases fail on BXT-P :
> 
> tests cases
> ===========================
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a
> 
> 
> Software information
> ===========================
> Linux distribution                  : Ubuntu 15.10
> Architecture                        : 64-bit
> Bios revision                       : 129.10
> KSC revision                        : 1.12
> 
> Hardware information
> =============================
> Platform                            : BXT-P
> Motherboard model                   : Broxton P
> Motherboard type                    : NOTEBOOK Hand Held
> Motherboard manufacturer            : Intel Corp.
> CPU family                          : Other
> CPU information                     : 06/5c
> GPU Card                            : Intel Corporation Device 5a84 (rev 03)
> (prog-if 00 [VGA controller])
> CPU's number                        : 4
> 
> Graphic stack
> =========================
>  --> Component : drm 
> 	 url : http://cgit.freedesktop.org/mesa/drm 
> 	 tag : libdrm-2.4.68-4-g7aab852 
> 	 commit : 7aab852 
> 	 author : Sonny Jiang <sonny.jiang@amd.com> 
> 	 age : 5 days ago 
>  --> Component : mesa 
> 	 url : http://cgit.freedesktop.org/mesa/mesa 
> 	 tag : mesa-11.1.2 
> 	 commit : 7bcd827 
> 	 author : Emil Velikov <emil.velikov@collabora.com> 
> 	 age : 3 months ago 
>  --> Component : xf86-video-intel 
> 	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
> 	 tag : 2.99.917-645-g88733a7 
> 	 commit : 88733a7 
> 	 author : Chris Wilson <chris@chris-wilson.co.uk> 
> 	 age : 10 days ago 
>  --> Component : libva 
> 	 url : http://cgit.freedesktop.org/libva/ 
> 	 tag : libva-1.7.0-10-gcfed369 
> 	 commit : cfed369 
> 	 author : peng.chen <peng.c.chen@intel.com> 
> 	 age : 6 days ago 
>  --> Component : vaapi (intel-driver) 
> 	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
> 	 tag : 1.7.0-23-g0be0b21 
> 	 commit : 0be0b21 
> 	 author : Xiang Haihao <haihao.xiang@intel.com> 
> 	 age : 7 days ago 
>  --> Component : cairo 
> 	 url : http://cgit.freedesktop.org/cairo 
> 	 tag : 1.15.2 
> 	 commit : db8a7f1 
> 	 author : Bryce Harrington <bryce@osg.samsung.com> 
> 	 age : 5 months ago 
>  --> Component : xserver 
> 	 url :  http://cgit.freedesktop.org/xorg/xserver 
> 	 tag : xorg-server-1.18.0-324-g984be78 
> 	 commit : 984be78 
> 	 author : Olivier Fourdan <ofourdan@redhat.com> 
> 	 age : 6 days ago 
>  --> Component : intel-gpu-tools 
> 	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
> 	 tag : intel-gpu-tools-1.14-319-gb88bce4 
> 	 commit : b88bce4 
> 	 author : Mika Kuoppala <mika.kuoppala@intel.com> 
> 	 age : 4 days ago 
> 
> 
> kernel
> ======================
> commit 5528ede25a356196417ee02aa153b17fe90c1be5
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Sat May 14 09:24:52 2016 +0100
> 
>     drm-intel-nightly: 2016y-05m-14d-08h-24m-24s UTC integration manifest
> 
> 
> Kernel version : 4.6.0-rc7
> Architecture : source amd64 all
> Homepage : http://www.kernel.org/

any chance to get dmesg log out of this test case?
Comment 14 Mika Kahola 2016-06-13 09:48:47 UTC
With BXT-P the igt test 

./kms_vblank

fails too.
Comment 15 Mika Kahola 2016-06-22 12:11:59 UTC
(In reply to Mika Kahola from comment #14)
> With BXT-P the igt test 
> 
> ./kms_vblank
> 
> fails too.

This test seems to work now with kernel 4.7.0-rc4
Comment 16 Rami 2016-06-24 13:18:45 UTC
Created attachment 124702 [details]
dmesg

This bug is reproduced with last setup:

Platform: Broxton P B1 Platform 
CPU Name : Intel(R) @ 1.1 GHz (family: 6, model: 12, stepping: 9) – 4 cores
SoC : BROXTON-P B1
CRB : Apollo Lake RVPa1 Fab2
Bios:APLKRVPA.X64.0138.B25.1606130640 date: 06/13/2016
KSC: 1.15
Microcode revesion: c
Rework:R19 R20

drm:
  url: git://git.freedesktop.org/git/mesa/drm
  commit: 625d1810ad1f61dd4f4b2b2ee7e5cc67e1fdc2f1
mesa:
  url: git://git.freedesktop.org/git/mesa/mesa
  commit: 7bcd827806b0816d61122ba3d37dd40178d96d98
cairo:
  url: git://anongit.freedesktop.org/cairo
  commit: db8a7f1697c49ae4942d2aa49eed52dd73dd9c7a
xorg-server-macros:
  url: git://git.freedesktop.org/git/xorg/util/macros
  commit: d7acec2d3a3abe79814ceb72e2c0d4d95ed31d37
xserver:
  url: git://git.freedesktop.org/git/xorg/xserver
  commit: 2d6230e77348e550c90e00c007b113ce38c81d12

xf86-video-intel:
  url: git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
  branch: master
  commit: b617f80ca5d386c1c248bab64276a9f283173a21

libva:
  url: git://git.freedesktop.org/git/vaapi/libva
  commit: aa8df4c3d10d0609ffac235ffdc76c5e05763a23
 
vaapi-intel-driver:
  url: git://git.freedesktop.org/git/vaapi/intel-driver
  commit: bf387bbdde4fa1a419d19d7c606e9ba94e07e24e

intel-gpu-tool:
tag: intel-gpu-tools-1.15-29-gc344044
  commit: c344044ab681566d36a49a0456666a32bac3419a

Steps:
------
Execute commands:
./kms_pipe_crc_basic
Actual result:IGT-Version: 1.15-gc344044 (x86_64) (Linux: 4.7.0-rc4-nightly+ x86_64)
Subtest bad-pipe: SUCCESS (0.000s)
Subtest bad-source: SUCCESS (0.000s)
Subtest bad-nb-words-1: SUCCESS (0.000s)
Subtest bad-nb-words-3: SUCCESS (0.000s)
read-crc-pipe-A: Testing connector eDP-1 using pipe A
read-crc-pipe-A: Testing connector DP-1 using pipe A
read-crc-pipe-A: Testing connector DP-2 using pipe A
Subtest read-crc-pipe-A: SUCCESS (2.687s)
read-crc-pipe-A-frame-sequence: Testing connector eDP-1 using pipe A
read-crc-pipe-A-frame-sequence: Testing connector DP-1 using pipe A
read-crc-pipe-A-frame-sequence: Testing connector DP-2 using pipe A
Subtest read-crc-pipe-A-frame-sequence: SUCCESS (3.107s)
nonblocking-crc-pipe-A: Testing connector eDP-1 using pipe A
nonblocking-crc-pipe-A: Testing connector DP-1 using pipe A
nonblocking-crc-pipe-A: Testing connector DP-2 using pipe A
Subtest nonblocking-crc-pipe-A: SUCCESS (2.938s)
nonblocking-crc-pipe-A-frame-sequence: Testing connector eDP-1 using pipe A
nonblocking-crc-pipe-A-frame-sequence: Testing connector DP-1 using pipe A
nonblocking-crc-pipe-A-frame-sequence: Testing connector DP-2 using pipe A
Subtest nonblocking-crc-pipe-A-frame-sequence: SUCCESS (3.725s)
rtcwake: assuming RTC uses UTC ...
rtcwake: set rtc wake alarm failed: Invalid argument
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:659:
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 15 -m mem") == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: This failure means that something is wrong with the rtcwake tool or how your distro is set up. This is not a i915.ko or i-g-t bug.
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [igt_system_suspend_autoresume+0x9f]
  #2 [__real_main183+0x33c]
  #3 [main+0x29]
  #4 [__libc_start_main+0xf0]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest suspend-read-crc-pipe-A failed.
**** DEBUG ****
(kms_pipe_crc_basic:1613) DEBUG: Test requirement passed: !(i >= data.display.n_pipes)
(kms_pipe_crc_basic:1613) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_pipe_crc_basic:1613) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 15 -m mem" SQUELCH) == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:659:
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 15 -m mem") == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: This failure means that something is wrong with the rtcwake tool or how your distro is set up. This is not a i915.ko or i-g-t bug.
****  END  ****
Subtest suspend-read-crc-pipe-A: FAIL (0.075s)
hang-read-crc-pipe-A: Testing connector eDP-1 using pipe A
hang-read-crc-pipe-A: Testing connector DP-1 using pipe A
hang-read-crc-pipe-A: Testing connector DP-2 using pipe A
hang-read-crc-pipe-A: Testing connector eDP-1 using pipe A
hang-read-crc-pipe-A: Testing connector DP-1 using pipe A
hang-read-crc-pipe-A: Testing connector DP-2 using pipe A
Subtest hang-read-crc-pipe-A: SUCCESS (17.658s)
read-crc-pipe-B: Testing connector eDP-1 using pipe B
read-crc-pipe-B: Testing connector DP-1 using pipe B
read-crc-pipe-B: Testing connector DP-2 using pipe B
Subtest read-crc-pipe-B: SUCCESS (3.556s)
read-crc-pipe-B-frame-sequence: Testing connector eDP-1 using pipe B
read-crc-pipe-B-frame-sequence: Testing connector DP-1 using pipe B
read-crc-pipe-B-frame-sequence: Testing connector DP-2 using pipe B
Subtest read-crc-pipe-B-frame-sequence: SUCCESS (4.476s)
nonblocking-crc-pipe-B: Testing connector eDP-1 using pipe B
nonblocking-crc-pipe-B: Testing connector DP-1 using pipe B
nonblocking-crc-pipe-B: Testing connector DP-2 using pipe B
Subtest nonblocking-crc-pipe-B: SUCCESS (3.901s)
nonblocking-crc-pipe-B-frame-sequence: Testing connector eDP-1 using pipe B
nonblocking-crc-pipe-B-frame-sequence: Testing connector DP-1 using pipe B
nonblocking-crc-pipe-B-frame-sequence: Testing connector DP-2 using pipe B
Subtest nonblocking-crc-pipe-B-frame-sequence: SUCCESS (3.379s)
rtcwake: assuming RTC uses UTC ...
rtcwake: set rtc wake alarm failed: Invalid argument
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:659:
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 15 -m mem") == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: This failure means that something is wrong with the rtcwake tool or how your distro is set up. This is not a i915.ko or i-g-t bug.
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [igt_system_suspend_autoresume+0x9f]
  #2 [__real_main183+0x33c]
  #3 [main+0x29]
  #4 [__libc_start_main+0xf0]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest suspend-read-crc-pipe-B failed.
**** DEBUG ****
(kms_pipe_crc_basic:1613) DEBUG: Test requirement passed: !(i >= data.display.n_pipes)
(kms_pipe_crc_basic:1613) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_pipe_crc_basic:1613) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 15 -m mem" SQUELCH) == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:659:
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 15 -m mem") == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: This failure means that something is wrong with the rtcwake tool or how your distro is set up. This is not a i915.ko or i-g-t bug.
****  END  ****
Subtest suspend-read-crc-pipe-B: FAIL (0.081s)
hang-read-crc-pipe-B: Testing connector eDP-1 using pipe B
hang-read-crc-pipe-B: Testing connector DP-1 using pipe B
hang-read-crc-pipe-B: Testing connector DP-2 using pipe B
hang-read-crc-pipe-B: Testing connector eDP-1 using pipe B
hang-read-crc-pipe-B: Testing connector DP-1 using pipe B
hang-read-crc-pipe-B: Testing connector DP-2 using pipe B
Subtest hang-read-crc-pipe-B: SUCCESS (13.752s)
read-crc-pipe-C: Testing connector eDP-1 using pipe C
read-crc-pipe-C: Testing connector DP-1 using pipe C
read-crc-pipe-C: Testing connector DP-2 using pipe C
Subtest read-crc-pipe-C: SUCCESS (3.356s)
read-crc-pipe-C-frame-sequence: Testing connector eDP-1 using pipe C
read-crc-pipe-C-frame-sequence: Testing connector DP-1 using pipe C
read-crc-pipe-C-frame-sequence: Testing connector DP-2 using pipe C
Subtest read-crc-pipe-C-frame-sequence: SUCCESS (3.631s)
nonblocking-crc-pipe-C: Testing connector eDP-1 using pipe C
nonblocking-crc-pipe-C: Testing connector DP-1 using pipe C
nonblocking-crc-pipe-C: Testing connector DP-2 using pipe C
Subtest nonblocking-crc-pipe-C: SUCCESS (3.821s)
nonblocking-crc-pipe-C-frame-sequence: Testing connector eDP-1 using pipe C
nonblocking-crc-pipe-C-frame-sequence: Testing connector DP-1 using pipe C
(kms_pipe_crc_basic:1613) CRITICAL: Test assertion failure function test_read_crc_for_output, file kms_pipe_crc_basic.c:123:
(kms_pipe_crc_basic:1613) CRITICAL: Failed assertion: n_crcs <= 3 + 1
(kms_pipe_crc_basic:1613) CRITICAL: Last errno: 11, Resource temporarily unavailable
(kms_pipe_crc_basic:1613) CRITICAL: error: 5 > 4
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [test_read_crc.constprop.1+0x519]
  #2 [__real_main183+0x37d]
  #3 [main+0x29]
  #4 [__libc_start_main+0xf0]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest nonblocking-crc-pipe-C-frame-sequence failed.
**** DEBUG ****
(kms_pipe_crc_basic:1613) DEBUG: Test requirement passed: !(pipe >= data->display.n_pipes)
(kms_pipe_crc_basic:1613) INFO: nonblocking-crc-pipe-C-frame-sequence: Testing connector eDP-1 using pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: eDP-1: set_pipe(C)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: SetCrtc pipe C, disabling
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) DEBUG: Clearing the fb with color (0.00,1.00,0.00)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: C.0: plane_set_fb(107)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: SetCrtc pipe C, fb 107, panning (0, 0), mode 1920x1080
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) DEBUG: CRC for this fb: d30a1687 00000000 00000000 00000000 00000000
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: C.0: plane_set_fb(0)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: eDP-1: set_pipe(any)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: eDP-1: set_pipe(C)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: SetCrtc pipe C, disabling
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) DEBUG: Clearing the fb with color (0.00,1.00,1.00)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: C.0: plane_set_fb(107)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: SetCrtc pipe C, fb 107, panning (0, 0), mode 1920x1080
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) DEBUG: CRC for this fb: 1224d6f1 00000000 00000000 00000000 00000000
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: C.0: plane_set_fb(0)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: eDP-1: set_pipe(any)
(kms_pipe_crc_basic:1613) INFO: nonblocking-crc-pipe-C-frame-sequence: Testing connector DP-1 using pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: DP-1: set_pipe(C)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: SetCrtc pipe C, disabling
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) DEBUG: Clearing the fb with color (0.00,1.00,0.00)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: C.0: plane_set_fb(107)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: SetCrtc pipe C, fb 107, panning (0, 0), mode 1920x1080
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) DEBUG: CRC for this fb: 091575f0 00000000 00000000 00000000 00000000
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: C.0: plane_set_fb(0)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: DP-1: set_pipe(any)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: DP-1: set_pipe(C)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: SetCrtc pipe C, disabling
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) DEBUG: Clearing the fb with color (0.00,1.00,1.00)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_pipe_crc_basic:1613) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: C.0: plane_set_fb(107)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: Selecting pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     eDP-1: Selecting pipe A
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-2: Selecting pipe B
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display:     DP-1: SetCrtc pipe C, fb 107, panning (0, 0), mode 1920x1080
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1613) CRITICAL: Test assertion failure function test_read_crc_for_output, file kms_pipe_crc_basic.c:123:
(kms_pipe_crc_basic:1613) CRITICAL: Failed assertion: n_crcs <= 3 + 1
(kms_pipe_crc_basic:1613) CRITICAL: Last errno: 11, Resource temporarily unavailable
(kms_pipe_crc_basic:1613) CRITICAL: error: 5 > 4
****  END  ****
Subtest nonblocking-crc-pipe-C-frame-sequence: FAIL (5.991s)
rtcwake: assuming RTC uses UTC ...
rtcwake: set rtc wake alarm failed: Invalid argument
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:659:
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 15 -m mem") == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: This failure means that something is wrong with the rtcwake tool or how your distro is set up. This is not a i915.ko or i-g-t bug.
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [igt_system_suspend_autoresume+0x9f]
  #2 [__real_main183+0x33c]
  #3 [main+0x29]
  #4 [__libc_start_main+0xf0]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest suspend-read-crc-pipe-C failed.
**** DEBUG ****
(kms_pipe_crc_basic:1613) DEBUG: Test requirement passed: !(i >= data.display.n_pipes)
(kms_pipe_crc_basic:1613) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_pipe_crc_basic:1613) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 15 -m mem" SQUELCH) == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:659:
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 15 -m mem") == 0
(kms_pipe_crc_basic:1613) igt-aux-CRITICAL: This failure means that something is wrong with the rtcwake tool or how your distro is set up. This is not a i915.ko or i-g-t bug.
****  END  ****
Subtest suspend-read-crc-pipe-C: FAIL (0.174s)
hang-read-crc-pipe-C: Testing connector eDP-1 using pipe C
(kms_pipe_crc_basic:1613) igt-kms-CRITICAL: Test assertion failure function igt_display_refresh, file igt_kms.c:1530:
(kms_pipe_crc_basic:1613) igt-kms-CRITICAL: Failed assertion: a->pending_crtc_idx_mask != b->pending_crtc_idx_mask
(kms_pipe_crc_basic:1613) igt-kms-CRITICAL: eDP-1 and DP-1 are both trying to use pipe C
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [do_display_commit+0x1156]
  #2 [igt_display_commit2+0xe]
  #3 [test_read_crc.constprop.1+0x102]
  #4 [__real_main183+0x45c]
  #5 [main+0x29]
  #6 [__libc_start_main+0xf0]
  #7 [_start+0x29]
  #8 [<unknown>+0x29]
Subtest hang-read-crc-pipe-C failed.
**** DEBUG ****
(kms_pipe_crc_basic:1613) ioctl-wrappers-DEBUG: Test requirement passed: gem_has_ring(fd, ring)
(kms_pipe_crc_basic:1613) ioctl-wrappers-DEBUG: Test requirement passed: has_ban_period
(kms_pipe_crc_basic:1613) igt-gt-DEBUG: Test requirement passed: has_gpu_reset(fd)
(kms_pipe_crc_basic:1613) igt-gt-DEBUG: Test requirement passed: ctx == 0 || ring == I915_EXEC_RENDER
(kms_pipe_crc_basic:1613) DEBUG: Test requirement passed: !(pipe >= data->display.n_pipes)
(kms_pipe_crc_basic:1613) INFO: hang-read-crc-pipe-C: Testing connector eDP-1 using pipe C
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: eDP-1: set_pipe(C)
(kms_pipe_crc_basic:1613) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1613) igt-kms-CRITICAL: Test assertion failure function igt_display_refresh, file igt_kms.c:1530:
(kms_pipe_crc_basic:1613) igt-kms-CRITICAL: Failed assertion: a->pending_crtc_idx_mask != b->pending_crtc_idx_mask
(kms_pipe_crc_basic:1613) igt-kms-CRITICAL: eDP-1 and DP-1 are both trying to use pipe C
****  END  ****
Subtest hang-read-crc-pipe-C: FAIL (0.004s)
Comment 17 Rami 2016-06-24 13:20:45 UTC
This bug is not reproduced with acpi=off
Comment 18 Rami 2016-06-24 13:25:59 UTC
(In reply to Mika Kahola from comment #15)
> (In reply to Mika Kahola from comment #14)
> > With BXT-P the igt test 
> > 
> > ./kms_vblank
> > 
> > fails too.
> 
> This test seems to work now with kernel 4.7.0-rc4

I confirm it work with kernel 4.7.0-rc4
Comment 19 Humberto Israel Perez Rodriguez 2016-06-28 00:08:44 UTC
(In reply to Rami from comment #17)
> This bug is not reproduced with acpi=off

Hi Rami :

could you tell me where did you get the parameter acpi=off ?

with this parameter the following tests pass, but without this parameter the tests fail at less 1/10 times


igt@kms_pipe_crc_basic@nonblocking-crc-pipe-c
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence


please see the dmesg_bxt
Comment 20 Humberto Israel Perez Rodriguez 2016-06-28 00:10:06 UTC
Created attachment 124747 [details]
dmesg_bxt
Comment 21 Humberto Israel Perez Rodriguez 2016-06-28 00:10:37 UTC
adding my configuration for BXT-P :


Software Configuration
======================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.68-9-g625d181 
	 commit : 625d181 
	 author : Marek Olšák <marek.olsak@amd.com> 
	 age : 5 weeks ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 7 months ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.15-54-g88c1f7c 
	 commit : 88c1f7c 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 4 days ago 


Hardware configuration
============================================
Platform                        : BXT-P
Motherboard model               : Broxton P
Motherboard type                : NOTEBOOK Hand Held
Motherboard manufacturer        : Intel Corp.
CPU family                      : B1
CPU information                 : 06/5c
GPU Card                        : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])
Memory ram                      : 16 GB


Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.7
GUC fw loaded                   : SUCCESS
GUC version wanted              : 8.7
GUC version found               : 8.7
Comment 22 cprigent 2016-07-06 17:47:08 UTC
Tests are Pass on APL


Platform: 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 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
Kernel: drm-intel-nightly 4.7.0-rc4 5c244f4 from http://cgit.freedesktop.org/drm-intel/
  commit 5c244f4b128c6274755007e080d46e0a61b71534
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Fri Jun 24 16:17:56 2016 +0100
  drm-intel-nightly: 2016y-06m-24d-15h-17m-32s UTC integration manifest
drm: libdrm-2.4.68-9 625d181 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 56cd706 from git://anongit.freedesktop.org/mesa/mesa
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
server: xorg-server-1.18.0-419 7397a21 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-670 cac7c8d from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva: libva-1.7.0-26 c36971c from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.0-52 f47e513 from git://git.freedesktop.org/git/vaapi/intel-driver
DMC 1.07
GuC 8.7
Intel-Gpu-Tools: 1.15-54 88c1f7c from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 23 Mika Kahola 2016-07-08 12:10:41 UTC
For my APL with MIPI panel attached I still see a failure on 

./kms_pipe_crc_basic --run-subtest suspend-read-crc-pipe-A

With that test I suspect that the MIPI panel is not getting powered back on when resuming. The MIPI commands are not getting through to MIPI panel. You can see the error messages that MIPI video mode commands are failing. This, of course, leads to failing test case where test case waits for vblank to continue which never arrives. The test timeouts and fails with vblank timeout.
Comment 24 Mika Kahola 2016-07-08 12:12:16 UTC
And I have to use this bios due to attached MIPI/DSI panel

MIPI_AUO_efi-APLK_APL-x64-2016_13_4_00-10.0.1027-SPI-AUO_Landscape.bin
Comment 25 dog 2016-07-14 13:32:18 UTC
Mika, this bug is very old and has a lot of new and old information.  We run kms_pipe_crc_basic on all BAT runs today and it fails with some machines.  Can you file a new bug with the actual failures so we can focus on them?  Perhaps this bug can be closed as a dup of the newer one?
Comment 26 Mika Kahola 2016-08-01 10:48:27 UTC
I will run the suspend test with the latest -nightly and check if this still fails on my setup. If so, I will file a new bug report. We can close this one.
Comment 27 Mika Kahola 2016-08-09 11:57:04 UTC
I still managed to produce the following error when running i-g-t test

kms_pipe_crc_basic --run-subtest suspend-read-crc-pipe-A

IGT-Version: 1.14-g1e34229 (x86_64) (Linux: 4.8.0-rc1-2016-08-09-12.47-drm-intel-mika x86_64)
rtcwake: wakeup from "mem" using /dev/rtc0 at Thu Jan  1 00:07:11 1998
[  393.096299] [drm:dpi_send_cmd.constprop.3 [i915]] *ERROR* Video mode command 0x00000042 send failed.
[  393.123838] atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
[  393.387830] atkbd serio0: Failed to enable keyboard on isa0060/serio0
[  403.475839] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:26:pipe A] flip_done timed out
suspend-read-crc-pipe-A: Testing connector DSI-1 using pipe A
[  414.483880] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:26:pipe A] flip_done timed out
(kms_pipe_crc_basic:1128) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:2495:
(kms_pipe_crc_basic:1128) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_pipe_crc_basic:1128) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [igt_wait_for_vblank+0x83]
  #2 [do_display_commit+0x943]
  #3 [igt_display_commit2+0xe]
  #4 [test_read_crc.constprop.1+0x1a1]
  #5 [__real_main183+0x31a]
  #6 [main+0x23]
  #7 [__libc_start_main+0xf0]
  #8 [_start+0x29]
  #9 [<unknown>+0x29]
Subtest suspend-read-crc-pipe-A failed.
**** DEBUG ****
(kms_pipe_crc_basic:1128) DEBUG: Test requirement passed: !(i >= data.display.n_pipes)
(kms_pipe_crc_basic:1128) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_pipe_crc_basic:1128) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 15 -m mem" SQUELCH) == 0
(kms_pipe_crc_basic:1128) DEBUG: Test requirement passed: !(pipe >= data->display.n_pipes)
(kms_pipe_crc_basic:1128) INFO: suspend-read-crc-pipe-A: Testing connector DSI-1 using pipe A
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display: DSI-1: set_pipe(A)
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display:     DSI-1: Selecting pipe A
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display: }
(kms_pipe_crc_basic:1128) DEBUG: Clearing the fb with color (0,00,1,00,0,00)
(kms_pipe_crc_basic:1128) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1200, format=0x34325258, tiling=0x0, size=0)
(kms_pipe_crc_basic:1128) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display: A.0: plane_set_fb(61)
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display: commit {
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display:     DSI-1: Selecting pipe A
(kms_pipe_crc_basic:1128) igt-kms-DEBUG: display:     DSI-1: SetCrtc pipe A, fb 61, panning (0, 0), mode 1920x1200
(kms_pipe_crc_basic:1128) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:2495:
(kms_pipe_crc_basic:1128) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_pipe_crc_basic:1128) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
****  END  ****

I suspect that this is more related on power management when turning on DSI/MIPI display. 

Let's close this one and I will file another bug report relating the issue I'm seeing with DSI/MIPI display.
Comment 28 Mika Kahola 2016-08-09 12:32:23 UTC
Bug already filed related to failing i-g-t test

kms_pipe_crc_basic --run-subtest suspend-read-crc-pipe-A

https://bugs.freedesktop.org/show_bug.cgi?id=96913
Comment 29 Jari Tahvanainen 2016-08-31 13:08:58 UTC
This failure has not been visible in Patchwork Intel GFX CI Testing during August. I propose this to be closed as Resolved + Worksforme. Please comment if you disagree.

The following cases have pass verdict on the 63 latest execution rounds:
igt@kms_pipe_crc_basic@bad-nb-words-1
igt@kms_pipe_crc_basic@bad-nb-words-3
igt@kms_pipe_crc_basic@bad-pipe
igt@kms_pipe_crc_basic@bad-source
igt@kms_pipe_crc_basic@hang-read-crc-pipe-a
igt@kms_pipe_crc_basic@hang-read-crc-pipe-b
igt@kms_pipe_crc_basic@hang-read-crc-pipe-c
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b-frame-sequence
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-c
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-c-frame-sequence
igt@kms_pipe_crc_basic@read-crc-pipe-a
igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence
igt@kms_pipe_crc_basic@read-crc-pipe-b
igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence
igt@kms_pipe_crc_basic@read-crc-pipe-c
igt@kms_pipe_crc_basic@read-crc-pipe-c-frame-sequence
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c
on fi-bsw-n3050, fi-byt-n2820, fi-hsw-4770k, fi-hsw-4770r, fi-ivb-3520m, fi-snb-2520m, fi-snb-2600, fi-bdw-5557u, fi-skl-6260u, fi-skl-6700k.
On snb there were dmesg related bug filed and fixed (#97491), which was recorded during some of these tests.

On kbl there is one time (not on the "CPU pipe A FIFO underrun" dmesg:
[  624.807373] [drm:skl_set_cdclk] *ERROR* failed to inform PCU about cdclk change
[  625.572804] [drm:intel_cpu_fifo_underrun_irq_handler] *ERROR* CPU pipe A FIFO underrun
during 
IGT-Version: 1.15-gdb97b69 (x86_64) (Linux: 4.8.0-rc4-CI-CI_DRM_1603+ x86_64)
read-crc-pipe-C: Testing connector eDP-1 using pipe C
Subtest read-crc-pipe-C: SUCCESS (2.663s)
If this is not covered by any of the current bugs then on shall file new one for this particular failure.

On HSW there is 6 times system hang on the following tests
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b
which needs to be followed and another bug needs to be filed if problem persist.
Comment 30 yann 2016-08-31 15:49:51 UTC
(In reply to Jari Tahvanainen from comment #29)
> This failure has not been visible in Patchwork Intel GFX CI Testing during
> August. I propose this to be closed as Resolved + Worksforme. Please comment
> if you disagree.
> 
> The following cases have pass verdict on the 63 latest execution rounds:
> igt@kms_pipe_crc_basic@bad-nb-words-1
> igt@kms_pipe_crc_basic@bad-nb-words-3
> igt@kms_pipe_crc_basic@bad-pipe
> igt@kms_pipe_crc_basic@bad-source
> igt@kms_pipe_crc_basic@hang-read-crc-pipe-a
> igt@kms_pipe_crc_basic@hang-read-crc-pipe-b
> igt@kms_pipe_crc_basic@hang-read-crc-pipe-c
> igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a
> igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence
> igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b
> igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b-frame-sequence
> igt@kms_pipe_crc_basic@nonblocking-crc-pipe-c
> igt@kms_pipe_crc_basic@nonblocking-crc-pipe-c-frame-sequence
> igt@kms_pipe_crc_basic@read-crc-pipe-a
> igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence
> igt@kms_pipe_crc_basic@read-crc-pipe-b
> igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence
> igt@kms_pipe_crc_basic@read-crc-pipe-c
> igt@kms_pipe_crc_basic@read-crc-pipe-c-frame-sequence
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c
> on fi-bsw-n3050, fi-byt-n2820, fi-hsw-4770k, fi-hsw-4770r, fi-ivb-3520m,
> fi-snb-2520m, fi-snb-2600, fi-bdw-5557u, fi-skl-6260u, fi-skl-6700k.
> On snb there were dmesg related bug filed and fixed (#97491), which was
> recorded during some of these tests.
> 
> On kbl there is one time (not on the "CPU pipe A FIFO underrun" dmesg:
> [  624.807373] [drm:skl_set_cdclk] *ERROR* failed to inform PCU about cdclk
> change
> [  625.572804] [drm:intel_cpu_fifo_underrun_irq_handler] *ERROR* CPU pipe A
> FIFO underrun
> during 
> IGT-Version: 1.15-gdb97b69 (x86_64) (Linux: 4.8.0-rc4-CI-CI_DRM_1603+ x86_64)
> read-crc-pipe-C: Testing connector eDP-1 using pipe C
> Subtest read-crc-pipe-C: SUCCESS (2.663s)
> If this is not covered by any of the current bugs then on shall file new one
> for this particular failure.
> 
Not seen it on KBL but on APL.

> On HSW there is 6 times system hang on the following tests
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a
> igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b
> which needs to be followed and another bug needs to be filed if problem
> persist.

I agree with overall comments here. I confirm that most of the tests are working on QA automated system but we have still several issues on only some subset of these tests that should be tracked on some other bugs (different issues). 

Christophe, Humberto,
please review current test results, create corresponding bugs (one per same root cause) and then close this one.
Comment 31 cprigent 2016-09-07 11:13:33 UTC
Subcases are Pass on KBL, SKL and BYT, I remove them from title and "i915 platform".

Tested with:

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

Platform: NUC6i3SYB
CPU: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHZ (family 6, model 78, stepping 3)
Motherboard version: H81132-502
GPU: Intel® HD Graphics 520 - Intel Corporation Sky Lake Integrated Graphics (rev 07)
Memory: one 8GB card Kingston KVR21S15D8/8
SSD: Samsung 850 EVO M.2 120 Go
Software
Bios: SYSKLi35.86A.0045.2016.0527.1055 from https://downloadcenter.intel.com/downloads/eula/26097/BIOS-Update-SYSKLi35-86A-?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F26097%2Feng%2FSY0045.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

Platform: Acer Aspire XC-603
CPU: Intel(R) Pentium(R) CPU  J2900  @ 2.41GHz (family 6, model 55, stepping 8)
Motherboard: Aspire XC-603
GPU: Intel® HD Graphics - Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
Software
Bios: P11-B2
Linux distribution: Ubuntu 16.04 64 bits

Kernel: 4.8.0-rc4 9baa666 from http://cgit.freedesktop.org/drm-intel/
  commit 9baa666b3e48f71b46c5f63541f57d2a95a1b1c0
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Sat Sep 3 13:12:38 2016 +0100
  drm-intel-nightly: 2016y-09m-03d-12h-12m-15s UTC integration manifest
libdrm-2.4.70-6 4462303 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.0-546 deae9c7 from git://git.freedesktop.org/git/xorg/xserver
2.99.917-701 205146b from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.0-47 2ebf897 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.0-95 1817bee from git://git.freedesktop.org/git/vaapi/intel-driver
Intel-Gpu-Tools 1.16 6bd4208 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

I have no PNV to confirm it
Comment 32 Jari Tahvanainen 2016-09-15 08:04:44 UTC
On PNV with kernel and igt from yesterday
IGT-Version: 1.16-g237cb89 (x86_64) (Linux: 4.8.0-rc5-CI-CI_DRM_1633+ x86_64)
Subtest read-crc-pipe-A-frame-sequence: SUCCESS (1.257s)

Failure resolved --> bug resolved-verified-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.