summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-03-15 19:42:12 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-06 21:14:48 -0400
commitb69020bff5dfa69cad926c9374cdbe9a62509ffd (patch)
tree222f6b6bc23561a38004a257cbac401e431ff3be /drivers/gpu/nvgpu/gm20b/gr_gm20b.c
parentfa4ecf5730a75269e85cc41c2ad2ee61307e72a9 (diff)
gpu: nvgpu: Rename gk20a_mem_* functions
Rename the functions used for mem_desc access to nvgpu_mem_*. JIRA NVGPU-12 Change-Id: Ibfdc1112d43f0a125e4487c250e3f977ffd2cd75 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1323325 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index a5dbe23d..57bff64f 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -862,7 +862,7 @@ static void gr_gm20b_update_ctxsw_preemption_mode(struct gk20a *g,
862 862
863 if (gr_ctx->compute_preempt_mode == NVGPU_COMPUTE_PREEMPTION_MODE_CTA) { 863 if (gr_ctx->compute_preempt_mode == NVGPU_COMPUTE_PREEMPTION_MODE_CTA) {
864 gk20a_dbg_info("CTA: %x", cta_preempt_option); 864 gk20a_dbg_info("CTA: %x", cta_preempt_option);
865 gk20a_mem_wr(g, mem, 865 nvgpu_mem_wr(g, mem,
866 ctxsw_prog_main_image_preemption_options_o(), 866 ctxsw_prog_main_image_preemption_options_o(),
867 cta_preempt_option); 867 cta_preempt_option);
868 } 868 }
@@ -1022,15 +1022,15 @@ static int gr_gm20b_update_pc_sampling(struct channel_gk20a *c,
1022 1022
1023 mem = &ch_ctx->gr_ctx->mem; 1023 mem = &ch_ctx->gr_ctx->mem;
1024 1024
1025 if (gk20a_mem_begin(c->g, mem)) 1025 if (nvgpu_mem_begin(c->g, mem))
1026 return -ENOMEM; 1026 return -ENOMEM;
1027 1027
1028 v = gk20a_mem_rd(c->g, mem, ctxsw_prog_main_image_pm_o()); 1028 v = nvgpu_mem_rd(c->g, mem, ctxsw_prog_main_image_pm_o());
1029 v &= ~ctxsw_prog_main_image_pm_pc_sampling_m(); 1029 v &= ~ctxsw_prog_main_image_pm_pc_sampling_m();
1030 v |= ctxsw_prog_main_image_pm_pc_sampling_f(enable); 1030 v |= ctxsw_prog_main_image_pm_pc_sampling_f(enable);
1031 gk20a_mem_wr(c->g, mem, ctxsw_prog_main_image_pm_o(), v); 1031 nvgpu_mem_wr(c->g, mem, ctxsw_prog_main_image_pm_o(), v);
1032 1032
1033 gk20a_mem_end(c->g, mem); 1033 nvgpu_mem_end(c->g, mem);
1034 1034
1035 gk20a_dbg_fn("done"); 1035 gk20a_dbg_fn("done");
1036 1036
@@ -1112,9 +1112,9 @@ static void gr_gm20b_enable_cde_in_fecs(struct gk20a *g, struct mem_desc *mem)
1112{ 1112{
1113 u32 cde_v; 1113 u32 cde_v;
1114 1114
1115 cde_v = gk20a_mem_rd(g, mem, ctxsw_prog_main_image_ctl_o()); 1115 cde_v = nvgpu_mem_rd(g, mem, ctxsw_prog_main_image_ctl_o());
1116 cde_v |= ctxsw_prog_main_image_ctl_cde_enabled_f(); 1116 cde_v |= ctxsw_prog_main_image_ctl_cde_enabled_f();
1117 gk20a_mem_wr(g, mem, ctxsw_prog_main_image_ctl_o(), cde_v); 1117 nvgpu_mem_wr(g, mem, ctxsw_prog_main_image_ctl_o(), cde_v);
1118} 1118}
1119 1119
1120static void gr_gm20b_bpt_reg_info(struct gk20a *g, struct warpstate *w_state) 1120static void gr_gm20b_bpt_reg_info(struct gk20a *g, struct warpstate *w_state)