[PATCH 33/34] fixup! drm/i915: Do not use i915_vma active for waiting.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Thu Oct 14 11:46:14 UTC 2021


---
 drivers/gpu/drm/i915/i915_vma.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_vma.h b/drivers/gpu/drm/i915/i915_vma.h
index 8332741d0116..d6b57741c0b8 100644
--- a/drivers/gpu/drm/i915/i915_vma.h
+++ b/drivers/gpu/drm/i915/i915_vma.h
@@ -49,7 +49,7 @@ void i915_vma_unpin_and_release(struct i915_vma **p_vma, unsigned int flags);
 
 static inline bool i915_vma_is_active(const struct i915_vma *vma)
 {
-	return i915_gem_object_wait(vma->obj, I915_WAIT_ALL, 0);
+	return dma_resv_test_signaled(vma->obj->resv, true);
 }
 
 /* do not reserve memory to prevent deadlocks */
-- 
2.33.0



More information about the Intel-gfx-trybot mailing list