diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-01-11 07:30:31 +0000 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2018-02-01 07:31:42 -0800 |
commit | cc4f8fc72eb949889caa1d574d3db65fa9d71a12 (patch) | |
tree | 0b80ab4827f3b7ad603eae9dec4c8ed166cbe2b4 /.gitattributes | |
parent | 25da77f83068bfc95d08ddfb8e6c53983901e278 (diff) | |
download | lwn-cc4f8fc72eb949889caa1d574d3db65fa9d71a12.tar.gz lwn-cc4f8fc72eb949889caa1d574d3db65fa9d71a12.zip |
drm/i915/pmu: Reconstruct active state on starting busy-stats
We have a hole in our busy-stat accounting if the pmu is enabled during
a long running batch, the pmu will not start accumulating busy-time
until the next context switch. This then fails tests that are only
sampling a single batch.
v2: Count each active port just once (context in/out events are only on
the first and last assignment to a port).
v3: Avoid hardcoding knowledge of 2 submission ports
Fixes: 30e17b7847f5 ("drm/i915: Engine busy time tracking")
Testcase: igt/perf_pmu/busy-start
Testcase: igt/perf_pmu/busy-double-start
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/20180111073031.14614-1-chris@chris-wilson.co.uk
(cherry picked from commit 4900727d35bb20028f9bd83146ec4bf78afffe30)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions