diff options
author | Chris Wilson <[email protected]> | 2016-10-24 13:42:18 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2016-10-24 13:45:38 +0100 |
commit | 7c108fd8feac9a4f380c22444ff8527e8d25bc75 (patch) | |
tree | 3be7c7d7b51c3820c86fb669554f1d1e5da91d7d /tools/perf/scripts/python/stackcollapse.py | |
parent | 2eedfc7d58997cbd7fd747aa757b8ceac8a2dc50 (diff) |
drm/i915: Move fence cancellation to runtime suspend
At the moment, we have dependency on the RPM as a barrier itself in both
i915_gem_release_all_mmaps() and i915_gem_restore_fences().
i915_gem_restore_fences() is also called along !runtime pm paths, but we
can move the markup of lost fences alongside releasing the mmaps into a
common i915_gem_runtime_suspend(). This has the advantage of locating
all the tricky barrier dependencies into one location.
v2: Just mark the fence as invalid (fence->dirty) so that upon waking we
will be sure to clear the fence after use, or restore it to the correct
value before use. This makes sure that if the fence is left intact
across the sleep, we do not leave it pointing to a region of GTT for the
next unsuspecting user.
Suggested-by: Daniel Vetter <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Imre Deak <[email protected]>
Reviewed-by: Imre Deak <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions