summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-01-19 17:50:57 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:04:45 -0400
commit4aef10c9507a19fb288936b88b0faeb62a520817 (patch)
tree0c773b9c18e3c9d318783c0cd575b6bb94f2bf30 /drivers/gpu/nvgpu/vgpu/mm_vgpu.c
parentf4883ab97af69610c0507c245f69eef00d203a28 (diff)
gpu: nvgpu: Set compression page per SoC
Compression page size varies depending on architecture. Make it 129kB on gk20a and gm20b. Also export some common functions from gm20b. Bug 1592495 Change-Id: Ifb1c5b15d25fa961dab097021080055fc385fecd Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/673790
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/mm_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/mm_vgpu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
index 2dd8cb68..6817b107 100644
--- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
@@ -39,7 +39,6 @@ static int vgpu_init_mm_setup_sw(struct gk20a *g)
39 39
40 /* gk20a_init_gpu_characteristics expects this to be populated */ 40 /* gk20a_init_gpu_characteristics expects this to be populated */
41 vm->big_page_size = big_page_size; 41 vm->big_page_size = big_page_size;
42 vm->compression_page_size = big_page_size;
43 vm->pde_stride = vm->big_page_size << 10; 42 vm->pde_stride = vm->big_page_size << 10;
44 vm->pde_stride_shift = ilog2(vm->pde_stride); 43 vm->pde_stride_shift = ilog2(vm->pde_stride);
45 44