]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: add rc6 residency times to debugfs
authorBen Widawsky <ben@bwidawsk.net>
Wed, 28 Mar 2012 01:59:38 +0000 (18:59 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Apr 2012 19:14:04 +0000 (21:14 +0200)
commitb4badec07eb0ddf931be297d9d9ccbf38897d5b7
tree62692ee5aa2c45b53c50388401f881f92c837ca3
parenta8f285466f9894060823fdf1f42ad9fe3f06f125
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>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_reg.h