drm/i915/pmu: Aggregate all RC6 states into one counter
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 24 Nov 2017 17:13:31 +0000 (17:13 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Nov 2017 17:20:04 +0000 (17:20 +0000)
commit3452fa3095e91acbcb1f6290e0d70fa7d3695a3a
treef08389181106f248f2093cc4acea0b2016c75a1d
parenta54b1873c0e3ffec3041cf72cb10d986d6bc4fe5
drm/i915/pmu: Aggregate all RC6 states into one counter

Chris has discovered that RC6, RC6p and RC6pp counters are mutually
exclusive, and even that on some SNB SKUs you get RC6p increasing, and on
the others RC6.

Furthermore RC6p and RC6pp were only present starting from GEN6 until,
GEN7, not including Haswell.

All this combined makes it questionable whether we need to reserve new ABI
for these counters. One idea was to just combine them all under the RC6
counter to simplify things for userspace. So that is what this patch does.

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