diff options
author | Chris Wilson <[email protected]> | 2017-02-27 12:26:54 +0000 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2017-03-09 10:43:55 +0200 |
commit | 8c9923707f30ff56d9fd242053594b18f38d8036 (patch) | |
tree | e5ae68a285fa0107f4d9cc35da1b85257d819380 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | b717a0392530ae8da0da041abe5c3a6098b55660 (diff) |
drm/i915: Remove the vma from the drm_mm if binding fails
As we track whether a vma has been inserted into the drm_mm using the
vma->flags, if we fail to bind the vma into the GTT we do not update
those bits and will attempt to reinsert the vma into the drm_mm on
future passes. To prevent that, we want to unwind i915_vma_insert() if
we fail in our attempt to bind.
Fixes: 59bfa1248e22 ("drm/i915: Start passing around i915_vma from execbuffer")
Testcase: igt/drv_selftest/live_gtt
Signed-off-by: Chris Wilson <[email protected]>
Cc: Matthew Auld <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: <[email protected]> # v4.9+
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 31c7effa39f21f0fea1b3250ae9ff32b9c7e1ae5)
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions