<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 - Raven: `flush_delayed_work()` takes 500 ms"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107376">107376</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Raven: `flush_delayed_work()` takes 500 ms
          </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/AMDgpu
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pmenzel+bugs.freedesktop@molgen.mpg.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=140811" name="attach_140811" title="HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg` (devicelist: amdgpu, maxdepth: 12)">attachment 140811</a> <a href="attachment.cgi?id=140811&action=edit" title="HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg` (devicelist: amdgpu, maxdepth: 12)">[details]</a></span>
HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg`
(devicelist: amdgpu, maxdepth: 12)

Created <span class=""><a href="attachment.cgi?id=140810" name="attach_140810" title="HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg` (devicelist: amdgpu, maxdepth: 12)">attachment 140810</a> <a href="attachment.cgi?id=140810&action=edit" title="HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg` (devicelist: amdgpu, maxdepth: 12)">[details]</a></span>
HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg`
(devicelist: amdgpu, maxdepth: 12)

Profiling the suspend and resume time [1] on a MSI B350M MORTAR (MS-7A37) with
AMD Ryzen 3 2200G with Radeon Vega Graphics with Linux 4.18-rc6+ and
amd-staging-drm-next [2], `pci_pm_suspend()` takes over one second, which is
too long [3], cf. <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Raven: pci_pm_resume takes over 1 second"
   href="show_bug.cgi?id=107278">bug 107278</a> [3].

This is spent in `amdgpu_device_ip_resume_phase2()`, where 505 ms are spent in
`flush_delayed_work()`.

•   flush_delayed_work (505.026 ms @ 98.640854)
    […]
    •   flush_work (505.017 ms @ 98.640863)
        […]
        •   wait_for_completion (504.985 ms @ 98.640894)
            […]
            •    schedule_timeout (504.963 ms @ 98.640914)
                 […]
                 •   schedule (504.963 ms @ 98.640914)

[1]: <a href="https://01.org/suspendresume">https://01.org/suspendresume</a>
[2]: <a href="https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next">https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next</a>
[3]: <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Raven: pci_pm_resume takes over 1 second"
   href="show_bug.cgi?id=107278">https://bugs.freedesktop.org/show_bug.cgi?id=107278</a></pre>
        </div>
      </p>


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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>