diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 0e3eabc7..cdbaef79 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -2479,9 +2479,12 @@ u64 gk20a_vm_map(struct vm_gk20a *vm, | |||
2479 | goto clean_up; | 2479 | goto clean_up; |
2480 | } | 2480 | } |
2481 | 2481 | ||
2482 | bfr.align = gk20a_mm_get_align(g, sgl, aperture); | 2482 | if (flags & NVGPU_AS_MAP_BUFFER_FLAGS_FIXED_OFFSET) |
2483 | map_offset = offset_align; | ||
2483 | 2484 | ||
2484 | bfr.pgsz_idx = -1; | 2485 | bfr.align = gk20a_mm_get_align(g, sgl, aperture); |
2486 | bfr.pgsz_idx = __get_pte_size(vm, map_offset, | ||
2487 | min_t(u64, bfr.size, bfr.align)); | ||
2485 | mapping_size = mapping_size ? mapping_size : bfr.size; | 2488 | mapping_size = mapping_size ? mapping_size : bfr.size; |
2486 | 2489 | ||
2487 | if (vm->big_pages) | 2490 | if (vm->big_pages) |