drm/i915/pmu: "Frequency" is reported as accumulated cycles
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Nov 2019 10:53:56 +0000 (10:53 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 18 Nov 2019 17:20:38 +0000 (09:20 -0800)
commitadd3eeed3683e2636ef524db48e1a678757c8e96
tree605cc2b70e831d89c1db62c072933423d02d8e14
parent1aa4df7e41b6f37c677f0af8886c0900284e6ca1
drm/i915/pmu: "Frequency" is reported as accumulated cycles

We report "frequencies" (actual-frequency, requested-frequency) as the
number of accumulated cycles so that the average frequency over that
period may be determined by the user. This means the units we report to
the user are Mcycles (or just M), not MHz.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191109105356.5273-1-chris@chris-wilson.co.uk
(cherry picked from commit e88866ef02851c88fe95a4bb97820b94b4d46f36)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
(cherry picked from commit a7d87b70d6da96c6772e50728c8b4e78e4cbfd55)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_pmu.c