<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 - Reading amdgpu_pm_info causes stutter with Linux 4.12-rc"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101182">101182</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Reading amdgpu_pm_info causes stutter with Linux 4.12-rc
          </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>haagch@frickel.club
          </td>
        </tr></table>
      <p>
        <div>
        <pre>A stutter once wouldn't be so bad, but apps like radeon-profile repeatedly read
this file, so rendering stutters constantly.

You will have a hard time spotting it in the average fps graph, but with my
(still very inaccurate) low-fps patch at
<a href="https://github.com/ChristophHaag/mesa-mesa/commit/e097b91a85c85718576589402e075e7f5668e68c">https://github.com/ChristophHaag/mesa-mesa/commit/e097b91a85c85718576589402e075e7f5668e68c</a>
it's very visible that there is at least one frame that's delayed a lot each
time amdgpu_pm_info is read.
The GPU load does give an independent hint that something is wrong though.

To reproduce:
run  glxgears
run  sudo watch --interval=.3 cat /sys/kernel/debug/dri/0/amdgpu_pm_info
observe stuttering in glxgears.

RX 480, Linux 4.12-rc2.
I haven't tested 4.11 to confirm, but if I remember correctly, this happens in
mainline since 4.12.</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>