diff options
author | Chris Wilson <[email protected]> | 2020-07-06 18:01:38 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2020-07-07 10:40:38 +0100 |
commit | 8567774e87e23a57155e5102f81208729b992ae6 (patch) | |
tree | 4c8e43bd13a05d4ec694e5d196bb01bf62bfc57c /tools/perf/scripts/python/sctop.py | |
parent | 6f48fd8a4e99118377bdabf3cb38fc95aa097a2f (diff) |
drm/i915/gt: Pin the rings before marking active
On eviction, we acquire the vm->mutex and then wait on the vma->active.
Therefore when binding and pinning the vma, we must follow the same
sequence, lock/pin the vma then mark it active. Otherwise, we mark the
vma as active, then wait for the vm->mutex, and meanwhile the evictor
holding the mutex waits upon us to complete our activity.
Fixes: 8ccfc20a7d56 ("drm/i915/gt: Mark ring->vma as active while pinned")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: <[email protected]> # v5.6+
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions