mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
dma_fence_wait_timeout (along with a host of other jiffies-based timeouting functions) returns zero both in case of timeout and when the wait completes during the last jiffy before timeout. As such, we can't rely on it to distinguish between success and timeout. To prevent confusing callers by returning -EAGAIN before the timeout period has elapsed, check if the fence got signaled again after the wait. Bug 3955201 Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Change-Id: Ib90cbd3d78bac773a724a523925ae5d1b70107c8 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2857405 Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
14 KiB
14 KiB