<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - DebugFS reporting wrong RC-state on ilk"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=68150">68150</a>
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>ben@bwidawsk.net
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>jbarnes@sgi.com
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DebugFS reporting wrong RC-state on ilk
          </td>
        </tr>

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

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>joecool1029@gmail.com
          </td>
        </tr>

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

        <tr>
          <th>Status</th>
          <td>ASSIGNED
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>XOrg CVS
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Patched in this series of patches from bwidawsk to test RC6 state on ILK.
<a href="http://lists.freedesktop.org/archives/intel-gfx/2013-July/030263.html">http://lists.freedesktop.org/archives/intel-gfx/2013-July/030263.html</a>

Issue was seeing if it ever reached RC6 state, sysfs has no interface for this
anymore.  I poked around in debugFS and found i915_drpc_info.

cat /sys/kernel/debug/dri/64/i915_drpc_info
HD boost: yes
Boost freq: 9
HW control enabled: no
SW control enabled: yes
Gated voltage change: no
Starting frequency: P8
Max P-state: P0
Min P-state: P10
RS1 VID: 0
RS2 VID: 8
Render standby enabled: yes
Current RS state: RC1


It also shows RS state: on if performing activity on the GPU.  Tried polling
repeatedly using:

while [ 1 ] ; do grep "Current" /sys/kernel/debug/dri/0/i915_drpc_info >>
out.txt ; sleep .01; done

Still bounced between RC1 and on, never hitting RC6


However, if I use intel-gpu-tools and run:

intel_reg_read 0x111b8
I see:

0x111B8 : 0x474C3000 (RS2/RC6)
or
0x111B8 : 0x471C3000 (RS1)
or 
0x111B8 : 0x470C3000 (on)

Though today I'm seeing just:

0x111B8 : 0x0
0x111B8 : 0x100000</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>