diff options
author | Christian König <christian.koenig@amd.com> | 2023-06-13 10:09:20 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-07-03 13:47:06 +0200 |
commit | f781f661e8c99b0cb34129f2e374234d61864e77 (patch) | |
tree | 4987d8931077df26a0768eb2086da83acb6cf046 /drivers/gpu/drm/drm_syncobj.c | |
parent | drm/panel: simple: Add Powertip PH800480T013 drm_display_mode flags (diff) | |
download | linux-f781f661e8c99b0cb34129f2e374234d61864e77.tar.xz linux-f781f661e8c99b0cb34129f2e374234d61864e77.zip |
dma-buf: keep the signaling time of merged fences v3
Some Android CTS is testing if the signaling time keeps consistent
during merges.
v2: use the current time if the fence is still in the signaling path and
the timestamp not yet available.
v3: improve comment, fix one more case to use the correct timestamp
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230630120041.109216-1-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/drm_syncobj.c')
-rw-r--r-- | drivers/gpu/drm/drm_syncobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c index 0c2be8360525..04589a35eb09 100644 --- a/drivers/gpu/drm/drm_syncobj.c +++ b/drivers/gpu/drm/drm_syncobj.c @@ -353,7 +353,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); |