diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2017-08-18 06:52:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-22 06:53:51 -0400 |
commit | 81868a187fa3b217368206f17b19309846e8e7fb (patch) | |
tree | 2b59e33b61cc6e206f7781f3b4ab44c5c7b6d721 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | 5f010177de985c901c33c914efe70a8498a5974f (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/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 5ee90440..fea3b0fa 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <nvgpu/hashtable.h> | 22 | #include <nvgpu/hashtable.h> |
23 | #include <nvgpu/circ_buf.h> | 23 | #include <nvgpu/circ_buf.h> |
24 | #include <nvgpu/thread.h> | 24 | #include <nvgpu/thread.h> |
25 | #include <nvgpu/barrier.h> | ||
25 | 26 | ||
26 | #include "ctxsw_trace_gk20a.h" | 27 | #include "ctxsw_trace_gk20a.h" |
27 | #include "fecs_trace_gk20a.h" | 28 | #include "fecs_trace_gk20a.h" |
@@ -370,7 +371,7 @@ int gk20a_fecs_trace_poll(struct gk20a *g) | |||
370 | } | 371 | } |
371 | 372 | ||
372 | /* ensure FECS records has been updated before incrementing read index */ | 373 | /* ensure FECS records has been updated before incrementing read index */ |
373 | wmb(); | 374 | nvgpu_smp_wmb(); |
374 | gk20a_fecs_trace_set_read_index(g, read); | 375 | gk20a_fecs_trace_set_read_index(g, read); |
375 | 376 | ||
376 | done: | 377 | done: |