diff options
| author | Chris Wilson <[email protected]> | 2014-02-21 17:55:39 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2014-03-05 21:30:10 +0100 |
| commit | f62a007603f86d36b920265bbf6ae0c698d882d8 (patch) | |
| tree | d6402d144cd65f0dd50cdee0ee204e591f8c7193 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | e9dbd2b20201b49b04476d2e5763faa822967913 (diff) | |
drm/i915: Accurately track when we mark the hardware as idle/busy
We currently call intel_mark_idle() too often, as we do so as a
side-effect of processing the request queue. However, we the calls to
intel_mark_idle() are expected to be paired with a call to
intel_mark_busy() (or else we try to idle the hardware by accessing
registers that are already disabled). Make the idle/busy tracking
explicit to prevent the multiple calls.
v2: We can drop some of the complexity in __i915_add_request() as
queue_delayed_work() already behaves as we want (not requeuing the item
if it is already in the queue) and mark_busy/mark_idle imply that the
idle task is inactive.
v3: We do still need to cancel the pending idle task so that it is sent
again after the current busy load completes (not in the middle of it).
Reported-by: Paulo Zanoni <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Paulo Zanoni <[email protected]>
Reviewed-by: Paulo Zanoni <[email protected]>
Tested-by: Paulo Zanoni <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions