<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - In a stress test of 500 cycles of s4, it fails before getting to the 80 cycles because the system reboots..."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103611">103611</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>In a stress test of 500 cycles of s4, it fails before getting to the 80 cycles because the system reboots...
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>DRI git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hector.franciscox.velazquez.suriano@intel.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=135285" name="attach_135285" title="suspend_stress_test.shell.sh file">attachment 135285</a> <a href="attachment.cgi?id=135285&action=edit" title="suspend_stress_test.shell.sh file">[details]</a></span>
suspend_stress_test.shell.sh file

This test fails in a SKL:

Launch 500 iterations of suspend to disk

======================================
             Issue description
======================================

In a stress test of 500 cycles of s4, it fails before getting to the 80 cycles
because the system reboots...

======================================
             Steps to reproduce
======================================
1)Setup an SKL with Ubuntu 17.04
  make sure setting up during ubuntu installation a separate swap partition (at
least the same size of the ram...)
    my partition map is:
     sda    8:0    0 223.6G  0 disk
   ├─sda1   8:1    0   476M  0 part /boot/efi
   ├─sda2   8:2    0  39.1G  0 part [SWAP]
   └─sda3   8:3    0 181.2G  0 part /

2)Install the kernel 4.13.5-041305-generic_4.13.5-041305.201710050600_amd64
from kernel.org
  a)In a Terminal execute...
    I)  $sudo apt update
    II) $sudo apt upgrade

3)Install full graphic stack with the components and commits described below in
the Graphic stack section...
  a)In a Terminal execute...
    I)  $sudo apt update
    II) $sudo apt upgrade

4)make sure to add this line: 'resume=/dev/sda2' in the grub to perform the
S4...
  a)execute $sudo nano /etc/default/grub
  b)add the swap partition in the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet
splash resume=/dev/sda2"
  c)sudo update-grub
     Note: you can verified the swap location with the 'swapon' command...
     NAME      TYPE       SIZE USED PRIO
     /dev/sda2 partition 39.1G   0B   -1
  d)Reboot the system to apply changes... 

5)Board is powered on, a Terminal is opened...
  a)Remove kernel boot command lines, except drm.debug=0xe and
no_console_suspend
  c) Execute commands in a terminal:
     sudo rm /var/log/kern.log 
     sudo reboot now
     sudo -s
     chmod 755 suspend_stress_test.shell
         Note: the script 'suspend_stress_test.shell' is an attachement...

6)Execute command:
  ./suspend_stress_test.shell --iterations=500 --mode=disk --suspend=58-62
--wake=28-32 --abort=none --display=error --file=/home/$USER/Desktop/s4-log

======================================
            Spected Results
======================================

Suspend to DISK and resume states are reached each time. There is no error
printed by the script, no instability (crash, freeze, black screen,
mouse/keyboard not responding)
The system should be complete the 500 S4 cycles...



This is my configuration:

======================================
            Graphic stack
======================================
Component: drm
    tag: libdrm-2.4.83-10-g2ecafca
    commit: 2ecafcae8a215d9994fb26a122d97bcb5437c5e8

Component: mesa
    tag: mesa-17.1.10
    commit: 834d6c60db266c7d7dfd973729f20379dd3da287

Component: macros
    tag: util-macros-1.19.1-2-g39f07f7
    commit: 39f07f7db58ebbf3dcb64a2bf9098ed5cf3d1223

Component: xproto
    tag: xproto-7.0.31-6-gab86666
    commit: ab8666661fc68f075b8d6ffabe22c6b577c30ac1

Component: glproto
    tag: glproto-1.4.17-5-g500b137
    commit: 500b137bbdba1cd8ae943849fef6e79fdd4eca40

Component: dri2proto
    tag: dri2proto-2.8-4-gb118dfb
    commit: b118dfbf91dcec6d82dfddc3f41031e23ea3c039

Component: xserver
    tag: xorg-server-1.19.0-433-gc2f2b25
    commit: c2f2b25ab55c67f9f3ad07c02fa746eae7c61196

Component: libXfont
    tag: libXfont2-2.0.1-14-g672bb94
    commit: 672bb944311392e2415b39c0d63b1e1902905bcd

Component: xf86-input-evdev
    tag: xf86-input-evdev-2.10.5-3-g8c1058f
    commit: 8c1058f2ebd9355068fb1b67329f3428ca64775b

Component: xf86-input-libinput
    tag: xf86-input-libinput-0.26.0
    commit: 2be6487de417473aac85ebd800392cdd8604c4a6

Component: xf86-video-fbdev
    tag: xf86-video-fbdev-0.4.4-11-g3cf9923
    commit: 3cf99231199bd5bd9e681e85d9da1f9eb736e3e7

Component: xf86-video-vesa
    tag: xf86-video-vesa-2.3.4-5-gb9f9c95
    commit: b9f9c95ca2383460aa283adeeee6e0a66eed722b

Component: xf86-video-vmware
    tag: xf86-video-vmware-13.0.2-55-g08ad438
    commit: 08ad438e2793248452dab100822cbfcaa05b9938

Component: xf86-video-qxl
    tag: xf86-video-qxl-0.1.5-9-gee8f904
    commit: ee8f904ab0d590c741e640e9548c472e6a58b3cc

Component: xf86-video-chips
    tag: xf86-video-chips-1.2.7-5-gc2711ee
    commit: c2711eedaac20af973721111a909a6f575078410

Component: x11proto
    tag: xproto-7.0.31-6-gab86666
    commit: ab8666661fc68f075b8d6ffabe22c6b577c30ac1

Component: libxtrans
    tag: xtrans-1.3.5-12-g2836667
    commit: 28366676effaa512e43bfd2276a317389a992511

Component: libX11
    tag: libX11-1.6.5-21-ge835a9d
    commit: e835a9dcc3362b5e92893be756dd7ae361e64ced

Component: libXext
    tag: libXext-1.3.3-7-ga07b4bb
    commit: a07b4bb8290d0c1bba7bcecd5bb6896fbe1b169c

Component: xrdb
    tag: xrdb-1.1.0-15-gae86081
    commit: ae86081a92522653ff1523c92524ff892f75d496

Component: xf86-video-intel
    tag: 2.99.917-789-g291fdcd
    commit: 291fdcdc09420d8e422617070731eb3da3d55b44

Component: xkbcomp
    tag: xkbcomp-1.4.0
    commit: 3fcd5f4490adee266eb4c0110d058c7f4e515e36

Component: xf86-input-wacom
    tag: xf86-input-wacom-0.34.2-12-g2456f82
    commit: 2456f821ba368fae5c084b44e86b8754187670c0

Component: pixman
    tag: pixman-0.33.6-24-g85467ec
    commit: 85467ec308f8621a5410c007491797b7b1847601

Component: libpciaccess
    tag: libpciaccess-0.13.5-1-ga167bd6
    commit: a167bd6474522a709ff3cbb00476c0e4309cb66f

Component: libinput
    tag: 1.8.1
    commit: cc9a4debd3889a3b3a5139576ea873eebcf7dde7

Component: xkeyboard-config
    tag: xkeyboard-config-2.22-1-ga6cba79
    commit: a6cba79b4ba1760b348db5145f597514e1773a16

Component: xf86-input-mouse
    tag: xf86-input-mouse-1.9.2-4-g3c8f243
    commit: 3c8f243b750a92d5837a449d344ff884dbd02b57

Component: xf86-input-keyboard
    tag: xf86-input-keyboard-1.9.0-3-g940f441
    commit: 940f44149d1037cfc14bbb3628044a2bd002c33e

Component: xf86-input-synaptics
    tag: xf86-input-synaptics-1.9.0-2-gafa8d7b
    commit: afa8d7bb469e7ce01d9239f0dd790d3d620bfbd6

Component: libva
    tag: 2.0.0.pre2
    commit: d6a40680bc41b5365eab4924bed951ddb55b5ab9

Component: libva-utils
    tag: 2.0.0.pre2
    commit: 4341558abc0b1cd705b8f1fb06dd2fe6d2774886

Component: intel-vaapi-driver
    tag: 2.0.0.pre2
    commit: bd195529797c180d9efead59986b9128f0557885

Component: cairo
    tag: 1.15.8-17-g5a9dba9
    commit: 5a9dba9929d9c9046705150f7e3c4783ff34e4dd

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.20
    commit: 7f93a2632aae7c5865823b4a2fa4cd8c2a1c0977

Component: piglit
    tag: piglit-v1
    commit: 772955db4b29ee515d9553ebbaff49905effc430

======================================
             Software
======================================
kernel version              : 4.13.5-041305-generic
hostname                    : SkullCanyon
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 5.6
bios release date           : 09/29/2016
hardware acceleration       : enabled
swap partition              : enabled on (/dev/sda2)

======================================
        Graphic drivers
======================================
mesa                        : 17.1.10 (git-834d6c60
modesetting                 : enabled
modesetting compiled for    : 1.19.99.1 X.Org Video Driver
libdrm                      : 2.4.83
vaapi (intel-driver)        : Intel i965 driver for Intel(R) Skylake -
2.0.0.pre2 (2.0.0.pre2)
cairo                       : 1.15.9
intel-gpu-tools (tag)       : intel-gpu-tools-1.20
intel-gpu-tools (commit)    : 7f93a263

======================================
             Hardware
======================================
platform                   : Skylake Canyon
motherboard id             : NUC6i7KYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
gpu card                   : Intel Corporation Iris Pro Graphics 580 (rev 09)
(prog-if 00 [VGA controller])
memory ram                 : 31.31 GB
max memory ram             : 32 GB
display resolution         : 1920x1080
cpu thread                 : 8
cpu core                   : 4
cpu model                  : 94
cpu stepping               : 3
socket                     : Other
signature                  : Type 0, Family 6, Model 94, Stepping 3
hard drive                 : 223GiB (240GB)
current cd clock frequency : 337500 kHz
maximum cd clock frequency : 675000 kHz
displays connected         : DP-1 DP-2 DP-3

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.26
guc fw loaded             : SUCCESS
guc version wanted        : 6.1
guc version found         : 6.1
huc fw loaded             : yes

======================================
             kernel parameters
======================================
quiet splash drm.debug=0xe pci=pcie_bus_safe intel_iommu=igfx_off
i915.alpha_support=1 i915.enable_guc_loading=2 i915.enable_guc_submission=2
resume=/dev/sda2</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>