summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-10-03 00:32:19 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:46 -0400
commitecc6f27fd13e7560d124faf67d114b93d47b73de (patch)
tree4d0d065b630976db87f21ee99a63f1477499fbd5 /drivers/gpu/nvgpu/gk20a/gk20a.c
parent5200902f57d0223e30dfce548355b5fe06a25203 (diff)
gpu: nvgpu: Common VM initializer
Merge initialization code from gk20a_init_system_vm(), gk20a_init_bar1_vm() and gk20a_vm_alloc_share() into gk20a_init_vm(). Remove redundant page size data, and move the page size fields to be VM specific. Bug 1558739 Bug 1560370 Change-Id: I4557d9e04d65ccb48fe1f2b116dd1bfa74cae98e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 05877159..76985994 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1887,9 +1887,9 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
1887 1887
1888 gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */ 1888 gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */
1889 1889
1890 gpu->big_page_size = g->mm.big_page_size; 1890 gpu->big_page_size = g->mm.pmu.vm.big_page_size;
1891 gpu->compression_page_size = g->mm.compression_page_size; 1891 gpu->compression_page_size = g->mm.pmu.vm.compression_page_size;
1892 gpu->pde_coverage_bit_count = g->mm.pde_stride_shift; 1892 gpu->pde_coverage_bit_count = g->mm.pmu.vm.pde_stride_shift;
1893 1893
1894 gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS 1894 gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS
1895 | NVGPU_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS; 1895 | NVGPU_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS;