<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 - [SKL] RPM wakelock ref not held during HW access (check_wm_state->skl_ddb_get_hw_state)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93441">93441</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[SKL] RPM wakelock ref not held during HW access (check_wm_state->skl_ddb_get_hw_state)
          </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>critical
          </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>imre.deak@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>The WARN below started to appear after adding stricter RPM reference checking
asserts. Testcases that triggered this during CI runs; the list may be not
exact since we stop reporting errors after the first one (by using WARN_ONCE):

igt@kms_flip@basic-flip-vs-modeset
igt@kms_flip@basic-flip-vs-wf_vblank
igt@kms_pipe_crc_basic@read-crc-pipe-c

[  250.913323] ------------[ cut here ]------------
[  250.913377] WARNING: CPU: 0 PID: 6422 at
drivers/gpu/drm/i915/intel_drv.h:1446 gen9_read32+0x336/0x3f0 [i915]()
[  250.913381] RPM wakelock ref not held during HW access
[  250.913385] Modules linked in:
[  250.913389]  i915 ax88179_178a usbnet mii x86_pkg_temp_thermal
intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul mei_me mei i2c_hid
e1000e ptp pps_core [last unloaded: i915]
[  250.913422] CPU: 0 PID: 6422 Comm: kms_flip Tainted: G     U  W      
4.4.0-rc5-gfxbench+ #1
[  250.913426] Hardware name: System manufacturer System Product
Name/Z170M-PLUS, BIOS 0408 08/28/2015
[  250.913430]  ffffffffa02e68a0 ffff8802479e39c8 ffffffff813e000c
ffff8802479e3a10
[  250.913439]  ffff8802479e3a00 ffffffff810746a1 000000000007027c
ffff8802479e3b52
[  250.913447]  000000000007027c ffff8801fb640000 0000000000000001
ffff8802479e3a60
[  250.913455] Call Trace:
[  250.913466]  [<ffffffff813e000c>] dump_stack+0x4e/0x82
[  250.913473]  [<ffffffff810746a1>] warn_slowpath_common+0x81/0xc0
[  250.913478]  [<ffffffff81074727>] warn_slowpath_fmt+0x47/0x50
[  250.913487]  [<ffffffff810c5a3d>] ? trace_hardirqs_on+0xd/0x10
[  250.913528]  [<ffffffffa02596b6>] gen9_read32+0x336/0x3f0 [i915]
[  250.913537]  [<ffffffff81796919>] ? mutex_unlock+0x9/0x10
[  250.913561]  [<ffffffffa0210a32>] skl_ddb_get_hw_state+0xa2/0x160 [i915]
[  250.913605]  [<ffffffffa0269ac3>] check_wm_state+0x43/0x1b0 [i915]
[  250.913650]  [<ffffffffa027a58b>] intel_atomic_commit+0x98b/0x17f0 [i915]
[  250.913699]  [<ffffffff8150ed17>] ?
drm_atomic_add_affected_connectors+0x87/0xf0
[  250.913706]  [<ffffffff8150e632>] drm_atomic_commit+0x32/0x50
[  250.913715]  [<ffffffff814eb705>] drm_atomic_helper_set_config+0x75/0xb0
[  250.913726]  [<ffffffff814fd640>] drm_mode_set_config_internal+0x60/0x110
[  250.913733]  [<ffffffff815023d6>] drm_mode_setcrtc+0x186/0x4f0
[  250.913739]  [<ffffffff811844f8>] ? __might_fault+0x48/0xa0
[  250.913761]  [<ffffffff814f450d>] drm_ioctl+0x13d/0x590
[  250.913774]  [<ffffffff81502250>] ? drm_mode_setplane+0x1b0/0x1b0
[  250.913789]  [<ffffffff811c2793>] ? __vfs_read+0x23/0xd0
[  250.913801]  [<ffffffff811d53ec>] do_vfs_ioctl+0x2fc/0x550
[  250.913817]  [<ffffffff811e0e5a>] ? __fget_light+0x6a/0x90
[  250.913829]  [<ffffffff811d567c>] SyS_ioctl+0x3c/0x70
[  250.913846]  [<ffffffff8179a45b>] entry_SYSCALL_64_fastpath+0x16/0x73
[  250.913857] ---[ end trace 69fd11dcfc73e82c ]---</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>