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)
commit5bb198930a731795c93e650836ec5bd8b6cfae08
tree28b89150e77949b653d9a3533908448cb28bf3e9
parentb453e42a6e8b9fa4580011e923963248c56b9d4d
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