]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Optimize KFD page table reservation
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 15 Jul 2019 20:18:03 +0000 (16:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Nov 2019 17:24:07 +0000 (12:24 -0500)
commitac05fcc41b0584b238c17440fa7de7c96a866331
tree3e84e148bd7fad701ba54a8e16fbc4715df6e1d5
parent7f39bbe4706f997bdf14fd722e063061fd77ece7
drm/amdgpu: Optimize KFD page table reservation

Be less pessimistic about estimated page table use for KFD. Most
allocations use 2MB pages and therefore need less VRAM for page
tables. This allows more VRAM to be used for applications especially
on large systems with many GPUs and hundreds of GB of system memory.

Example: 8 GPUs with 32GB VRAM each + 256GB system memory = 512GB
Old page table reservation per GPU:  1GB
New page table reservation per GPU: 32MB

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: xinhui pan <xinhui.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c