dma-buf: add dma_fence_timestamp helper
authorjsg <jsg@openbsd.org>
Fri, 20 Oct 2023 03:49:31 +0000 (03:49 +0000)
committerjsg <jsg@openbsd.org>
Fri, 20 Oct 2023 03:49:31 +0000 (03:49 +0000)
From Christian Koenig
d67b5a2b97b6e8959117ff71fc2daa30e66c8290 in linux-6.1.y/6.1.59
b83ce9cb4a465b8f9a3fa45561b721a9551f60e3 in mainline linux

sys/dev/pci/drm/scheduler/sched_main.c

index 4defaaf..b574dc8 100644 (file)
@@ -847,7 +847,7 @@ drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched)
 
                if (next) {
                        next->s_fence->scheduled.timestamp =
-                               job->s_fence->finished.timestamp;
+                               dma_fence_timestamp(&job->s_fence->finished);
                        /* start TO timer for next job */
                        drm_sched_start_timeout(sched);
                }