Bug 94597

Summary: [BSW] FIFO underrun before trying to issue a GPU reset
Product: DRI Reporter: Humberto Israel Perez Rodriguez <humberto.i.perez.rodriguez>
Component: DRM/IntelAssignee: Humberto Israel Perez Rodriguez <humberto.i.perez.rodriguez>
Status: CLOSED MOVED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: medium CC: intel-gfx-bugs, marius.c.vlad
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: BSW/CHT i915 features: GEM/execlists
Attachments:
Description Flags
kern.log
none
dmesg fail log
none
dmesgAPLigt
none
results.json
none
err_decode, blt, bsd and vebox hang. none

Description Humberto Israel Perez Rodriguez 2016-03-17 18:07:54 UTC
Created attachment 122386 [details]
kern.log

Bug description
==================
The following test cases fail on BXT-P with the following configuration

case list
===========
gem_exec_suspend@render-s3
gem_exec_suspend@blt-s4
gem_exec_suspend@render-s4
gem_exec_suspend@default-s3
gem_exec_suspend@vebox-s4
gem_exec_suspend@default-s4
gem_exec_suspend@blt-s3
gem_exec_suspend@bsd-s4
gem_exec_suspend@vebox-s3
gem_exec_suspend@bsd-s3



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

IGT output
================
IGT-Version: 1.14-g364d378 (x86_64) (Linux: 4.5.0-rc5-drm-intel-testing-ww10-commit-a27657a+ x86_64)
rtcwake: assuming RTC uses UTC ...
rtcwake: enable rtc alarm failed: Invalid argument
(gem_exec_suspend:1336) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:380:
(gem_exec_suspend:1336) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 30 -m mem") == 0
(gem_exec_suspend:1336) 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+0x101]
  #1 [igt_system_suspend_autoresume+0x9f]
  #2 [__real_main140+0x550]
  #3 [main+0x23]
  #4 [__libc_start_main+0xf0]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest render-S3 failed.
**** DEBUG ****
(gem_exec_suspend:1336) ioctl-wrappers-DEBUG: Test requirement passed: gem_has_ring(fd, ring_id)
(gem_exec_suspend:1336) DEBUG: Test requirement passed: !(gen == 6 && (ring & ~(3<<13)) == I915_EXEC_BSD)
(gem_exec_suspend:1336) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1336) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_exec_suspend:1336) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 30 -m mem" SQUELCH) == 0
(gem_exec_suspend:1336) igt-aux-CRITICAL: Test assertion failure function igt_system_suspend_autoresume, file igt_aux.c:380:
(gem_exec_suspend:1336) igt-aux-CRITICAL: Failed assertion: system("rtcwake -s 30 -m mem") == 0
(gem_exec_suspend:1336) 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 render-S3: FAIL (0.096s)

real    0m2.007s
user    0m0.004s
sys     0m0.012s


Attachments
==================
kern.log
Comment 1 Imre Deak 2016-03-17 18:14:46 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #0)
>[...]
> ================
> IGT-Version: 1.14-g364d378 (x86_64) (Linux:
> 4.5.0-rc5-drm-intel-testing-ww10-commit-a27657a+ x86_64)
> rtcwake: assuming RTC uses UTC ...
> rtcwake: enable rtc alarm failed: Invalid argument
> (gem_exec_suspend:1336) igt-aux-CRITICAL: Test assertion failure function
> igt_system_suspend_autoresume, file igt_aux.c:380:
> (gem_exec_suspend:1336) igt-aux-CRITICAL: Failed assertion: system("rtcwake
> -s 30 -m mem") == 0
> (gem_exec_suspend:1336) 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.

Could you please check why rtcwake fails? You can check if S3 is supported at all on your platform by cat /sys/power/state.
Comment 2 Humberto Israel Perez Rodriguez 2016-03-17 18:31:20 UTC
(In reply to Imre Deak from comment #1)
> (In reply to Humberto Israel Perez Rodriguez from comment #0)
> >[...]
> > ================
> > IGT-Version: 1.14-g364d378 (x86_64) (Linux:
> > 4.5.0-rc5-drm-intel-testing-ww10-commit-a27657a+ x86_64)
> > rtcwake: assuming RTC uses UTC ...
> > rtcwake: enable rtc alarm failed: Invalid argument
> > (gem_exec_suspend:1336) igt-aux-CRITICAL: Test assertion failure function
> > igt_system_suspend_autoresume, file igt_aux.c:380:
> > (gem_exec_suspend:1336) igt-aux-CRITICAL: Failed assertion: system("rtcwake
> > -s 30 -m mem") == 0
> > (gem_exec_suspend:1336) 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.
> 
> Could you please check why rtcwake fails? You can check if S3 is supported
> at all on your platform by cat /sys/power/state.

I confirm that S3 works on my platform, i'll investigate why rtcwake is fails
Comment 3 Luis Botello 2016-03-23 21:27:05 UTC
This issue still happen on KBL with the following configuration


Test cases
===============
gem_exec_suspend@bsd-uncached-s4
gem_exec_suspend@bsd2-cached



Hardware configuration
=======================
Platform	KBL (RVP3)
Motherboard model	Kabylake Client platform
Motherboard type	Skylake Y LPDDR3 RVP3 Laptop
Motherboard manufacturer	Intel Corporation
CPU family	Other
CPU information	Genuine Intel(R) CPU 0000 @ 0.90GHz
GPU Card	Intel Corporation Device 591e (prog-if 00 [VGA controller])
Memory ram	4 GB

Software configuration
=======================
 --> 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 configuration
=====================
Branch : drm-intel-testing
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 4 Chris Wilson 2016-03-23 21:29:37 UTC
(In reply to Luis Botello from comment #3)
> This issue still happen on KBL with the following configuration

BXT was failing due to a configuration error, are you suggesting that KBL fails in exactly the same way?
Comment 5 cprigent 2016-04-01 15:11:56 UTC
Updated to highest blocker as gem_exec_suspend@basic-s3 and basic-s4 fail on APL.
Comment 6 cprigent 2016-04-07 08:39:18 UTC
Hi Humberto,
If still reproduced, could you attach the logs of the Basic failures on APL.
Thanks
Comment 7 Jairo Miramontes 2016-04-07 16:55:00 UTC
Created attachment 122791 [details]
dmesg fail log

Still failing on latest kernel, attaching a dmesg log.
basic-s3 and basic-s4 results :


Subtest basic-S3: FAIL (0.321s)
rtcwake: assuming RTC uses UTC ...
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [igt_system_hibernate_autoresume+0x9f]
  #2 [run_test+0x434]
  #3 [__real_main227+0xc8]
  #4 [main+0x23]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest basic-S4: FAIL (0.323s)
Subtest default-uncached: SUCCESS (0.075s)
Subtest default-cached: SUCCESS (0.055s)
rtcwake: assuming RTC uses UTC ...
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [igt_system_suspend_autoresume+0x9f]
  #2 [run_test+0x43e]
  #3 [__real_main227+0x18d]
  #4 [main+0x23]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]



Used the following Kernel: 
=========================================================================
commit aedfaaef290af9c8df7d9f4adf22cbe21704d091
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Mon Apr 4 14:10:49 2016 +0100

    drm-intel-nightly: 2016y-04m-04d-13h-09m-54s UTC integration manifest
==========================================================================
Comment 8 Chris Wilson 2016-04-07 20:10:09 UTC
That's the same configuration error assert. We don't think that is a bug in the kernel or test, but in your setup.
Comment 9 cprigent 2016-04-13 17:54:23 UTC
Checked again. basic-s3 and basic-s4 are no more failing on APL.
Priority and severity decreased. Tested with:
Kernel drm-intel-nightly 4.6.0-rc3 dc5380b from http://cgit.freedesktop.org/drm-intel/
  commit dc5380b5263ebb0bf251bb09db542585702b528b
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Mon Apr 11 20:43:45 2016 +0100
  drm-intel-nightly: 2016y-04m-11d-19h-43m-10s UTC integration manifest
Comment 10 cprigent 2016-04-14 13:32:35 UTC
Error "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." could come from the date which is probably in the past.
You can retry again after executing:
date -s 2016-04-dd
date -s hh:mm:ss
Comment 11 Luis Botello 2016-04-19 22:25:25 UTC
The following tests are still failing on APL:

vebox-cached-s4
basic-s4
bsd-cached-s4
default-cached-s4
blt-uncached-s4
bsd-uncached-s4
render-uncached-s4
default-uncached-s4
vebox-uncached-s4
blt-cached-s4

This is the HW/SW configuration:
Hardware Configuration
===========================================
Platform: BXT - P (APL)
CPU : CPU family   Other
CPU information:   06/5c
Motherboard model  Apollo Lake
Motherboard type    NOTEBOOK Hand Held
Motherboard manufacturer Intel Corp.

Software Configuration
================================================
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.6.0-rc3_d9131d6 from http://cgit.freedesktop.org/drm-intel/
commit d9131d62d18ba94fb3ca019f1156c22b5f4ce23c
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Fri Apr 15 14:54:26 2016 +0100
drm-intel-nightly: 2016y-04m-15d-13h-53m-44s UTC integration manifestdrm: tag libdrm-2.4.66-33-gf884af9
      libdrm 2.4.67-25 cc9a53f from git://git.freedesktop.org/git/mesa/drm
mesa 11.1.2 7bcd827 from git://git.freedesktop.org/git/mesa/mesa
cairo 1.15.2 db8a7f1 from git://git.freedesktop.org/git/cairo
xorg/xserver 1.18.0-274 8437955 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-634 81029be from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
vaapi/libva 1.7.0-1 2339d10 from git://git.freedesktop.org/git/vaapi/libva
vaapi/intel-driver 1.7.0-8 2c1bec0 from git://git.freedesktop.org/git/vaapi/intel-driver
intel-gpu-tool 1.14 7bd2ac6 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
rendercheck master 44032a7 from http://anongit.freedesktop.org/git/xorg/app/rendercheck.git


Attached you can find the json file and the dmesgAPLigt
Comment 12 Luis Botello 2016-04-19 22:26:16 UTC
Created attachment 123073 [details]
dmesgAPLigt
Comment 13 Luis Botello 2016-04-19 22:27:17 UTC
Created attachment 123074 [details]
results.json
Comment 14 Luis Botello 2016-04-28 16:45:04 UTC
The following tests fail on BXT-P with the next configuration 

test cases
================================
gem_exec_suspend@vebox-cached-s4
gem_exec_suspend@vebox-uncached-s4
gem_exec_suspend@basic-s4
gem_exec_suspend@default-cached-s4
gem_exec_suspend@bsd-cached-s4
gem_exec_suspend@render-cached-s4
gem_exec_suspend@bsd-uncached-s4
gem_exec_suspend@default-uncached-s4
gem_exec_suspend@render-uncached-s4
gem_exec_suspend@blt-cached-s4
gem_exec_suspend@blt-uncached-s4



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 15 yann 2016-04-29 10:59:55 UTC
Milestone criteria blocker so increasing priority
Comment 16 Luis Botello 2016-04-29 19:01:56 UTC
Adding log and dmesg log for my last comment:


#./gem_exec_suspend --run-subtest basic-S4
[sudo] password for gfx:
IGT-Version: 1.14-g1e9a3ac (x86_64) (Linux: 4.6.0-rc4-drm-intel-nightly-ww17-commit-1e81bac+ x86_64)
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "disk" using /dev/rtc0 at Fri Apr 29 14:16:53 2016
(gem_exec_suspend:12876) igt-aux-CRITICAL: Test assertion failure function sig_abort, file igt_aux.c:413:
(gem_exec_suspend:12876) igt-aux-CRITICAL: Failed assertion: !"GPU hung"
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [sig_abort+0x3a]
  #2 [killpg+0x40]
  #3 [ioctl+0x7]
  #4 [drmIoctl+0x28]
  #5 [gem_wait+0x87]
  #6 [gem_sync+0x11]
  #7 [gem_quiescent_gpu+0xca]
  #8 [run_test+0x3f3]
  #9 [__real_main227+0x2a7]
  #10 [main+0x23]
  #11 [__libc_start_main+0xf0]
  #12 [_start+0x29]
  #13 [<unknown>+0x29]
Subtest basic-S4 failed.
**** DEBUG ****
(gem_exec_suspend:12876) DEBUG: Test requirement passed: gem_has_ring(fd, 0)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: can_mi_store_dword(gen, 0)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:12876) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:12876) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:12876) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:12876) DEBUG: Verifying result
(gem_exec_suspend:12876) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:12876) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:12876) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:12876) DEBUG: Verifying result
(gem_exec_suspend:12876) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:12876) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:12876) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:12876) DEBUG: Verifying result
(gem_exec_suspend:12876) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:12876) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:12876) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:12876) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:12876) DEBUG: Verifying result
(gem_exec_suspend:12876) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:12876) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:12876) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_exec_suspend:12876) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 90 -m disk" SQUELCH) == 0
(gem_exec_suspend:12876) DEBUG: Verifying result
(gem_exec_suspend:12876) igt-aux-CRITICAL: Test assertion failure function sig_abort, file igt_aux.c:413:
(gem_exec_suspend:12876) igt-aux-CRITICAL: Failed assertion: !"GPU hung"
****  END  ****
Subtest basic-S4: FAIL (19.919s)

real    2m40.297s
user    0m0.016s
sys     0m0.192s

DMESG
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
kern  :err   : [Fri Apr 29 07:06:33 2016] efi: requested map not found.
kern  :err   : [Fri Apr 29 07:06:33 2016] esrt: ESRT header is not in the memory map.
kern  :err   : [Fri Apr 29 07:06:34 2016] atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
kern  :err   : [Fri Apr 29 07:06:34 2016] atkbd serio0: Failed to enable keyboard on isa0060/serio0
kern  :err   : [Fri Apr 29 07:06:34 2016] rfkill_gpio BCM4752:00: invalid platform data
kern  :err   : [Fri Apr 29 07:06:35 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Fri Apr 29 07:06:35 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Fri Apr 29 07:06:35 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Fri Apr 29 07:06:35 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Fri Apr 29 07:06:35 2016] i2c_hid i2c-ELAN221D:00: hid_descr_cmd failed
kern  :err   : [Fri Apr 29 07:06:35 2016] xhci-hcd xhci-hcd.1.auto: can't setup: -110
kern  :err   : [Fri Apr 29 07:06:35 2016] i2c_hid i2c-ALPS0001:00: hid_descr_cmd failed
kern  :err   : [Fri Apr 29 07:07:22 2016] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe B FIFO underrun
kern  :err   : [Fri Apr 29 07:07:22 2016] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe C FIFO underrun
kern  :err   : [Fri Apr 29 07:07:22 2016] atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
kern  :err   : [Fri Apr 29 07:07:23 2016] atkbd serio0: Failed to enable keyboard on isa0060/serio0
kern  :err   : [Fri Apr 29 07:07:24 2016] [drm:i915_set_reset_status [i915]] *ERROR* gpu hanging too fast, banning!
Comment 17 Humberto Israel Perez Rodriguez 2016-05-21 19:49:30 UTC
The following tests cases fail on BXT-P :

tests cases
===========================
igt@gem_exec_suspend@default-cached-s3
igt@gem_exec_suspend@basic-s3
igt@gem_exec_suspend@render-uncached-s4
igt@gem_exec_suspend@default-cached-s4
igt@gem_exec_suspend@vebox-uncached-s4
igt@gem_exec_suspend@blt-uncached-s4
igt@gem_exec_suspend@vebox-cached-s4
igt@gem_exec_suspend@basic-s4
igt@gem_exec_suspend@default-uncached-s4
igt@gem_exec_suspend@bsd-cached-s4
igt@gem_exec_suspend@render-cached-s4
igt@gem_exec_suspend@vebox-uncached-s3
igt@gem_exec_suspend@bsd-uncached-s4
igt@gem_exec_suspend@vebox-cached-s3
igt@gem_exec_suspend@render-uncached-s3
igt@gem_exec_suspend@blt-cached-s4
igt@gem_exec_suspend@bsd-cached-s3
igt@gem_exec_suspend@blt-uncached-s3
igt@gem_exec_suspend@blt-cached-s3
igt@gem_exec_suspend@default-uncached-s3
igt@gem_exec_suspend@render-cached-s3
igt@gem_exec_suspend@bsd-uncached-s3


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 18 cprigent 2016-05-27 12:56:34 UTC
Humberto,
Could you try with Bios 138.25 ?
Comment 19 Humberto Israel Perez Rodriguez 2016-05-27 21:47:34 UTC
(In reply to cprigent from comment #18)
> Humberto,
> Could you try with Bios 138.25 ?

Hi Christophe :

with the bios 138.25 the following test cases are skip instead of fail


tests cases
===========================
igt@gem_exec_suspend@default-cached-s3
igt@gem_exec_suspend@basic-s3
igt@gem_exec_suspend@render-uncached-s4
igt@gem_exec_suspend@default-cached-s4
igt@gem_exec_suspend@vebox-uncached-s4
igt@gem_exec_suspend@blt-uncached-s4
igt@gem_exec_suspend@vebox-cached-s4
igt@gem_exec_suspend@basic-s4
igt@gem_exec_suspend@default-uncached-s4
igt@gem_exec_suspend@bsd-cached-s4
igt@gem_exec_suspend@render-cached-s4
igt@gem_exec_suspend@vebox-uncached-s3
igt@gem_exec_suspend@bsd-uncached-s4
igt@gem_exec_suspend@vebox-cached-s3
igt@gem_exec_suspend@render-uncached-s3
igt@gem_exec_suspend@blt-cached-s4
igt@gem_exec_suspend@bsd-cached-s3
igt@gem_exec_suspend@blt-uncached-s3
igt@gem_exec_suspend@blt-cached-s3
igt@gem_exec_suspend@default-uncached-s3
igt@gem_exec_suspend@render-cached-s3
igt@gem_exec_suspend@bsd-uncached-s3


there is not relevant dmesg output

kern  :debug : [Mon May 23 13:09:26 2016] [drm:i915_gem_open]
kern  :debug : [Mon May 23 13:09:26 2016] [drm:i915_gem_open]
kern  :debug : [Mon May 23 13:09:26 2016] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:23] scaler_user index 0.0
kern  :debug : [Mon May 23 13:09:26 2016] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:29] scaler_user index 1.4
kern  :debug : [Mon May 23 13:09:26 2016] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:34] scaler_user index 2.8
kern  :debug : [Mon May 23 13:09:28 2016] [drm:i915_gem_open]
kern  :debug : [Mon May 23 13:09:28 2016] [drm:i915_gem_open]
kern  :debug : [Mon May 23 13:09:28 2016] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:23] scaler_user index 0.0
kern  :debug : [Mon May 23 13:09:28 2016] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:29] scaler_user index 1.4
kern  :debug : [Mon May 23 13:09:28 2016] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:34] scaler_user index 2.8
Comment 20 Marius Vlad 2016-06-03 13:21:31 UTC
I'm seeing this on BSW-N3050 as well. 

Time        0:01:18.061184
            IGT-Version: 1.15-g3ce58b6 (x86_64) (Linux: 4.7.0-rc1+ x86_64)
            rtcwake: wakeup from "disk" using /dev/rtc0 at Fri Jun  3 12:20:58 2016
            Stack trace:
              #0 [__igt_fail_assert+0xf1]
              #1 [sig_abort+0x3a]
              #2 [killpg+0x40]
              #3 [ioctl+0x7]
              #4 [drmIoctl+0x28]
              #5 [__gem_execbuf+0x15]
Stdout        #6 [gem_has_ring+0x54]
              #7 [test_all+0x40]
              #8 [run_test+0x3fe]
              #9 [__real_main227+0x26f]
              #10 [main+0x23]
              #11 [__libc_start_main+0xf0]
              #12 [_start+0x29]
              #13 [<unknown>+0x29]
            Subtest basic-S4: FAIL (7.956s)


            (gem_exec_suspend:7902) DEBUG: Test requirement passed: gem_has_ring(fd, 0)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: can_mi_store_dword(gen, 0)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: nengine
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: nengine
            (gem_exec_suspend:7902) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
            (gem_exec_suspend:7902) DEBUG: Verifying result
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: nengine
            (gem_exec_suspend:7902) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
            (gem_exec_suspend:7902) DEBUG: Verifying result
Stderr      (gem_exec_suspend:7902) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: nengine
            (gem_exec_suspend:7902) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
            (gem_exec_suspend:7902) DEBUG: Verifying result
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: nengine
            (gem_exec_suspend:7902) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
            (gem_exec_suspend:7902) DEBUG: Verifying result
            (gem_exec_suspend:7902) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
            (gem_exec_suspend:7902) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
            (gem_exec_suspend:7902) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
            (gem_exec_suspend:7902) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 30 -m disk" SQUELCH) == 0
            (gem_exec_suspend:7902) DEBUG: Verifying result
            (gem_exec_suspend:7902) igt-aux-CRITICAL: Test assertion failure function sig_abort, file igt_aux.c:399:
            (gem_exec_suspend:7902) igt-aux-CRITICAL: Failed assertion: !"GPU hung"


commit 357b87bf63d26b706eb6842964223125bce38256
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Jun 3 11:46:37 2016 +0300

    drm-intel-nightly: 2016y-06m-03d-08h-46m-18s UTC integration manifest
Comment 21 Marius Vlad 2016-06-03 13:21:58 UTC
(In reply to Chris Wilson from comment #8)
> That's the same configuration error assert. We don't think that is a bug in
> the kernel or test, but in your setup.

What configuration exactly are you talking about?
Comment 22 Chris Wilson 2016-06-03 15:40:18 UTC
(In reply to Marius Vlad from comment #21)
> (In reply to Chris Wilson from comment #8)
> > That's the same configuration error assert. We don't think that is a bug in
> > the kernel or test, but in your setup.
> 
> What configuration exactly are you talking about?

comment #7 was hitting

        igt_assert_f(system("rtcwake -s 15 -m mem") == 0,
                     "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.\n");
Comment 23 Humberto Israel Perez Rodriguez 2016-06-06 22:40:16 UTC
the following test fail on BXT with the next configuration:

test : gem_exec_suspend@basic-S4

test output
===================
IGT-Version: 1.15-g3ce58b6 (x86_64) (Linux: 4.7.0-rc2-drm-intel-nightly-ww24-commit-55d1291+ x86_64)
(gem_exec_suspend:1258) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_exec_suspend:1258) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_exec_suspend:1258) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(gem_exec_suspend:1258) igt-core-DEBUG: Starting subtest: basic-S4
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, 0)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, 0)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_exec_suspend:1258) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 30 -m disk" SQUELCH) == 0
rtcwake: wakeup from "disk" using /dev/rtc0 at Mon Jun  6 14:21:46 2016
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) igt-aux-CRITICAL: Test assertion failure function sig_abort, file igt_aux.c:399:
(gem_exec_suspend:1258) igt-aux-CRITICAL: Failed assertion: !"GPU hung"
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [sig_abort+0x3a]
  #2 [killpg+0x40]
  #3 [__write_nocancel+0x7]
  #4 [igt_drop_caches_set+0xa1]
  #5 [gem_quiescent_gpu+0xdf]
  #6 [run_test+0x3f3]
  #7 [__real_main227+0x2a7]
  #8 [main+0x23]
  #9 [__libc_start_main+0xf0]
  #10 [_start+0x29]
  #11 [<unknown>+0x29]
Subtest basic-S4 failed.
**** DEBUG ****
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, 0)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, 0)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) DEBUG: Test requirement passed: gem_has_ring(fd, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: can_mi_store_dword(gen, engine)
(gem_exec_suspend:1258) DEBUG: Test requirement passed: nengine
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_exec_suspend:1258) DEBUG: Test requirement passed: __gem_execbuf(fd, &execbuf) == 0
(gem_exec_suspend:1258) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_exec_suspend:1258) igt-aux-DEBUG: Test requirement passed: system("rtcwake -n -s 30 -m disk" SQUELCH) == 0
(gem_exec_suspend:1258) DEBUG: Verifying result
(gem_exec_suspend:1258) igt-aux-CRITICAL: Test assertion failure function sig_abort, file igt_aux.c:399:
(gem_exec_suspend:1258) igt-aux-CRITICAL: Failed assertion: !"GPU hung"
****  END  ****
Subtest basic-S4: FAIL (23.526s)


dmesg relevant information
====================
kern  :err   : [Mon Jun  6 10:18:59 2016] efi: requested map not found.
kern  :err   : [Mon Jun  6 10:18:59 2016] esrt: ESRT header is not in the memory map.
kern  :err   : [Mon Jun  6 10:19:00 2016] atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
kern  :err   : [Mon Jun  6 10:19:00 2016] atkbd serio0: Failed to enable keyboard on isa0060/serio0
kern  :err   : [Mon Jun  6 10:19:03 2016] hid-generic 0003:046E:6000.0003: usb_submit_urb(ctrl) failed: -1
kern  :err   : [Mon Jun  6 10:19:07 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Mon Jun  6 10:19:07 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Mon Jun  6 10:19:07 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Mon Jun  6 10:19:07 2016] i2c_designware i2c_designware.3: i2c_dw_handle_tx_abort: lost arbitration
kern  :err   : [Mon Jun  6 10:19:07 2016] i2c_hid i2c-ELAN221D:00: hid_descr_cmd failed
kern  :err   : [Mon Jun  6 10:19:07 2016] i2c_hid i2c-ALPS0001:00: hid_descr_cmd failed
kern  :err   : [Mon Jun  6 10:19:35 2016] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe B FIFO underrun
kern  :err   : [Mon Jun  6 10:19:35 2016] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe C FIFO underrun
kern  :err   : [Mon Jun  6 10:19:35 2016] atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
kern  :err   : [Mon Jun  6 10:19:35 2016] atkbd serio0: Failed to enable keyboard on isa0060/serio0
kern  :err   : [Mon Jun  6 10:19:38 2016] [drm:i915_set_reset_status [i915]] *ERROR* gpu hanging too fast, banning!
kern  :err   : [Mon Jun  6 10:19:39 2016] [drm:i915_set_reset_status [i915]] *ERROR* gpu hanging too fast, banning!
kern  :err   : [Mon Jun  6 10:19:39 2016] [drm:gen8_reset_engines [i915]] *ERROR* video enhancement ring: reset request timeout
kern  :err   : [Mon Jun  6 10:19:39 2016] [drm:i915_reset [i915]] *ERROR* Failed to reset chip: -5



graphic user space
====================
--> Component : drm 
         tag : libdrm-2.4.68 
         commit : fc09c5a 
--> Component : mesa 
         tag : mesa-11.2.2 
         commit : 3a9f628 
--> Component : cairo 
         tag : 1.15.2 
         commit : db8a7f1 
--> Component : intel-gpu-tools 
         tag : intel-gpu-tools-1.15 
         commit : 3ce58b6 

BXT-P
processor : B1

kernel
=====================
commit 55d12917bb98afe5de986673ce17c91063bd4ec9
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Jun 6 18:28:23 2016 +0200

    drm-intel-nightly: 2016y-06m-06d-16h-28m-05s UTC integration manifest
Comment 24 Marius Vlad 2016-06-11 14:46:44 UTC
Created attachment 124476 [details]
err_decode, blt, bsd and vebox hang.

Output from intel_error_decode.
Comment 25 Marius Vlad 2016-06-11 14:47:48 UTC
(In reply to Marius Vlad from comment #24)
> Created attachment 124476 [details]
> err_decode, blt, bsd and vebox hang.
> 
> Output from intel_error_decode.

[  642.918976] [drm] stuck on blitter ring
[  642.918987] [drm] stuck on bsd ring
[  642.918993] [drm] stuck on video enhancement ring
[  642.930715] [drm] GPU HANG: ecode 8:1:0x5ccddf92, in gem_exec_suspen [6045], reason: Engine(s) hung, action: reset
[  642.930921] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[  642.930925] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[  642.930929] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[  642.930932] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[  642.930935] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[  642.938079] [drm:i915_set_reset_status [i915]] *ERROR* gpu hanging too fast, banning!
Comment 26 Marius Vlad 2016-06-11 14:52:35 UTC
(In reply to Marius Vlad from comment #25)
> (In reply to Marius Vlad from comment #24)
> > Created attachment 124476 [details]
> > err_decode, blt, bsd and vebox hang.
> > 
> > Output from intel_error_decode.
> 
> [  642.918976] [drm] stuck on blitter ring
> [  642.918987] [drm] stuck on bsd ring
> [  642.918993] [drm] stuck on video enhancement ring
> [  642.930715] [drm] GPU HANG: ecode 8:1:0x5ccddf92, in gem_exec_suspen
> [6045], reason: Engine(s) hung, action: reset
> [  642.930921] [drm] GPU hangs can indicate a bug anywhere in the entire gfx
> stack, including userspace.
> [  642.930925] [drm] Please file a _new_ bug report on bugs.freedesktop.org
> against DRI -> DRM/Intel
> [  642.930929] [drm] drm/i915 developers can then reassign to the right
> component if it's not a kernel issue.
> [  642.930932] [drm] The gpu crash dump is required to analyze gpu hangs, so
> please always attach it.
> [  642.930935] [drm] GPU crash dump saved to /sys/class/drm/card0/error
> [  642.938079] [drm:i915_set_reset_status [i915]] *ERROR* gpu hanging too
> fast, banning!

So, S3 and S4 works fine (BSW-N3050) without issuing batch commands to the GPU. 

The BXT seem to have some FIFO underrun before trying to issue a GPU reset.
Comment 27 Mika Kuoppala 2016-06-13 10:34:56 UTC
With kbl this test passes, (skipped all s4 ones).
Comment 28 Mika Kuoppala 2016-06-13 13:40:27 UTC
With our bxt this test passes, (skipped all s4 ones).

Please retest
Comment 29 cprigent 2016-06-14 09:37:38 UTC
Result of gem_exec_suspend:

APL: 19 Pass, 26 skip, 0 fail
KBL: 33 Pass, 12 skip, 0 fail

Checked with:
kernel drm-intel-nightly 4.6.0 fb023a2 from http://cgit.freedesktop.org/drm-intel/
     commit fb023a2062df06c9e097e1f8f2bcf252194b9413
     Author: Daniel Vetter <daniel.vetter@ffwll.ch>
     Date:   Mon May 30 10:46:14 2016 +0200
     drm-intel-nightly: 2016y-05m-30d-08h-45m-53s UTC integration manifest
drm: libdrm-2.4.68 fc09c5a from git://anongit.freedesktop.org/mesa/drm
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
IGT 1.14 303b380 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 30 cprigent 2016-06-14 09:38:39 UTC
So closed
Comment 31 Chris Wilson 2016-06-14 10:12:01 UTC
The GPU hangs were after S4. If they are being skipped, that is not a fix.
Comment 32 yann 2016-06-14 11:50:22 UTC
Christophe do you have any GPU hang on either KBL & APL?

BTW, I am seeing a reference to a GPU Hang on gen8 (on BSW) not on gen9.
Comment 33 Marius Vlad 2016-06-14 12:39:29 UTC
Yes, that is correct. gen8. Maybe I should file another bug for that?
Comment 34 yann 2016-06-14 12:47:10 UTC
Yes, fill another bug to track this GPU Hang on BSW
Comment 35 cprigent 2016-06-15 13:58:12 UTC
No GPU Hang on APL or KBL.
I update title and remove BXT and KBL from i915 platform field.
Comment 36 Humberto Israel Perez Rodriguez 2016-07-04 18:26:24 UTC
with the following configuration no GPU hang was seen on BSW

from the family "gem_exec_suspend" this tests was skipped

bsd1-uncached
bsd1-cached
bsd1-uncached-S3
bsd1-cached-S3
bsd1-uncached-S4
bsd1-cached-S4
bsd2-uncached
bsd2-cached
bsd2-uncached-S3
bsd2-cached-S3
bsd2-uncached-S4
bsd2-cached-S4

and the other 33 test was passed


Software Information
============================================
Kernel version                  : 4.7.0-rc5-drm-intel-nightly-ww28-commit-0a1ed46+
Linux distribution              : Ubuntu 16.04 LTS
Architecture                    : 64-bit
Bios revision                   : 0.33
KSC revision                    : 0.16

Hardware information
============================================
Platform                        : BSW
Motherboard model               : 10G9000NUS
Motherboard type                : BRASWELL Desktop
Motherboard manufacturer        : LENOVO
CPU family                      : Pentium
CPU information                 : Intel(R) Pentium(R) CPU  N3700  @ 1.60GHz
GPU Card                        : Intel Corporation Device 22b1 (rev 21) (prog-if 00 [VGA controller])
Memory ram                      : 8 GB
Maximum memory ram allowed      : 8 GB


 --> 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 : 5 days ago 
	 
	 
Kernel used (nightly)
=============================================
commit 0a1ed460b3ba5b6fa041fddcd8a358047ac42128
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Mon Jul 4 16:39:45 2016 +0100

    drm-intel-nightly: 2016y-07m-04d-15h-39m-24s UTC integration manifest
Comment 37 cprigent 2016-07-05 15:18:42 UTC
GPU Hang on BSW is tracked by bug 96526.
I just reproduced it on APL. I commented same bug. Let's close bug 94597.

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.