diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2017-08-18 06:59:55 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-22 06:53:48 -0400 |
commit | ddeadd8cf250efa190ebc349776e90420a302038 (patch) | |
tree | fe4c006b7a6190a908e7306a980dedd506ed1b8b /drivers/gpu/nvgpu/gv11b/fb_gv11b.c | |
parent | 2370fce04396b4bb66b679a54112731a0dbd7018 (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: I97380c3b211733e682f198c35f35640af203359c
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1541197
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Sourab Gupta <sourabg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fb_gv11b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c index 384dfb20..a44589d5 100644 --- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <nvgpu/log.h> | 19 | #include <nvgpu/log.h> |
20 | #include <nvgpu/enabled.h> | 20 | #include <nvgpu/enabled.h> |
21 | #include <nvgpu/gmmu.h> | 21 | #include <nvgpu/gmmu.h> |
22 | #include <nvgpu/barrier.h> | ||
22 | 23 | ||
23 | #include "gk20a/gk20a.h" | 24 | #include "gk20a/gk20a.h" |
24 | #include "gk20a/kind_gk20a.h" | 25 | #include "gk20a/kind_gk20a.h" |
@@ -721,7 +722,7 @@ static void gv11b_fb_fault_buffer_get_ptr_update(struct gk20a *g, | |||
721 | /* make sure get ptr update is visible to everyone to avoid | 722 | /* make sure get ptr update is visible to everyone to avoid |
722 | * reading already read entry | 723 | * reading already read entry |
723 | */ | 724 | */ |
724 | mb(); | 725 | nvgpu_mb(); |
725 | } | 726 | } |
726 | 727 | ||
727 | static u32 gv11b_fb_fault_buffer_get_index(struct gk20a *g, | 728 | static u32 gv11b_fb_fault_buffer_get_index(struct gk20a *g, |