diff options
| author | Chris Wilson <[email protected]> | 2020-01-23 22:44:58 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2020-01-24 10:37:13 +0000 |
| commit | 60e94557fff1f5514c7fc4da7ddc2c7a13ffff26 (patch) | |
| tree | 56e430326761684f1fb7191daf60975c3f4513b9 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 90211ea4ba6e8066f827434e67678cb80f51ba58 (diff) | |
drm/i915: Check activity on i915_vma after confirming pin_count==0
Only assert that the i915_vma is now idle if and only if no other pins
are present. If another user has the i915_vma pinned, they may submit
more work to the i915_vma skipping the vm->mutex used to serialise the
unbind. We need to wait again, if we want to continue and unbind this
vma.
However, if we own the i915_vma (we hold the vm->mutex for the unbind
and the pin_count is 0), we can assert that the vma remains idle as we
unbind.
Fixes: 2850748ef876 ("drm/i915: Pull i915_vma_pin under the vm->mutex")
Closes: https://gitlab.freedesktop.org/drm/intel/issues/530
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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions