summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/mm_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/mm_gm20b.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
index 13e7859f..030701b9 100644
--- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
@@ -220,7 +220,7 @@ fail:
220 return ret; 220 return ret;
221} 221}
222 222
223void gm20b_vm_clear_sparse(struct vm_gk20a *vm, u64 vaddr, 223static void gm20b_vm_clear_sparse(struct vm_gk20a *vm, u64 vaddr,
224 u64 size, u32 pgsz_idx) { 224 u64 size, u32 pgsz_idx) {
225 u64 vaddr_hi; 225 u64 vaddr_hi;
226 u32 pde_lo, pde_hi, pde_i; 226 u32 pde_lo, pde_hi, pde_i;
@@ -253,14 +253,15 @@ void gm20b_vm_clear_sparse(struct vm_gk20a *vm, u64 vaddr,
253 return; 253 return;
254} 254}
255 255
256bool gm20b_mm_mmu_debug_mode_enabled(struct gk20a *g) 256static bool gm20b_mm_mmu_debug_mode_enabled(struct gk20a *g)
257{ 257{
258 u32 debug_ctrl = gk20a_readl(g, gr_gpcs_pri_mmu_debug_ctrl_r()); 258 u32 debug_ctrl = gk20a_readl(g, gr_gpcs_pri_mmu_debug_ctrl_r());
259 return gr_gpcs_pri_mmu_debug_ctrl_debug_v(debug_ctrl) == 259 return gr_gpcs_pri_mmu_debug_ctrl_debug_v(debug_ctrl) ==
260 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(); 260 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v();
261} 261}
262 262
263void gm20b_mm_set_big_page_size(struct gk20a *g, void *inst_ptr, int size) 263static void gm20b_mm_set_big_page_size(struct gk20a *g,
264 void *inst_ptr, int size)
264{ 265{
265 u32 val; 266 u32 val;
266 267