diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 5440b3c2..c6883b61 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -1321,7 +1321,10 @@ u64 gk20a_vm_map(struct vm_gk20a *vm, | |||
1321 | bfr.pgsz_idx = NV_GMMU_VA_IS_UPPER(offset_align) ? | 1321 | bfr.pgsz_idx = NV_GMMU_VA_IS_UPPER(offset_align) ? |
1322 | gmmu_page_size_big : gmmu_page_size_small; | 1322 | gmmu_page_size_big : gmmu_page_size_small; |
1323 | } else { | 1323 | } else { |
1324 | gmmu_select_page_size(&bfr); | 1324 | if (vm->big_pages) |
1325 | gmmu_select_page_size(&bfr); | ||
1326 | else | ||
1327 | bfr.pgsz_idx = gmmu_page_size_small; | ||
1325 | } | 1328 | } |
1326 | 1329 | ||
1327 | /* validate/adjust bfr attributes */ | 1330 | /* validate/adjust bfr attributes */ |