diff options
author | Christian König <christian.koenig@amd.com> | 2023-06-13 11:09:20 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-07-03 14:47:06 +0300 |
commit | f781f661e8c99b0cb34129f2e374234d61864e77 (patch) | |
tree | 4987d8931077df26a0768eb2086da83acb6cf046 /include/linux/dma-fence.h | |
parent | 1c519980aced3da1fae37c1339cf43b24eccdee7 (diff) | |
download | linux-f781f661e8c99b0cb34129f2e374234d61864e77.tar.xz |
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 'include/linux/dma-fence.h')
-rw-r--r-- | include/linux/dma-fence.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h index d54b595a0fe0..0d678e9a7b24 100644 --- a/include/linux/dma-fence.h +++ b/include/linux/dma-fence.h @@ -606,7 +606,7 @@ static inline signed long dma_fence_wait(struct dma_fence *fence, bool intr) void dma_fence_set_deadline(struct dma_fence *fence, ktime_t deadline); struct dma_fence *dma_fence_get_stub(void); -struct dma_fence *dma_fence_allocate_private_stub(void); +struct dma_fence *dma_fence_allocate_private_stub(ktime_t timestamp); u64 dma_fence_context_alloc(unsigned num); extern const struct dma_fence_ops dma_fence_array_ops; |