diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-08-18 13:24:56 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-16 00:58:44 -0400 |
commit | cab7514f4befd18430a6f42b46dc782ac14c4342 (patch) | |
tree | 2a1189b772882a28e0b82f6baa1a49223c5ffb51 /drivers/gpu/nvgpu | |
parent | c9bb1228762dfbb595057d976f9b08aaead19f47 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index 0eff4e2f..7a71c4eb 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -606,7 +606,7 @@ static int gk20a_channel_semaphore_wait_fd( | |||
606 | #else | 606 | #else |
607 | status = atomic_read(&sync_fence->status); | 607 | status = atomic_read(&sync_fence->status); |
608 | #endif | 608 | #endif |
609 | if (status) { | 609 | if (status == 0) { |
610 | sync_fence_put(sync_fence); | 610 | sync_fence_put(sync_fence); |
611 | goto skip_slow_path; | 611 | goto skip_slow_path; |
612 | } | 612 | } |