Bug 94584 - [BSW] GPU hang when suspending to disk
Summary: [BSW] GPU hang when suspending to disk
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-17 09:42 UTC by cprigent
Modified: 2016-09-09 15:56 UTC (History)
3 users (show)

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


Attachments
suspend_stress_test.shell (13.03 KB, text/plain)
2016-03-17 09:42 UTC, cprigent
no flags Details
kern.log (2.23 MB, text/plain)
2016-03-17 09:43 UTC, cprigent
no flags Details

Description cprigent 2016-03-17 09:42:55 UTC
Created attachment 122368 [details]
suspend_stress_test.shell

Hardware: 
Motherboard: Aspire XC-704 
cpu model name : Intel(R) Pentium(R) CPU N3700 @ 1.60GHz 
cpu model : 76 
cpu family : 6 
Graphic card: Device 22b1 (rev 21)

Software:
Ubuntu 14.04
Bios: R01-A2
Kernel mainline 4.4.0 from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  commit afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
  Author: Linus Torvalds <torvalds@linux-foundation.org>
  Date:   Sun Jan 10 15:01:32 2016 -0800
  Linux 4.4
drm: libdrm-2.4.67-5 ea07de9 from git://anongit.freedesktop.org/mesa/drm
mesa: tag mesa-11.1.2 7bcd827 from git://anongit.freedesktop.org/mesa/mesa
cairo: tag 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
waffle: master bb29b2a from git://github.com/waffle-gl/waffle
xorg-server-macros: tag: util-macros-1.19.0-2 d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
xserver: tag: xorg-server-1.18.1 23e60f9 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: tag 2.99.917-560 d167280 from git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
libva: tag libva-1.7.0.pre1 35f1447 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: tag 1.7.0.pre1 ab8e4e3 from git://anongit.freedesktop.org/vaapi/intel-driver
IGT 1.14 364d378 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

One external screen connected to HDMI

Steps:
-------
1. Suspend to DISK with:
sudo -s
echo disk > /sys/power/state
2. Wait 60 seconds
3. Resume
4. Wait 30 seconds
5. Repeat previous steps several times

Actual result:
--------------
5. DUT reboots the 15th iteration without restoring any image, there is a GPU hang:
[    8.118322] sd 2:0:0:0: [sdb] No Caching mode page found
[    8.118383] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[  445.825548] [drm:i915_context_is_banned [i915]] *ERROR* gpu hanging too fast, banning!

Expected result:
---------------
5. DUT can suspend to DISK and resume 2000 times

Info
----
I used the script attached to automate it, execute command:
# ./suspend_stress_test.shell  --iterations=100 --mode=disk --suspend=48-52 --wake=28-32 --abort=none --display=error --file=suspend-log
Comment 1 cprigent 2016-03-17 09:43:28 UTC
Created attachment 122369 [details]
kern.log
Comment 2 Ville Syrjala 2016-05-10 15:38:57 UTC
Please attach the error state
Comment 3 yann 2016-09-05 10:38:07 UTC
Christophe, is it still happening? If so please attach gpu crash dump.
Comment 4 cprigent 2016-09-09 15:56:22 UTC
DUT did successfully 100 cycles without error with fresh setup.

Hardware: Acer Desktop
Motherboard: Aspire XC-704
CPU: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz (Family 6, Model 76, Stepping 3)
GPU:  Intel® HD Graphics - Intel Corporation Device 22b1 (rev 21)
Memory card: 1 card 4GB Hynix HMT451S6BFR8APB
HDD: Western Digital WDC WD10EZEX-21M (1TB)

Software:
Bios: R01-A2
Linux distribution: Ubuntu 16.04 64 bits

Kernel: 4.8.0-rc5 5986f29 from http://cgit.freedesktop.org/drm-intel/
  commit 5986f290e25f42d3d5df390411cc43683deb1301
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Thu Sep 8 12:12:10 2016 +0300
  drm-intel-nightly: 2016y-09m-08d-09h-11m-50s 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
xf86-video-intel 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


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.