summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-03-22 13:00:24 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-06 21:15:09 -0400
commit633d331ae2db50fbcce829fe324c19fc44b82c24 (patch)
treeebf95d28c62a3bf81b68d44766459a343aeef62a /drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
parent2766420dfbe15e539a4b9514bbf41480fc636a28 (diff)
gpu: nvgpu: Rename gk20a_mem_* functions
Rename the functions used for mem_desc access to nvgpu_mem_*. JIRA NVGPU-12 Change-Id: I5a1180c9a08d33c3dfc361ce8579c3c767fa5656 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1326193 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/subctx_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/subctx_gv11b.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
index 6344b5fb..8bf0631e 100644
--- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
@@ -73,11 +73,11 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c)
73 return -ENOMEM; 73 return -ENOMEM;
74 } 74 }
75 /* Now clear the buffer */ 75 /* Now clear the buffer */
76 if (gk20a_mem_begin(g, &ctx->mem)) 76 if (nvgpu_mem_begin(g, &ctx->mem))
77 return -ENOMEM; 77 return -ENOMEM;
78 78
79 gk20a_memset(g, &ctx->mem, 0, 0, ctx->mem.size); 79 nvgpu_memset(g, &ctx->mem, 0, 0, ctx->mem.size);
80 gk20a_mem_end(g, &ctx->mem); 80 nvgpu_mem_end(g, &ctx->mem);
81 81
82 gv11b_init_subcontext_pdb(c, &c->inst_block); 82 gv11b_init_subcontext_pdb(c, &c->inst_block);
83 83
@@ -111,14 +111,14 @@ static void gv11b_init_subcontext_pdb(struct channel_gk20a *c,
111 ram_in_sc_page_dir_base_lo_0_f(pdb_addr_lo); 111 ram_in_sc_page_dir_base_lo_0_f(pdb_addr_lo);
112 lo = ram_in_sc_page_dir_base_vol_0_w(); 112 lo = ram_in_sc_page_dir_base_vol_0_w();
113 hi = ram_in_sc_page_dir_base_hi_0_w(); 113 hi = ram_in_sc_page_dir_base_hi_0_w();
114 gk20a_mem_wr32(g, inst_block, lo, format_word); 114 nvgpu_mem_wr32(g, inst_block, lo, format_word);
115 gk20a_mem_wr32(g, inst_block, hi, pdb_addr_hi); 115 nvgpu_mem_wr32(g, inst_block, hi, pdb_addr_hi);
116 116
117 /* make subcontext0 address space to valid */ 117 /* make subcontext0 address space to valid */
118 /* TODO fix proper hw register definations */ 118 /* TODO fix proper hw register definations */
119 gk20a_mem_wr32(g, inst_block, 166, 0x1); 119 nvgpu_mem_wr32(g, inst_block, 166, 0x1);
120 gk20a_mem_wr32(g, inst_block, 167, 0); 120 nvgpu_mem_wr32(g, inst_block, 167, 0);
121 gk20a_mem_wr32(g, inst_block, ram_in_engine_wfi_veid_w(), 121 nvgpu_mem_wr32(g, inst_block, ram_in_engine_wfi_veid_w(),
122 ram_in_engine_wfi_veid_f(0)); 122 ram_in_engine_wfi_veid_f(0));
123 123
124} 124}
@@ -136,13 +136,13 @@ int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va)
136 136
137 gr_mem = &ctx->mem; 137 gr_mem = &ctx->mem;
138 g->ops.mm.l2_flush(g, true); 138 g->ops.mm.l2_flush(g, true);
139 if (gk20a_mem_begin(g, gr_mem)) 139 if (nvgpu_mem_begin(g, gr_mem))
140 return -ENOMEM; 140 return -ENOMEM;
141 141
142 gk20a_mem_wr(g, gr_mem, 142 nvgpu_mem_wr(g, gr_mem,
143 ctxsw_prog_main_image_context_buffer_ptr_hi_o(), addr_hi); 143 ctxsw_prog_main_image_context_buffer_ptr_hi_o(), addr_hi);
144 gk20a_mem_wr(g, gr_mem, 144 nvgpu_mem_wr(g, gr_mem,
145 ctxsw_prog_main_image_context_buffer_ptr_o(), addr_lo); 145 ctxsw_prog_main_image_context_buffer_ptr_o(), addr_lo);
146 gk20a_mem_end(g, gr_mem); 146 nvgpu_mem_end(g, gr_mem);
147 return ret; 147 return ret;
148} 148}