summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2017-08-18 06:52:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-22 06:53:51 -0400
commit81868a187fa3b217368206f17b19309846e8e7fb (patch)
tree2b59e33b61cc6e206f7781f3b4ab44c5c7b6d721 /drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
parent5f010177de985c901c33c914efe70a8498a5974f (diff)
gpu: nvgpu: Nvgpu abstraction for linux barriers.
construct wrapper nvgpu_* methods to replace mb,rmb,wmb,smp_mb,smp_rmb,smp_wmb,read_barrier_depends and smp_read_barrier_depends. NVGPU-122 Change-Id: I8d24dd70fef5cb0fadaacc15f3ab11531667a0df Signed-off-by: Debarshi <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1541199 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index f50fec13..3e979ebd 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -27,6 +27,7 @@
27#include <nvgpu/hw/gk20a/hw_top_gk20a.h> 27#include <nvgpu/hw/gk20a/hw_top_gk20a.h>
28#include <nvgpu/hw/gk20a/hw_mc_gk20a.h> 28#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
29#include <nvgpu/hw/gk20a/hw_gr_gk20a.h> 29#include <nvgpu/hw/gk20a/hw_gr_gk20a.h>
30#include <nvgpu/barrier.h>
30 31
31static u32 ce2_nonblockpipe_isr(struct gk20a *g, u32 fifo_intr) 32static u32 ce2_nonblockpipe_isr(struct gk20a *g, u32 fifo_intr)
32{ 33{
@@ -654,7 +655,7 @@ int gk20a_ce_execute_ops(struct gk20a *g,
654 /* take always the postfence as it is needed for protecting the ce context */ 655 /* take always the postfence as it is needed for protecting the ce context */
655 submit_flags |= NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_GET; 656 submit_flags |= NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_GET;
656 657
657 wmb(); 658 nvgpu_smp_wmb();
658 659
659 ret = gk20a_submit_channel_gpfifo(ce_ctx->ch, &gpfifo, NULL, 660 ret = gk20a_submit_channel_gpfifo(ce_ctx->ch, &gpfifo, NULL,
660 1, submit_flags, &fence, 661 1, submit_flags, &fence,