diff options
| author | Chris Wilson <[email protected]> | 2018-01-11 07:30:31 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2018-01-11 14:57:27 +0000 |
| commit | 4900727d35bb20028f9bd83146ec4bf78afffe30 (patch) | |
| tree | 2884854d132155d51955102f661403bafbbfa73d /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 2bbba4e94eb987701abcacae241929fd13a196b2 (diff) | |
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 <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions