diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 0deadfd0..32ccc5b8 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -3209,10 +3209,10 @@ void gk20a_init_inst_block(struct mem_desc *inst_block, struct vm_gk20a *vm, | |||
3209 | g->ops.mm.init_pdb(g, inst_ptr, pde_addr); | 3209 | g->ops.mm.init_pdb(g, inst_ptr, pde_addr); |
3210 | 3210 | ||
3211 | gk20a_mem_wr32(inst_ptr, ram_in_adr_limit_lo_w(), | 3211 | gk20a_mem_wr32(inst_ptr, ram_in_adr_limit_lo_w(), |
3212 | u64_lo32(vm->va_limit) | 0xFFF); | 3212 | u64_lo32(vm->va_limit - 1) & ~0xfff); |
3213 | 3213 | ||
3214 | gk20a_mem_wr32(inst_ptr, ram_in_adr_limit_hi_w(), | 3214 | gk20a_mem_wr32(inst_ptr, ram_in_adr_limit_hi_w(), |
3215 | ram_in_adr_limit_hi_f(u64_hi32(vm->va_limit))); | 3215 | ram_in_adr_limit_hi_f(u64_hi32(vm->va_limit - 1))); |
3216 | 3216 | ||
3217 | if (big_page_size && g->ops.mm.set_big_page_size) | 3217 | if (big_page_size && g->ops.mm.set_big_page_size) |
3218 | g->ops.mm.set_big_page_size(g, inst_ptr, big_page_size); | 3218 | g->ops.mm.set_big_page_size(g, inst_ptr, big_page_size); |