diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index e84f70a2..8baf60dd 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -667,7 +667,7 @@ static int gk20a_channel_semaphore_wait_fd( | |||
667 | ret = __semaphore_wait_fd_fast_path(c, sync_fence, wait_cmd, &fp_sema); | 667 | ret = __semaphore_wait_fd_fast_path(c, sync_fence, wait_cmd, &fp_sema); |
668 | if (ret == 0) { | 668 | if (ret == 0) { |
669 | if (fp_sema) { | 669 | if (fp_sema) { |
670 | err = gk20a_fence_from_semaphore(fence, | 670 | err = gk20a_fence_from_semaphore(c->g, fence, |
671 | sema->timeline, | 671 | sema->timeline, |
672 | fp_sema, | 672 | fp_sema, |
673 | &c->semaphore_wq, | 673 | &c->semaphore_wq, |
@@ -734,7 +734,7 @@ static int gk20a_channel_semaphore_wait_fd( | |||
734 | * that we properly clean up in the event the sync_fence has | 734 | * that we properly clean up in the event the sync_fence has |
735 | * already signaled | 735 | * already signaled |
736 | */ | 736 | */ |
737 | err = gk20a_fence_from_semaphore(fence, sema->timeline, w->sema, | 737 | err = gk20a_fence_from_semaphore(c->g, fence, sema->timeline, w->sema, |
738 | &c->semaphore_wq, NULL, false, false); | 738 | &c->semaphore_wq, NULL, false, false); |
739 | if (err) | 739 | if (err) |
740 | goto clean_up_sema; | 740 | goto clean_up_sema; |
@@ -810,7 +810,7 @@ static int __gk20a_channel_semaphore_incr( | |||
810 | /* Release the completion semaphore. */ | 810 | /* Release the completion semaphore. */ |
811 | add_sema_cmd(c->g, c, semaphore, incr_cmd, 14, false, wfi_cmd); | 811 | add_sema_cmd(c->g, c, semaphore, incr_cmd, 14, false, wfi_cmd); |
812 | 812 | ||
813 | err = gk20a_fence_from_semaphore(fence, | 813 | err = gk20a_fence_from_semaphore(c->g, fence, |
814 | sp->timeline, semaphore, | 814 | sp->timeline, semaphore, |
815 | &c->semaphore_wq, | 815 | &c->semaphore_wq, |
816 | dependency, wfi_cmd, | 816 | dependency, wfi_cmd, |