From 58dd20f86b3b9faef89b24f2b4ec6b62a183fe9d Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 7 Nov 2017 09:56:40 -0800 Subject: gpu: nvgpu: Introduce queries for big page sizes Introduce query functions for default big page size and available big page sizes. Move initialization of GPU characteristics big page sizes to the GPU characteristics query function. JIRA NVGPU-259 Change-Id: Ie66cc2fbfcd88205593056f8d5010ac2539c8bc2 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1593685 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') 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) gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */ gpu->compression_page_size = g->ops.fb.compression_page_size(g); - gpu->big_page_size = g->ops.mm.get_default_big_page_size(); - gpu->pde_coverage_bit_count = - g->ops.mm.get_mmu_levels(g, gpu->big_page_size)[0].lo_bit[0]; - - if (g->mm.disable_bigpage) { - gpu->big_page_size = 0; - gpu->available_big_page_sizes = 0; - } else { - gpu->available_big_page_sizes = gpu->big_page_size; - if (g->ops.mm.get_big_page_sizes) - gpu->available_big_page_sizes |= g->ops.mm.get_big_page_sizes(); - } __nvgpu_set_enabled(g, NVGPU_SUPPORT_PARTIAL_MAPPINGS, true); __nvgpu_set_enabled(g, NVGPU_SUPPORT_MAP_DIRECT_KIND_CTRL, true); -- cgit v1.2.2