diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-01-19 17:50:57 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:04:45 -0400 |
commit | 4aef10c9507a19fb288936b88b0faeb62a520817 (patch) | |
tree | 0c773b9c18e3c9d318783c0cd575b6bb94f2bf30 /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | f4883ab97af69610c0507c245f69eef00d203a28 (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/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 6c18c895..57d5f09a 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1788,7 +1788,7 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
1788 | gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */ | 1788 | gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */ |
1789 | 1789 | ||
1790 | gpu->big_page_size = g->mm.pmu.vm.big_page_size; | 1790 | gpu->big_page_size = g->mm.pmu.vm.big_page_size; |
1791 | gpu->compression_page_size = g->mm.pmu.vm.compression_page_size; | 1791 | gpu->compression_page_size = g->ops.fb.compression_page_size(g); |
1792 | gpu->pde_coverage_bit_count = g->mm.pmu.vm.pde_stride_shift; | 1792 | gpu->pde_coverage_bit_count = g->mm.pmu.vm.pde_stride_shift; |
1793 | 1793 | ||
1794 | gpu->available_big_page_sizes = gpu->big_page_size; | 1794 | gpu->available_big_page_sizes = gpu->big_page_size; |