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/common/as.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/common/as.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/as.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/as.c b/drivers/gpu/nvgpu/common/as.c index 31cdd0b6..f4f00fba 100644 --- a/drivers/gpu/nvgpu/common/as.c +++ b/drivers/gpu/nvgpu/common/as.c | |||
@@ -62,7 +62,7 @@ static int gk20a_vm_alloc_share(struct gk20a_as_share *as_share, | |||
62 | if (!is_power_of_2(big_page_size)) | 62 | if (!is_power_of_2(big_page_size)) |
63 | return -EINVAL; | 63 | return -EINVAL; |
64 | 64 | ||
65 | if (!(big_page_size & g->gpu_characteristics.available_big_page_sizes)) | 65 | if (!(big_page_size & nvgpu_mm_get_available_big_page_sizes(g))) |
66 | return -EINVAL; | 66 | return -EINVAL; |
67 | } | 67 | } |
68 | 68 | ||