gpu: nvgpu: Fix invalid test for signaled sync_fences

Fix a check that was backwards for signaled sync_fences. This would cause
the code to not wait on some sync_fences that had not already signaled and
wait on other fences that had signaled.

Bug 1787348

Reviewed-on: http://git-master/r/1204710
(cherry picked from commit 75b94bb30f79c3a7a9992773dc8a93b507121006)
Change-Id: I00b0f8a373a9954a5ad9ab31aff6423e91574153
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1221044
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Alex Waterman
2016-08-18 10:24:56 -07:00
committed by mobile promotions
parent c9bb122876
commit cab7514f4b

View File

@@ -606,7 +606,7 @@ static int gk20a_channel_semaphore_wait_fd(
#else
status = atomic_read(&sync_fence->status);
#endif
if (status) {
if (status == 0) {
sync_fence_put(sync_fence);
goto skip_slow_path;
}