[PATCH] drm/i915: add rc6 residency times to debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 23 Mar 2012 13:43:22 -0300
Eugeni Dodonov <eugeni at dodonov.net> wrote:

> On Thu, Mar 22, 2012 at 22:42, Ben Widawsky <ben at bwidawsk.net> wrote:
> 
> > RC6 residency should be in intervals of 1.28us, and the counter
> > wraps. Here is an example using awk to get the RC6 and RC6+
> > residency in seconds, since boot.
> >
> > cat /sys/kernel/debug/dri/0/i915_drpc_info  | grep residency | awk
> > -F':' -F' '  '{print $5 * 1.28 / 1000000}'
> >
> > This is primarily for QA, but has other applications as well.
> >
> 
> Note that we already have this in intel_reg_dumper as well, since
> http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/commit/?id=47a5bc505cb972cc94f1fbd9882d4e5c2e72ac43
> .
> 
> But if it makes sense to include it into kernel as well, why not?
> 

Yeah, reg dumper does a whole lot of other stuff in addition to this.
I'd agree it wouldn't be worth adding a new debugfs entry though since
reg dumper does it (obviously intel_reg_read does it too :)).

> Reviewed-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
> 



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux