All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: fixup dma_fence_wait usage
@ 2021-11-02 15:50 ` Matthew Auld
  0 siblings, 0 replies; 9+ messages in thread
From: Matthew Auld @ 2021-11-02 15:50 UTC (permalink / raw)
  To: intel-gfx; +Cc: Thomas Hellström, dri-devel

dma_fence_wait expects a boolean for whether it should be interruptible,
not a timeout value.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_vma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c
index 90546fa58fc1..8781c4f61952 100644
--- a/drivers/gpu/drm/i915/i915_vma.c
+++ b/drivers/gpu/drm/i915/i915_vma.c
@@ -349,7 +349,7 @@ int i915_vma_wait_for_bind(struct i915_vma *vma)
 		fence = dma_fence_get_rcu_safe(&vma->active.excl.fence);
 		rcu_read_unlock();
 		if (fence) {
-			err = dma_fence_wait(fence, MAX_SCHEDULE_TIMEOUT);
+			err = dma_fence_wait(fence, true);
 			dma_fence_put(fence);
 		}
 	}
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-11-03 15:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 15:50 [PATCH] drm/i915: fixup dma_fence_wait usage Matthew Auld
2021-11-02 15:50 ` [Intel-gfx] " Matthew Auld
2021-11-02 15:53 ` Thomas Hellström
2021-11-02 15:53   ` [Intel-gfx] " Thomas Hellström
2021-11-02 17:07 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2021-11-02 18:48 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-11-03  7:46   ` Matthew Auld
2021-11-03 15:32     ` Vudum, Lakshminarayana
2021-11-03 15:29 ` [Intel-gfx] ✓ Fi.CI.IGT: success " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.