summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-07-18 15:40:24 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-21 18:43:53 -0400
commitbcf83fab33d8f1821cfcfd8c03411ea2fcf5334b (patch)
tree02cf711a3cc3aef77136f1a1aa0dba87203a5fab /drivers/gpu/nvgpu/gm20b
parentda43fc55606f40f27c0f823671bca16a979634cc (diff)
gpu: nvgpu: Set default large page size to 64K for gm20b
Since all userspace apps are using 64K pages these days it makes sense to set the default large page size to 64K. This in turn causes the PDE coverage field to be set to 64M in the GPU characteristics field. While it would therefor be possible to create a VM with a PDE coverage that's larger than 64M (128M if you set the large page size to 128K) this will make the defaults work properly. This in turn fixes a CUDA issue where CUDA tries to determine the PDE coverage (and correspondingly a minimum alignemnt) from the characteristics IOCTL. Bug 200105199 Change-Id: Iee3c213f1b81d8628571f46c7ad5e16fbfe07499 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1781088 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r--drivers/gpu/nvgpu/gm20b/mm_gm20b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
index deca6686..9be3180c 100644
--- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
@@ -58,7 +58,7 @@ u32 gm20b_mm_get_big_page_sizes(void)
58 58
59u32 gm20b_mm_get_default_big_page_size(void) 59u32 gm20b_mm_get_default_big_page_size(void)
60{ 60{
61 return SZ_128K; 61 return SZ_64K;
62} 62}
63 63
64bool gm20b_mm_support_sparse(struct gk20a *g) 64bool gm20b_mm_support_sparse(struct gk20a *g)