mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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:
committed by
mobile promotions
parent
c9bb122876
commit
cab7514f4b
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user