[PATCH 13/13] drm/i915: Assert object lock is held when unbinding
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Tue Jul 27 08:27:18 UTC 2021
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/i915/i915_vma.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c
index 5350defac2a2..e1898580c610 100644
--- a/drivers/gpu/drm/i915/i915_vma.c
+++ b/drivers/gpu/drm/i915/i915_vma.c
@@ -1663,6 +1663,8 @@ int i915_vma_unbind(struct i915_vma *vma)
intel_wakeref_t wakeref = 0;
int err;
+ assert_vma_held(vma);
+
/* Optimistic wait before taking the mutex */
err = i915_vma_sync(vma);
if (err)
--
2.31.0
More information about the Intel-gfx-trybot
mailing list