summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-03-27 18:59:38 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-12 21:14:04 +0200
commitcce66a283e36e7479774de47ae9f33f7db2b8fcf (patch)
tree62692ee5aa2c45b53c50388401f881f92c837ca3 /drivers/gpu/drm/i915/i915_drv.h
parenteffbc4fd8e37e41d6f2bb6bcc611c14b4fbdcf9b (diff)
downloadop-kernel-dev-cce66a283e36e7479774de47ae9f33f7db2b8fcf.zip
op-kernel-dev-cce66a283e36e7479774de47ae9f33f7db2b8fcf.tar.gz
drm/i915: add rc6 residency times to debugfs
RC6 residency should be in intervals of 1.28us, and the counter wraps. Here is an example using awk to get the various RC6 and RC6+ residency times 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. An upcoming patch to add interfaces should be more interesting to application developers. v2: move comment to the correct place v3: display with %u instead of %d, for Ouping CC: Ouping Zhang <ouping.zhang@intel.com> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud