nouveau/hmm: support mapping large sysmem pages
authorRalph Campbell <rcampbell@nvidia.com>
Wed, 1 Jul 2020 22:53:51 +0000 (15:53 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 10 Jul 2020 19:24:28 +0000 (16:24 -0300)
commitb223555dc4ed6efc321d23e78e55197cf0080ef3
treed5f4f584c485e71fd900df59154059f8f725cf41
parent4725c6b82a48a77d05c1943b0740eb3564785e7e
nouveau/hmm: support mapping large sysmem pages

Nouveau currently only supports mapping PAGE_SIZE sized pages of system
memory when shared virtual memory (SVM) is enabled. Use the new
hmm_pfn_to_map_order() function to support mapping system memory pages
that are PMD_SIZE.

Link: https://lore.kernel.org/r/20200701225352.9649-5-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/gpu/drm/nouveau/nouveau_svm.c