dma-buf: keep the signaling time of merged fences v3
authorjsg <jsg@openbsd.org>
Fri, 4 Aug 2023 09:30:48 +0000 (09:30 +0000)
committerjsg <jsg@openbsd.org>
Fri, 4 Aug 2023 09:30:48 +0000 (09:30 +0000)
From Christian Koenig
23acc2b850ba4dfdfe2700d728be3e27710260a1 in linux-6.1.y/6.1.43
f781f661e8c99b0cb34129f2e374234d61864e77 in mainline linux

sys/dev/pci/drm/drm_syncobj.c

index 0aafbcd..bd4aa4d 100644 (file)
@@ -356,7 +356,7 @@ EXPORT_SYMBOL(drm_syncobj_replace_fence);
  */
 static int drm_syncobj_assign_null_handle(struct drm_syncobj *syncobj)
 {
-       struct dma_fence *fence = dma_fence_allocate_private_stub();
+       struct dma_fence *fence = dma_fence_allocate_private_stub(ktime_get());
 
        if (IS_ERR(fence))
                return PTR_ERR(fence);