Bug 94673

Summary: [BDW] Stress. Platform is not able to recover successfully from S4 after 23 iterations
Product: DRI Reporter: Elio <elio.martinez.monroy>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: BDW i915 features: power/suspend-resume

Description Elio 2016-03-23 17:14:09 UTC
The platform restart system after several iterations performing S4.

Spected result:

The platform should wake up successfully after 100 S4 instructions:

Configuration:

1. BDW-U
Bios: RYBDWi35
Platform: NUC 5i7RYH
Processor: i7-5557U @ 3.10GHz



Kernel: 4.4 mainline from 
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?id=refs/tags/v4.4
xorg-server: 1.18.1 from https://cgit.freedesktop.org/xorg/xserver
libdrm: 2.4.67 from https://cgit.freedesktop.org/mesa/drm/
xf86-video-intel: 2.99.917 from https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
mesa: 11.1.2 from https://cgit.freedesktop.org/mesa/mesa/
libva: 1.7.0.pre1 from https://cgit.freedesktop.org/libva/
vaapi-intel-driver: 1.7.0.pre1 from https://cgit.freedesktop.org/vaapi/intel-driver
cairo: 1.15.2 from https://cgit.freedesktop.org/cairo
Comment 1 Elio 2016-03-23 17:23:30 UTC
S4 is called using the following instructions :

#!/bin/bash


cat /sys/power/state | grep disk
if [ $? -eq 0 ]; then
	date
	sleep 10
	# Clear old alarm
	echo '[CMD]echo 0 > /sys/class/rtc/rtc0/wakealarm'
	echo 0 > /sys/class/rtc/rtc0/wakealarm
        RC=$?
        if [ ${RC} -ne 0 ]; then
                check_rc "[CMD]echo 0 > /sys/class/rtc/rtc0/wakealarm" ${RC}
                return 1
        fi

	echo '[CMD]echo +40 > /sys/class/rtc/rtc0/wakealarm'
	echo +40 > /sys/class/rtc/rtc0/wakealarm
        RC=$?
        if [ ${RC} -ne 0 ]; then
                check_rc "[CMD]echo 40 > /sys/class/rtc/rtc0/wakealarm" ${RC}
                return 1
        fi

#	to change to /sys/class/rtc/rtcN/wakeup in future kernel
	dmesg -c >> dmesg
	echo '[CMD]echo disk > /sys/power/state	#S4'
	echo disk > /sys/power/state	#S4
	dmesg -c >> dmesg
else
	echo '[NOTE][CMD] S4 is not supported'
fi

echo "[CMD]suspend_resume end"
Comment 2 Imre Deak 2016-09-27 14:57:57 UTC
Does this still happen? If so could you try it with blacklisting the i915 and HDA drivers?
Comment 3 Elio 2016-11-24 17:58:34 UTC
The problem is not present any more, i just run a short cycle (100 iterations), and it is coming back from S4 without problems.

Platform                        : BDW
Motherboard type                : NUC5i5MYBE Desktop
CPU family                      : Core i5
CPU information                 : Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
GPU Card                        : Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller])
Memory ram                      : 16 GB
Maximum memory ram allowed      : 16 GB
CPU thread                      : 4
CPU core                        : 2
Socket                          : Socket BGA1168
Signature                       : Type 0, Family 6, Model 61, Stepping 4
Hard drive capacity             : 111GiB (120GB)


Kernel version                  : 4.9.0-rc5gcovjulian+
Linux distribution              : Ubuntu 16.04.1 LTS
Architecture                    : 64-bit
Mesa version                    : 11.2.0
xf86-video-intel version        : 2.99.917
Xorg-Xserver version            : 1.18.4
Intel GPU Tools version         : 1.14-1 <-- This is a generic version of IGT
Kernel driver in use            : i915

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.