summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 756db415..a9ee65d0 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -394,18 +394,6 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
394 gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */ 394 gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */
395 395
396 gpu->compression_page_size = g->ops.fb.compression_page_size(g); 396 gpu->compression_page_size = g->ops.fb.compression_page_size(g);
397 gpu->big_page_size = g->ops.mm.get_default_big_page_size();
398 gpu->pde_coverage_bit_count =
399 g->ops.mm.get_mmu_levels(g, gpu->big_page_size)[0].lo_bit[0];
400
401 if (g->mm.disable_bigpage) {
402 gpu->big_page_size = 0;
403 gpu->available_big_page_sizes = 0;
404 } else {
405 gpu->available_big_page_sizes = gpu->big_page_size;
406 if (g->ops.mm.get_big_page_sizes)
407 gpu->available_big_page_sizes |= g->ops.mm.get_big_page_sizes();
408 }
409 397
410 __nvgpu_set_enabled(g, NVGPU_SUPPORT_PARTIAL_MAPPINGS, true); 398 __nvgpu_set_enabled(g, NVGPU_SUPPORT_PARTIAL_MAPPINGS, true);
411 __nvgpu_set_enabled(g, NVGPU_SUPPORT_MAP_DIRECT_KIND_CTRL, true); 399 __nvgpu_set_enabled(g, NVGPU_SUPPORT_MAP_DIRECT_KIND_CTRL, true);