]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ad495527004dfe217400a4f962bd7f91c45a49c
treed5f4f584c485e71fd900df59154059f8f725cf41
parentc698473d0b6b26d59cf9d7883b77d3b70591f633
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