summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/as.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/as.c')
-rw-r--r--drivers/gpu/nvgpu/common/as.c2
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