<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 - [BAT][BDW] WARN_ON(!intel_engines_are_idle(dev_priv)) in i915_gem_suspend+0x123/0x140"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101891">101891</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[BAT][BDW] WARN_ON(!intel_engines_are_idle(dev_priv)) in i915_gem_suspend+0x123/0x140
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>martin.peres@free.fr
          </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>When running igt@gem_exec_suspend@basic-s3 on fi-bdw-5557u on CI_DRM_2859, we
got the following warning:

[  205.129268] WARN_ON(!intel_engines_are_idle(dev_priv))
[  205.129283] ------------[ cut here ]------------
[  205.129312] WARNING: CPU: 1 PID: 3106 at
drivers/gpu/drm/i915/i915_gem.c:4589 i915_gem_suspend+0x123/0x140 [i915]
[  205.129313] Modules linked in: snd_hda_codec_hdmi i915 x86_pkg_temp_thermal
intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul snd_hda_codec_realtek
snd_hda_codec_generic ghash_clmulni_intel e1000e snd_hda_intel snd_hda_codec
snd_hwdep snd_hda_core ptp mei_me pps_core lpc_ich mei snd_pcm prime_numbers
i2c_hid
[  205.129345] CPU: 1 PID: 3106 Comm: kworker/u8:12 Tainted: G     U         
4.13.0-rc1-CI-CI_DRM_2859+ #1
[  205.129346] Hardware name:                  /NUC5i7RYB, BIOS
RYBDWi35.86A.0362.2017.0118.0940 01/18/2017
[  205.129350] Workqueue: events_unbound async_run_entry_fn
[  205.129353] task: ffff880247350040 task.stack: ffffc90000434000
[  205.129377] RIP: 0010:i915_gem_suspend+0x123/0x140 [i915]
[  205.129378] RSP: 0018:ffffc90000437c80 EFLAGS: 00010282
[  205.129381] RAX: 000000000000002a RBX: ffff88023e9d0000 RCX:
0000000000000006
[  205.129383] RDX: 0000000000000006 RSI: ffffffff81cf0a44 RDI:
ffffffff81ca7bbe
[  205.129384] RBP: ffffc90000437c98 R08: 0000000000000000 R09:
0000000000000001
[  205.129385] R10: 0000000000000000 R11: 0000000000000000 R12:
0000000000000000
[  205.129387] R13: ffff88023e9d7fb0 R14: 0000000000000000 R15:
0000000000000000
[  205.129388] FS:  0000000000000000(0000) GS:ffff880256c80000(0000)
knlGS:0000000000000000
[  205.129390] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  205.129391] CR2: 000000000177e068 CR3: 0000000003e0f000 CR4:
00000000003406e0
[  205.129393] Call Trace:
[  205.129414]  i915_pm_suspend+0x80/0x190 [i915]
[  205.129419]  pci_pm_suspend+0x71/0x130
[  205.129422]  dpm_run_callback+0x6f/0x330
[  205.129425]  ? pci_pm_resume+0x90/0x90
[  205.129428]  __device_suspend+0xfb/0x370
[  205.129431]  ? dpm_watchdog_set+0x60/0x60
[  205.129435]  async_suspend+0x1a/0x90
[  205.129438]  async_run_entry_fn+0x33/0x160
[  205.129441]  process_one_work+0x1fe/0x670
[  205.129445]  worker_thread+0x49/0x3b0
[  205.129449]  kthread+0x10f/0x150
[  205.129451]  ? process_one_work+0x670/0x670
[  205.129453]  ? kthread_create_on_node+0x40/0x40
[  205.129456]  ret_from_fork+0x27/0x40
[  205.129461] Code: df e8 32 98 ff ff e9 4c ff ff ff 48 83 7a 08 00 0f 84 7a
ff ff ff 0f 0b 48 c7 c6 f8 2e 2d a0 48 c7 c7 45 0a 2c a0 e8 89 0a f3 e0 <0f> ff
eb c2 48 c7 c6 e6 0a 2c a0 48 c7 c7 45 0a 2c a0 e8 72 0a 
[  205.129534] ---[ end trace 0873ed3567407846 ]---

This has not been reproduced in 5 runs, so I assume it is not a common issue to
hit.

Full logs:
<a href="https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_2859/fi-bdw-5557u/igt@gem_exec_suspend@basic-s3.html">https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_2859/fi-bdw-5557u/igt@gem_exec_suspend@basic-s3.html</a></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 QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>