diff options
author | 2020-01-14 10:56:47 +0000 | |
---|---|---|
committer | 2020-02-10 14:45:19 +0200 | |
commit | 88a9c66d998b1d2dac412fcd458c5d17d70513c8 (patch) | |
tree | 3f6960f9951a5c9ea5f5f218bc4df3e16dc51952 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | drm/i915: Fix i915_error_state_store error defination (diff) | |
download | linux-dev-88a9c66d998b1d2dac412fcd458c5d17d70513c8.tar.xz linux-dev-88a9c66d998b1d2dac412fcd458c5d17d70513c8.zip |
drm/i915/pmu: Correct the rc6 offset upon enabling
The rc6 residency starts ticking from 0 from BIOS POST, but the kernel
starts measuring the time from its boot. If we start measuruing
I915_PMU_RC6_RESIDENCY while the GT is idle, we start our sampling from
0 and then upon first activity (park/unpark) add in all the rc6
residency since boot. After the first park with the sampler engaged, the
sleep/active counters are aligned.
v2: With a wakeref to be sure
Closes: https://gitlab.freedesktop.org/drm/intel/issues/973
Fixes: df6a42053513 ("drm/i915/pmu: Ensure monotonic rc6")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200114105648.2172026-1-chris@chris-wilson.co.uk
(cherry picked from commit f4e9894b6952a2819937f363cd42e7cd7894a1e4)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions