mirror of
https://github.com/torvalds/linux.git
synced 2024-12-09 12:41:33 +00:00
687db2207b
Add an implementation of dma_fences based on syncpoints. Syncpoint interrupts are used to signal fences. Additionally, after software signaling has been enabled, a 30 second timeout is started. If the syncpoint threshold is not reached within this period, the fence is signalled with an -ETIMEDOUT error code. This is to allow fences that would never reach their syncpoint threshold to be cleaned up. The timeout can potentially be removed in the future after job tracking code has been refactored. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
14 lines
240 B
C
14 lines
240 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2020, NVIDIA Corporation.
|
|
*/
|
|
|
|
#ifndef HOST1X_FENCE_H
|
|
#define HOST1X_FENCE_H
|
|
|
|
struct host1x_syncpt_fence;
|
|
|
|
void host1x_fence_signal(struct host1x_syncpt_fence *fence);
|
|
|
|
#endif
|