<div class="gmail_quote">On Thu, Mar 22, 2012 at 22:42, Ben Widawsky <span dir="ltr"><<a href="mailto:ben@bwidawsk.net" target="_blank">ben@bwidawsk.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


RC6 residency should be in intervals of 1.28us, and the counter wraps.<br>
Here is an example using awk to get the RC6 and RC6+ residency in<br>
seconds, since boot.<br>
<br>
cat /sys/kernel/debug/dri/0/i915_drpc_info  | grep residency | awk -F':' -F' '  '{print $5 * 1.28 / 1000000}'<br>
<br>
This is primarily for QA, but has other applications as well.<br></blockquote><div><br></div><div>Note that we already have this in intel_reg_dumper as well, since <a href="http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/commit/?id=47a5bc505cb972cc94f1fbd9882d4e5c2e72ac43">http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/commit/?id=47a5bc505cb972cc94f1fbd9882d4e5c2e72ac43</a>.</div>

<div><br></div><div>But if it makes sense to include it into kernel as well, why not?</div><div><br></div><div>Reviewed-by: Eugeni Dodonov <<a href="mailto:eugeni.dodonov@intel.com">eugeni.dodonov@intel.com</a>></div>

<div><br></div></div>-- <br>Eugeni Dodonov<a href="http://eugeni.dodonov.net/" target="_blank"><br></a><br>