]> git.proxmox.com Git - mirror_ubuntu-jammy-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 19:51:03 +0000 (14:51 -0500)
commit9f890f3044c79d18bce1f3a3f75037b93e71b880
tree5a972970ccce034582afefb8546617a2692296d6
parentb72ff1909cf3267e48b905e5bdd6e7e41d0a8593
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