Bug 92741 - [BSW] igt/drv_suspend/sysfs-reader-hibernate fail
Summary: [BSW] igt/drv_suspend/sysfs-reader-hibernate fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Rami
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-30 17:18 UTC by Rami
Modified: 2016-04-21 21:18 UTC (History)
1 user (show)

See Also:
i915 platform: BSW/CHT
i915 features: power/suspend-resume


Attachments

Description Rami 2015-10-30 17:18:15 UTC
Igt subtest fail

Setup:
======
Hardware:
Platform: Braswell M 
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping: 4)
SoC : BSW D0
QDF : K6XC
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All 
Feature Reworks: F28, F32, F33, F35, F37
Optional reworks : O-01a; O-02, O-03
Software:
Linux distribution: Ubuntu 15.04 LTS 64 bits 
BIOS : BRAS.X64.B084.R00.1508310642
TXE FW : 2.0.0.2073
Ksc : 1.08

kernel 4.3.0-rc6-mainline+
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
piglit: (HEAD, origin/master, origin/HEAD, master) 058f969900d074d8ee99f326198d59cd64db5cf3 from git://git.freedesktop.org/git/piglit
rendercheck: (HEAD, tag: rendercheck-1.5, origin/master, origin/HEAD, master) 604e3bbe6d8d96bec284a83c08c5cc5f159a243c from git://git.freedesktop.org/git/xorg/app/rendercheck
ogles1conform: (HEAD, origin/gles1, gles1) 36970add1adb2e10a63721bb99ac47cc17d785fa from https://git-amr-2.devtools.intel.com/gerrit/p/otc_gen_graphics-khronos-glconform.git
ogles2conform and ogles3conform: (HEAD, origin/gles3-new-skylake, gles3-new-skylake) f64cf0fa03af8e8ffc781e823c7a571a5e97cf12 from https://git-amr-2.devtools.intel.com/gerrit/p/otc_gen_graphics-khronos-glconform.git

Reproduce step:
./drv_suspend --run-subtest sysfs-reader-hibernate

Actual result:
IGT-Version: 1.12-gbfea74a (x86_64) (Linux: 4.3.0-rc6-mainline+ x86_64)
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "disk" using /dev/rtc0 at Fri Oct 30 17:10:46 2015
rtcwake: write error
Test assertion failure function igt_system_hibernate_autoresume, file igt_aux.c:394:
Failed assertion: ret == 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.
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [igt_system_hibernate_autoresume+0x4d]
  #2 [test_sysfs_reader+0xd2]
  #3 [__real_main177+0x2bc]
  #4 [main+0x23]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest sysfs-reader-hibernate failed.
**** DEBUG ****
Test requirement passed: !igt_run_in_simulation()
Test assertion failure function igt_system_hibernate_autoresume, file igt_aux.c:394:
Failed assertion: ret == 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.
****  END  ****
Subtest sysfs-reader-hibernate: FAIL (9.205s)
Comment 1 Jani Nikula 2015-11-02 08:18:46 UTC
(In reply to Rami from comment #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.

Does 'rtcwake -s 90 -m disk' work for you?
Comment 2 Rami 2015-11-03 16:30:36 UTC
rtcwake -s 90 -m disk doesn't work, we will investigate the problem.
Comment 3 cprigent 2015-11-07 11:12:26 UTC
It is also reproduced on SKL-Y. Following tests are fail:
igt@drv_suspend@fence-restore-tiled2untiled-hibernate
igt@drv_suspend@fence-restore-untiled-hibernate
igt@drv_suspend@sysfs-reader-hibernate

We will confirm the status of the suspend to disk on both platforms.

Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1 2+2 (ou ULX-D1)
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02,FBS03, F23, O-02 & O-06
Software
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc7-drm-intel-nightly (86ba603) from git://anongit.freedesktop.org/drm-intel
  commit 86ba603f327626055fe1436112b3786eaaaf7fb1
  Author: Daniel Vetter <daniel.vetter@ffwll.ch>
  Date:   Sat Oct 31 09:27:21 2015 +0100
  drm-intel-nightly: 2015y-10m-31d-08h-26m-39s UTC integration manifest
Mesa 11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Comment 4 cprigent 2015-11-13 16:47:56 UTC
On BSW, suspend to disk is not working. Image is not restored when resuming, looks like a classic reboot. I will report another bug.
Comment 5 Humberto Israel Perez Rodriguez 2016-02-29 22:16:06 UTC
the following test pass with latest configuration on SKL

test
=========================
igt@drv_suspend@fence-restore-tiled2untiled-hibernate
igt@drv_suspend@fence-restore-untiled-hibernate
igt@drv_suspend@sysfs-reader-hibernate



Platform details
=======================
Kernel version	4.5.0-rc6-drm-intel-nightly-ww10-commit-2bcc9ac+
Linux distribution	Ubuntu 15.10
Architecture	64-bit
Mesa version	11.2.0-rc2 (git-33b0456
xf86-video-intel version	2.99.917
Xorg-Xserver version	1.18.1
DRM version	2.4.67
Cairo version	1.15.2
Intel GPU Tools version	
Kernel driver in use	i915
Bios revision	1
	
Platform	SKL
Motherboard model	Inspiron 15-7568
Motherboard type	02HK88 Laptop
Motherboard manufacturer	Dell Inc.
CPU family	Core i7
CPU information	Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
GPU Card	Intel Corporation Sky Lake Integrated Graphics (rev 07) (prog-if 00 [VGA controller])


gfx user space
=======================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67 
	 commit : d49efb5 
	 author : Rob Clark <robclark@freedesktop.org> 
	 age : 2 weeks ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.2.0-rc2 
	 commit : 33b0456 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 6 hours ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917 
	 commit : baec802 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 1 year 2 months ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : kbl-alpha 
	 commit : 0f88b7e 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 5 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : kbl-alpha 
	 commit : c4deca0 
	 author : peng.chen <peng.c.chen@intel.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 : 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 : 3 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.13-240-g925e5e1 
	 commit : 925e5e1 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 hours ago 


kernel
=======================

commit 2bcc9acb90918139a5fe52e366eb9efb89d6ebb0
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Feb 29 16:29:44 2016 +0100

    drm-intel-nightly: 2016y-02m-29d-15h-28m-47s UTC integration manifest


Additional configuration
=======================
Guc : 4.3
Dmc : 1.26
Comment 6 Elio 2016-04-14 18:25:38 UTC
This test is working for me with the following configuration:


++ 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
 ++ Display resolution                  :
 ++ CPU's number                        : 4
 ++ Hard drive capacity                 : 120 GB

 ++ Kernel version                      : 4.6.0-rc3-nightly+
 ++ Linux distribution                  : Ubuntu 15.10
 ++ Architecture                        : 64-bit
 
 ++ xf86-video-intel version            : 2.99.917
 ++ Xorg-Xserver version                : 1.17.2
 ++ DRM version                         : 2.4.64
 
 ++ Cairo version                       : 1.14.2
 ++ Intel GPU Tools version             : Tag [intel-gpu-tools-1.14-133-gc89e8db] / Commit [c89e8db]
 ++ Kernel driver in use                : i915
 ++ Hardware acceleration               :
 ++ Bios revision                       : 131.10
 ++ KSC revision                        : 1.12

Output:

 sudo ./drv_suspend --run-subtest sysfs-reader-hibernate
[sudo] password for gfx:
IGT-Version: 1.14-gc89e8db (x86_64) (Linux: 4.6.0-rc3-nightly+ x86_64)
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "disk" using /dev/rtc0 at Wed Jan  1 00:04:26 2098
Subtest sysfs-reader-hibernate: SUCCESS (14.123s)
Comment 7 cprigent 2016-04-15 08:47:12 UTC
Removed BXT from title and i915 platform field.
Reassigned to Rami to check on BSW.
Comment 8 Luis Botello 2016-04-21 21:17:35 UTC
This test is working on BSW with the following configuration:

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


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.