dma-buf: keep the signaling time of merged fences v3
authorChristian König <christian.koenig@amd.com>
Tue, 13 Jun 2023 08:09:20 +0000 (10:09 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 3 Jul 2023 11:47:06 +0000 (13:47 +0200)
commitf781f661e8c99b0cb34129f2e374234d61864e77
tree4987d8931077df26a0768eb2086da83acb6cf046
parent1c519980aced3da1fae37c1339cf43b24eccdee7
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
drivers/dma-buf/dma-fence-unwrap.c
drivers/dma-buf/dma-fence.c
drivers/gpu/drm/drm_syncobj.c
include/linux/dma-fence.h