]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use preemptible placement for KFD
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 19 May 2021 01:46:02 +0000 (21:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 22:00:05 +0000 (18:00 -0400)
commitd1078c31c7a09707ab87563fa3aa199b6ab9951b
tree28b89150e77949b653d9a3533908448cb28bf3e9
parente24f6665e367ba4c96c30300628276087d33ac49
drm/amdgpu: Use preemptible placement for KFD

KFD userptr BOs and SG BOs used for DMA mappings can be preempted with
CWSR. Therefore we can use preemptible placement and avoid unwanted
evictions due to GTT accounting.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c