]> 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)
commitfd1ab86ec1ecaafbca8178b507e815753b0f90be
tree3e84e148bd7fad701ba54a8e16fbc4715df6e1d5
parent26b2214dede3fdd95213076fe18a4ec68e778bc9
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