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
This commit is contained in:
@@ -141,7 +141,11 @@ enum drm_i915_pmu_engine_sample {
|
||||
|
||||
#define I915_PMU_INTERRUPTS __I915_PMU_OTHER(2)
|
||||
|
||||
#define I915_PMU_LAST I915_PMU_INTERRUPTS
|
||||
#define I915_PMU_RC6_RESIDENCY __I915_PMU_OTHER(3)
|
||||
#define I915_PMU_RC6p_RESIDENCY __I915_PMU_OTHER(4)
|
||||
#define I915_PMU_RC6pp_RESIDENCY __I915_PMU_OTHER(5)
|
||||
|
||||
#define I915_PMU_LAST I915_PMU_RC6pp_RESIDENCY
|
||||
|
||||
/* Each region is a minimum of 16k, and there are at most 255 of them.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user