acrn-kernel/drivers/dma-buf
Veera Sundaram Sankaran f588f0c69e dma-fence: allow signaling drivers to set fence timestamp
Some drivers have hardware capability to get the precise HW timestamp
of certain events based on which the fences are triggered. The delta
between the event HW timestamp & current HW reference timestamp can
be used to calculate the timestamp in kernel's CLOCK_MONOTONIC time
domain. This allows it to set accurate timestamp factoring out any
software and IRQ latencies. Add a timestamp variant of fence signal
function, dma_fence_signal_timestamp to allow drivers to update the
precise timestamp for fences.

Changes in v2:
- Add a new fence signal variant instead of modifying fence struct

Changes in v3:
- Add timestamp domain information to commit-text and
dma_fence_signal_timestamp documentation

Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Reviewed-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
 [sumits: minor parenthesis alignment]
Link: https://patchwork.freedesktop.org/patch/msgid/1610757107-11892-1-git-send-email-veeras@codeaurora.org
(cherry picked from commit 5a164ac4db)
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
2021-02-24 21:05:28 +05:30
..
heaps dma-buf: heaps: Rework heap allocation hooks to return struct dma_buf instead of fd 2021-02-24 21:04:54 +05:30
Kconfig dma-buf: Add debug option 2021-01-18 14:26:51 +01:00
Makefile dma-buf: Exercise dma-fence-chain under selftests 2020-04-09 19:58:55 +01:00
dma-buf.c Linux 5.11-rc5 2021-01-25 14:35:44 +10:00
dma-fence-array.c
dma-fence-chain.c dma-buf: fence-chain: Document missing dma_fence_chain_init() parameter in kerneldoc 2020-09-03 17:47:02 +05:30
dma-fence.c dma-fence: allow signaling drivers to set fence timestamp 2021-02-24 21:05:28 +05:30
dma-heap.c dma-buf: heaps: Rework heap allocation hooks to return struct dma_buf instead of fd 2021-02-24 21:04:54 +05:30
dma-resv.c dma-buf/dma-resv: Respect num_fences when initializing the shared fence list. 2020-11-25 10:48:28 +01:00
selftest.c
selftest.h
selftests.h Merge drm/drm-next into drm-intel-next-queued 2020-06-25 18:05:03 +03:00
seqno-fence.c
st-dma-fence-chain.c dma-buf: fix dma-fence-chain out of order test 2020-07-02 15:21:40 +02:00
st-dma-fence.c dma-buf: Avoid comma separated statements 2021-02-09 17:14:11 +01:00
sw_sync.c
sync_debug.c
sync_debug.h
sync_file.c dma-buf: use krealloc_array() 2020-12-15 12:13:37 -08:00
sync_trace.h
udmabuf.c drm-misc-next for 5.10: 2020-09-23 09:52:24 +10:00