gpu: host1x: Add DMA fence implementation
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 10 Jun 2021 11:04:42 +0000 (14:04 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Aug 2021 12:39:50 +0000 (14:39 +0200)
commit687db2207b1bc94ca34743871167923a6de78d85
treed7c724be2782c602454234e74dfc074717b7c19b
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
gpu: host1x: Add DMA fence implementation

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>
drivers/gpu/host1x/Makefile
drivers/gpu/host1x/fence.c [new file with mode: 0644]
drivers/gpu/host1x/fence.h [new file with mode: 0644]
drivers/gpu/host1x/intr.c
drivers/gpu/host1x/intr.h
include/linux/host1x.h