summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/vm.c
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2020-08-20 21:45:26 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2020-09-15 05:38:45 -0400
commit036e000a17425e0569990f2aacae91b273392153 (patch)
tree5fb6845c56652a6bf97f70411846c891cdfbfab3 /drivers/gpu/nvgpu/common/mm/vm.c
parent1c34f50227e9f308491758482d88c3c2f6605ffb (diff)
nvgpu: add PD cache support for page-sized PTEs
Large buffers being mapped to GMMU end up needing many pages for the PTE tables. Allocating these pages one by one can end up being a performance bottleneck, particularly in the virtualized case. Add support for page-sized PTEs to the existing PD cache: - define NVGPU_PD_CACHE_SIZE, the allocation size for a new slab for the PD cache, effectively set to 64K bytes - Use the PD cache for any allocation < NVGPU_PD_CACHE_SIZE - When freeing up cached entries, avoid prefetch errors by invalidating the entry (memset to 0) Bug 3093183 Bug 3100907 Change-Id: I2302a1dfeb056b9461159121bbae1be70524a357 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2401783 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Satish Arora <satisha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/vm.c')
0 files changed, 0 insertions, 0 deletions