diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-07 12:56:40 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-08 01:24:14 -0500 |
commit | 58dd20f86b3b9faef89b24f2b4ec6b62a183fe9d (patch) | |
tree | bd90f82d117597fe44b004861056e50c175f5700 /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | a51219e526cca5fdee33faf25268662bdd9453cb (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1593685
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 12 |
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); |