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)
commit29a39c90baaa1d8f28123932d3ea1bbe7c22f325
tree3e84e148bd7fad701ba54a8e16fbc4715df6e1d5
parentdea8b900293df57b6545bc195b50bbb649fe9741
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