]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7d562975244e16db9df45a445f7fc084500109c
treed7c724be2782c602454234e74dfc074717b7c19b
parent01da9c8979f3d24bb75ef7080a8d9915e88dff94
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