drm/amdgpu: Allow TTM to evict svm bo from same process
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 22 Jul 2022 19:07:00 +0000 (15:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:05:14 +0000 (16:05 -0400)
commit79b2c54f19110235041d8f1250e3c3694047a902
tree7f5ae88a13193e2a0003ad427619a68bc896046d
parent1f83db6be37c53f6d395a41ee2602e3280ee60c2
drm/amdgpu: Allow TTM to evict svm bo from same process

To support SVM range VRAM overcommitment, TTM should be able to evict
svm bo of same process to system memory, to get space to alloc new svm
bo.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c