drm/i915/pmu: Add RC6 residency metrics
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 21 Nov 2017 18:18:52 +0000 (18:18 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 22 Nov 2017 11:25:06 +0000 (11:25 +0000)
commit6060b6aec03c76f9ce0977b70c27429d39d2956e
tree4360c5c111302258c6fd9bb9a8d6bef40fd28ec7
parent36cc8b963f5eb46352dc79d79e4bd5e8dd2ac2d6
drm/i915/pmu: Add RC6 residency metrics

For clients like intel-gpu-overlay it is easier to read the
counters via the perf API than having to parse sysfs.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171121181852.16128-9-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_pmu.c
include/uapi/drm/i915_drm.h